/* ========== 全局修复：两栏布局取消间隙，左侧导航贴边 ========== */
.kpro-two-column-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0; /* 彻底消除左右栏之间的8px空隙，解决导航无法贴边问题 */
}

/* 【最高权重 强制清除layui栅格列所有左右内边距、外边距】 */
div.kpro-left-nav.layui-col-md2,
div.kpro-left-nav.layui-col-xs2 {
    padding-left: 0px !important;
    padding-right: 0px !important;
    margin-left: 0px !important;
    margin-right: 0px !important;
}

/* 导航内层容器 左右内边距清零，色块直接撑满 */
.kpro-nav-wrap {
    background-color: transparent;
    border-right: 1px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 12px 0px 12px 0px;
    border-radius: 0;
}

/* 【未激活通用导航项 垂直布局，其他菜单使用】 */
.kpro-nav-item {
    width: 100%;
    padding: 40px 0 12px 0;
    text-align: center;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background-image: url("");
    background-repeat: no-repeat;
    background-position: center top 10px;
    background-size: 18px 18px;
    transition: all 0.2s ease;
}

/* 【商品列表激活项 独立样式：横向100%贴边、直角、固定高度、禁止压缩】 */
.kpro-nav-item.kpro-nav-active {
    width: 100% !important;
    max-width: 100% !important;
    flex-shrink: 0;
    height: 82px;
    padding: 0;
    border-radius: 0;
    background-color: #34A853;
    background-position: center top 10px;
    justify-content: center;
    gap: 4px;
}

/* 激活状态白色svg图标覆盖层 */
.kpro-nav-item.kpro-nav-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: url("");
    background-repeat: no-repeat;
    background-position: center top 10px;
    background-size: 18px 18px;
    filter: brightness(0) invert(1);
    pointer-events: none;
    z-index: 1;
}

/* 未激活导航文字样式 */
.kpro-nav-text {
    font-size: 12px;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: 0.5px;
    margin: 0;
    display: block;
    color: #666666;
    text-align: center;
    transition: color 0.2s ease;
    z-index: 2;
    position: relative;
}

/* 激活态文字改为纯白色 */
.kpro-nav-item.kpro-nav-active .kpro-nav-text {
    color: #ffffff;
}

/* 移除导航item底部原有的横线，不再绑定色块底部 */
.kpro-nav-item::after {
    display: none;
}

/* 下划线单独挂载在文字span正下方，紧贴文字 */
.kpro-nav-text::after {
    content: "";
    display: block;
    width: 12px;
    height: 1px;
    margin: 4px auto 0 auto;
    background-color: #e0e0e0;
    border-radius: 0;
    transition: background-color 0.2s ease;
}

/* 激活状态文字下方下划线改为白色 */
.kpro-nav-item.kpro-nav-active .kpro-nav-text::after {
    background-color: #ffffff;
}

/* 右侧商品栏补回左侧8px内边距，避免商品内容紧贴分割线 */
.kpro-right-goods.layui-col-md10,
.kpro-right-goods.layui-col-xs10 {
    padding-left: 8px;
}

/* 手机端适配 */
@media screen and (max-width: 768px) {
    div.kpro-left-nav.layui-col-xs2 {
        width: 12%;
        max-width: 12%;
        flex: 0 0 12%;
        float: left;
        padding-left: 0px !important;
        padding-right: 0px !important;
        margin-left: 0px !important;
        margin-right: 0px !important;
    }

    .kpro-right-goods.layui-col-xs10 {
        width: calc(88% - 8px);
        max-width: calc(88% - 8px);
        flex: 1;
        float: left;
        padding-left: 8px;
    }
}

/* ========== 页面基础重置 ========== */
html, body {
    overflow-x: hidden;
    background-color: #ffffff;
}
body#zlkbbody {
    margin-top: 0px !important;
}

/* 【关键修复】抵消layui自带容器左右15px内边距，页面铺满屏幕 */
.layui-container.kpro-page-wrap {
    padding-left: 0px !important;
    padding-right: 0px !important;
}

/* 页面外层容器：上下留白保留，左右清除边距 */
.kpro-page-wrap {
    background-color: #ffffff;
    padding: 70px 0px 24px 0px;
}

/* 清除浮动 栅格塌陷修复 */
.clearfix::after {
    content: "";
    display: block;
    clear: both;
    visibility: hidden;
    height: 0;
}
.clearfix {
    zoom: 1;
}

