/**
 * 公司简介页面专属样式
 * v2.33 - 与首页风格完美统一
 * 设计理念：古典雅致、简洁大气
 */

/* ========== 1. 页面容器 ========== */
.k-clear {
    background: transparent;
    overflow: visible;
    display: flex;
    align-items: flex-start;
    gap: 36px;
    box-sizing: border-box;
}

/* 避免全局 .over_f 裁切左侧英文副标题 */
body .w_100.over_f:has(.k-left) {
    overflow: visible !important;
}

/* ========== 2. 左侧导航（对齐正式环境 gsjj / kenta） ========== */
.k-left {
    float: none !important;
    flex: 0 0 180px;
    width: 180px !important;
    padding-top: 10px;
    overflow: visible;
    box-sizing: border-box;
}

.k-left .h1 {
    font-size: 24px;
    font-weight: normal;
    font-family: "Noto Sans SC", "Source Han Sans SC", sans-serif;
    color: #333;
    cursor: pointer;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    background: transparent;
    height: auto;
    line-height: 1.4;
    text-align: left;
    position: static;
}

.k-left .h1::after {
    display: none !important;
}

.k-left .h1:hover,
.k-left .h1.active {
    color: #805932;
}

.k-left .kk-tab {
    border-right: 1px solid #d2bf92;
    padding-right: 0;
    text-align: left;
}

.k-left .kk-tab li {
    font-size: 24px; /* sync with .k-left .h1 */
    font-family: "Noto Sans SC", "Source Han Sans SC", sans-serif;
    font-weight: normal;
    color: #333;
    margin-top: 30px;
    margin-bottom: 0;
    cursor: pointer;
    position: relative;
    padding: 0;
    height: auto;
    line-height: 1.35;
    border-bottom: none;
    display: block;
    background: transparent !important;
    text-align: left;
    letter-spacing: 0;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    transition: color 0.2s ease;
}

.k-left .kk-tab li span {
    display: block !important;
    font-size: 11px !important;
    font-family: Arial, Helvetica, sans-serif !important;
    color: inherit;
    letter-spacing: 0.02em;
    margin-top: 4px !important;
    margin-left: 0 !important; /* 禁止负边距，避免英文左侧被 overflow 裁切 */
    padding: 0 !important;
    text-transform: uppercase;
    text-align: left !important;
    font-weight: normal !important;
    white-space: normal !important;
    overflow: visible !important;
    word-break: normal !important; /* 避免 SCHOLAR 被拆成 SCI/OLAR */
    overflow-wrap: normal !important;
    max-width: 100%;
    -webkit-transform: none !important;
    transform: none !important;
}

.k-left .kk-tab li:hover,
.k-left .kk-tab li.active {
    color: #805932 !important;
    font-weight: bold;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
}

.k-left .kk-tab li:hover span,
.k-left .kk-tab li.active span {
    color: #805932 !important;
    font-weight: normal;
}

.k-left .kk-tab li::after {
    content: "" !important;
    display: block !important;
    width: 9px;
    height: 9px;
    border-radius: 9px;
    background-color: #d2bf92;
    border: none;
    right: -5px;
    top: 10px;
    position: absolute;
    transition: 0.2s ease;
    z-index: 2;
}

.k-left .kk-tab li.active::after,
.k-left .kk-tab li:hover::after {
    content: "" !important;
    width: 9px;
    height: 9px;
    border-radius: 9px;
    background-color: #ede7d9;
    right: -9px;
    top: 10px;
    position: absolute;
    border: 4px solid #81603f;
}

/* ========== 3. 右侧内容区优化 ========== */
/* 覆盖 kenta 固定 880px+padding 导致超出 1100 容器、右侧留白失调 */
.k-right {
    float: none !important;
    flex: 1 1 auto;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
}

.k-right > section {
    width: 100%;
    box-sizing: border-box;
}

/* 内容标题：对齐书生简介——纯中文大标题，无英文副标题 */
.k-titt {
    margin-bottom: 28px;
    border-bottom: 1px solid #e8e2d8;
    padding-bottom: 18px;
    overflow: visible;
}

.k-titt > p:first-child {
    font-size: 28px;
    font-family: "Noto Serif SC", "Source Han Serif SC", serif;
    font-weight: 600;
    color: #603811;
    float: none !important;
    margin: 0;
    line-height: 1.35;
    letter-spacing: 0.04em;
}