/* PC端右侧商品容器：透明底色 */
.kpro-right-goods.layui-col-md10 {
    flex: 1;
    max-width: calc(88% - 8px);
    background: transparent;
}

/* 右侧商品列表外层容器 */
.kpro-goods-grid-wrap {
    padding-bottom: 24px;
}

.kpro-load-more {
    margin-top: 20px;
    text-align: center;
    color: #999999;
    font-size: 13px;
}

/* ===================== PC端商品卡片：柔和圆角、轻描边、轻量化阴影 ===================== */
.kpro-goods-card {
    padding: 8px !important;
}
.kpro-card-link {
    display: block;
    text-decoration: none;
}
.kpro-card-inner {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.25s ease;
}
.kpro-card-inner:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(52, 168, 83, 0.08);
    border-color: #e8f5e9;
}
.kpro-card-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
}
.kpro-card-img {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background-color: #fafafa;
    border-radius: 8px;
}
.kpro-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.kpro-card-text {
    padding: 0 2px;
}
.kpro-card-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    gap: 10px;
}
.kpro-price-text {
    font-size: 18px;
    font-weight: 700;
    color: #34A853;
    letter-spacing: 0.5px;
}
.kpro-buy-btn {
    display: inline-block;
    padding: 4px 12px;
    background-color: #34A853;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.kpro-buy-btn:hover {
    background-color: #2d8c47;
}
.kpro-sold-count {
    font-size: 12px;
    color: #999999;
}
.kpro-card-name {
    font-size: 14px;
    color: #333333;
    line-height: 20px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-line-orient: vertical;
    overflow: hidden;
}
.kpro-tag-row {
    display: flex;
    gap: 6px;
}
.kpro-tag {
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 4px;
}
.auto-tag {
    background-color: #e8f5e9;
    color: #2e7d32;
}
.discount-tag {
    background-color: #fff8e1;
    color: #f57c00;
}
.kpro-tag.manual-tag {
    display: none;
}

/* ===================== 移动端核心样式：纯白卡片，分割线清晰 ===================== */
@media screen and (max-width: 768px) {
    .kpro-goods-card {
        padding: 6px !important;
    }
    .kpro-nav-text {
        font-size: 12px;
        line-height: 14px;
    }
    .kpro-nav-item {
        padding: 36px 0 10px 0;
    }
    .kpro-nav-active::after {
        left: 50%;
        transform: translateX(-50%);
        bottom: 0;
        width: 20px;
        height: 2px;
    }
    .kpro-card-img {
        height: 120px;
    }
}

/* 移动端商品卡片外层：纯白底色、底部分割线，色块区分明显 */
.kpro-mobile-goods-card {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 14px 0px;
    border-radius: 10px;
    margin-bottom: 8px;
}

/* 移动端最外层：图片 + 右侧文字区域 水平单行 */
.kpro-mobile-card-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    padding: 0 10px;
}

/* 左侧商品图片：浅灰底色、柔和圆角 */
.kpro-mobile-card-img {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    overflow: hidden;
    background-color: #fafafa;
    border-radius: 8px;
}
.kpro-mobile-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 右侧整块文字区域（垂直分三行：价格按钮行 / 商品名行 / 标签行） */
.kpro-mobile-card-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    min-height: 90px;
}

/* 右侧第一行：价格左，按钮右，同一水平线 */
.kpro-mobile-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

/* 价格文字：品牌绿色加粗，信息层级优先 */
.kpro-mobile-price {
    font-size: 16px;
    font-weight: 700;
    color: #34A853;
    margin: 0;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

/* 移动端立即下单按钮：KPRO绿色圆角，过渡柔和 */
.kpro-mobile-buy-btn {
    display: inline-block;
    padding: 4px 10px;
    background-color: #34A853;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.kpro-mobile-buy-btn:hover {
    background-color: #2d8c47;
}

/* 右侧第二行：商品名称 */
.kpro-mobile-name {
    font-size: 14px;
    color: #333333;
    line-height: 18px;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-line-orient: vertical;
    overflow: hidden;
}

/* 右侧第三行：标签 */
.kpro-mobile-tag-row {
    display: flex;
    gap: 4px;
    margin: 0;
}


/* 隐藏废弃左侧垂直导航（保留类名，防止其他页面冲突） */
.kpro-left-nav {
    display: none !important;
}

.layui-col-space10{
    margin-left:0 !important;
    margin-right:0 !important;
}
.layui-col-space10 > div{
    padding-left:0 !important;
    padding-right:0 !important;
}
.kpro-mobile-card-inner{
    width:100%;
}