/* 隐藏遗留英文副标题（若 HTML 仍残留） */
.k-titt > p:first-child + p {
    display: none !important;
}

/* 侧栏仅保留中文 */
.k-left .kk-tab li span {
    display: none !important;
}

/* 正文内容 */
.k-zw {
    font-size: 15px;
    line-height: 1.9;
    color: #444;
    margin-bottom: 30px;
}

.k-zw p {
    margin-bottom: 18px;
    text-align: justify;
    text-indent: 2em;
}

.k-zw p:last-child {
    margin-bottom: 0;
}

.k-zw span {
    font-weight: 600;
    color: #603811;
}

/* 正文内小标题（教学理念等）保持章节样式 */
.k-zw h3 {
    font-size: 18px;
    color: #603811;
    font-family: "Noto Serif SC", "Source Han Serif SC", serif;
    font-weight: 600;
    margin: 36px 0 18px;
    padding: 10px 18px 10px 16px;
    border-left: 3px solid #b36d41;
    background: linear-gradient(90deg, rgba(179, 109, 65, 0.12) 0%, rgba(179, 109, 65, 0.05) 42%, transparent 100%);
    text-indent: 0;
    clear: both;
    line-height: 1.4;
    text-wrap: balance;
}

.k-zw h3:first-of-type {
    margin-top: 8px;
}

.k-zw img {
    padding: 0;
    margin: 15px 40px 35px 40px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(96, 56, 17, 0.15);
    border: 1px solid #dac8a8;
    max-width: 420px;
    height: auto;
    display: inline-block;
}

/* 智能处理：当图片浮动在左侧时，消除左间距，保留右间距和更大的底间距 */
.k-zw img[style*="float: left"], 
.k-zw img[align="left"],
.k-zw img.fl {
    margin-left: 0 !important;
    margin-right: 40px !important;
    margin-bottom: 35px !important;
    float: left !important;
}

/* 智能处理：当图片浮动在右侧时，消除右间距，保留左间距和更大的底间距 */
.k-zw img[style*="float: right"], 
.k-zw img[align="right"],
.k-zw img.fr {
    margin-right: 0 !important;
    margin-left: 40px !important;
    margin-bottom: 35px !important;
    float: right !important;
}

/* ========== 4. 招生培训卡片优化 ========== */
.zs {
    overflow: hidden;
    margin: 0 0 22px !important;
    border-radius: 6px;
    transition: background 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}

.zs:hover {
    transform: none;
    box-shadow: 0 6px 20px rgba(96, 56, 17, 0.1);
}

.zs-1 {
    background: #fffcf5;
    border: 1px solid #e8e2d8;
    flex-direction: row;
}

.zs-2 {
    background: #f7f1e6;
    border: 1px solid #e0d2ba;
    flex-direction: row-reverse;
}

.zs .box {
    padding: 28px 32px;
    flex: 1 1 auto;
    min-width: 0;
    width: auto !important;
    box-sizing: border-box;
}

.zs .name {
    font-weight: 600;
    color: #603811;
    font-size: 20px;
    font-family: "Noto Serif SC", "Source Han Serif SC", serif;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #dac8a8;
}

.zs ul {
    font-size: 14px;
    line-height: 1.8;
    text-indent: 0;
    margin-bottom: 15px;
}

.zs ul li {
    position: relative;
    padding-left: 15px;
    color: #555;
}

.zs ul li::before {
    content: '';
    width: 5px;
    height: 5px;
    background-color: #b36d41;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 9px;
}

.zs .info {
    font-weight: 600;
    color: #603811;
    font-size: 16px;
    margin-bottom: 10px;
    margin-top: 15px;
}

.zs .info1 {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    text-indent: 2em;
}

.zs > img {
    margin: 24px !important;
    border-radius: 6px;
    box-shadow: 0 3px 12px rgba(96, 56, 17, 0.1);
    border: 1px solid #dac8a8;
    width: 200px !important;
    max-width: 28%;
    height: auto !important;
    object-fit: cover;
    align-self: center;
    flex: 0 0 200px;
    float: none !important;
}

/* ========== 5. 书生著作：贴近首页封面陈列（无卡片壳） ========== */
.gsjj-works .k-titt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 14px;
}

.gsjj-works .k-titt > p:first-child {
    flex: 0 1 auto;
}

.gsjj-works-more {
    flex: 0 0 auto;
    display: inline-block;
    min-width: 84px;
    height: 28px;
    line-height: 28px;
    padding: 0 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #fff !important;
    background: #b36d41;
    border-radius: 3px;
    text-decoration: none;
    letter-spacing: 0.02em;
    box-shadow: 0 1px 3px rgba(96, 56, 17, 0.12);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.gsjj-works-more:hover {
    background: #603811;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(96, 56, 17, 0.18);
    text-decoration: none;
}

.gsjj-works-swiper.swiper-container {
    width: 100%;
    max-width: 100%;
    padding: 6px 28px 8px;
    background: transparent;
    border-radius: 0;
    border: none;
    overflow: hidden;
    box-sizing: border-box;
}

.gsjj-works-swiper .swiper-wrapper {
    align-items: flex-start;
}

.gsjj-works-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: auto;
}

/* 无卡片底：只保留封面+书名，对齐首页 main-index */
.gsjj-works-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 140px;
    margin: 0 auto;
    padding: 4px 6px 0;
    text-decoration: none;
    color: inherit;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
    transition: transform 0.25s ease;
}

.gsjj-works-card:hover {
    border: none;
    box-shadow: none;
    transform: translateY(-4px);
}

.gsjj-works-cover {
    display: block;
    width: 104px;
    height: 156px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 3px;
    box-shadow: 0 3px 10px rgba(96, 56, 17, 0.16);
    border: 1px solid rgba(135, 90, 61, 0.35);
    background: #e8dfd0;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.gsjj-works-card:hover .gsjj-works-cover {
    box-shadow: 0 8px 18px rgba(96, 56, 17, 0.22);
    border-color: #b36d41;
}

.gsjj-works-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    border-radius: 0;
    box-shadow: none;
    max-width: none;
    max-height: none;
}

.gsjj-works-name {
    display: block;
    width: 100%;
    min-height: 40px;
    margin-top: 12px;
    padding: 0 4px;
    text-align: center;
    color: #875a3d;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    font-family: "Noto Sans SC", "Source Han Sans SC", sans-serif;
    transition: color 0.2s ease;
}

.gsjj-works-card:hover .gsjj-works-name {
    color: #b36d41;
}

/* 左右箭头：去圆形白钮，改成克制的文字箭头 */
.gsjj-works-swiper .swiper-button-prev,
.gsjj-works-swiper .swiper-button-next {
    width: 22px;
    height: 40px;
    margin-top: 0;
    top: 72px;
    background: transparent !important;
    border: none !important;
    border-radius: 0;
    box-shadow: none !important;
    color: #b36d41 !important;
    opacity: 0.55;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.gsjj-works-swiper .swiper-button-prev {
    left: 0;
}

.gsjj-works-swiper .swiper-button-next {
    right: 0;
}

.gsjj-works-swiper .swiper-button-prev:hover,
.gsjj-works-swiper .swiper-button-next:hover {
    opacity: 1;
    background: transparent !important;
    color: #603811 !important;
}

.gsjj-works-swiper .swiper-button-prev::after,
.gsjj-works-swiper .swiper-button-next::after {
    font-size: 18px;
    font-weight: 600;
    font-family: "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
}

@media (prefers-reduced-motion: reduce) {
    .gsjj-works-card,
    .gsjj-works-more,
    .gsjj-works-cover,
    .gsjj-works-name {
        transition: none;
    }

    .gsjj-works-card:hover {
        transform: none;
    }

    .gsjj-works-more:hover {
        transform: none;
    }
}

/* ========== 6. 简介区块样式 ========== */
.jianjie {
    background: transparent;
}

/* ========== 7. 响应式适配 ========== */
@media screen and (max-width: 992px) {
    .k-clear {
        flex-direction: column;
        gap: 24px;
    }

    .k-left {
        float: none;
        width: 100% !important;
        flex: none;
        margin-bottom: 0;
    }
    
    .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 !important;
        width: 100% !important;
        flex: none;
        padding-left: 0 !important;
    }

    .zs,
    .zs-1,
    .zs-2 {
        flex-direction: column;
    }
    
    .zs .box {
        width: 100% !important;
        float: none !important;
    }
    
    .zs > img {
        float: none !important;
        display: block;
        margin: 0 auto 20px !important;
        width: 200px !important;
        max-width: 60%;
        flex: none;
    }

    .k-titt > p:first-child {
        font-size: 22px;
    }
    
    .k-zw {
        font-size: 14px;
    }
    
    .k-zw img {
        float: none !important;
        display: block;
        margin: 15px auto !important;
        max-width: 100%;
    }
}
