/* ============================================================
   SaaSShop 装修模块 V3-K 营销组件样式（独立文件）
   points_card / distribution_center / magic_cube / full_reduction
   ============================================================ */

/* ── 入口卡（积分/分销共用） ── */
.mk-entry-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    text-decoration: none;
    margin-bottom: 8px;
    transition: transform .15s ease, box-shadow .15s ease;
}
.mk-entry-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}
.mk-entry-icon {
    font-size: 26px;
    line-height: 1;
    flex-shrink: 0;
}
.mk-entry-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}
.mk-entry-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}
.mk-entry-sub {
    font-size: 12px;
    opacity: .75;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mk-entry-arrow {
    font-size: 18px;
    opacity: .6;
    flex-shrink: 0;
}

/* ── 魔方格子 ── */
.mk-cube {
    display: grid;
    margin-bottom: 8px;
}
.mk-cube-cell {
    position: relative;
    display: block;
    overflow: hidden;
    background: #f5f5f5;
    text-decoration: none;
}
.mk-cube-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.mk-cube-title {
    position: absolute;
    left: 8px;
    bottom: 8px;
    color: #fff;
    font-size: 12px;
    background: rgba(0, 0, 0, .35);
    padding: 2px 8px;
    border-radius: 4px;
}
/* 2×2 四格 */
.mk-cube-two-two {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
}
.mk-cube-two-two .mk-cube-cell {
    aspect-ratio: 1.6 / 1;
}
/* 1大+2小 */
.mk-cube-one-two {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    grid-auto-rows: 1fr;
}
.mk-cube-one-two .mk-cube-cell:first-child {
    grid-row: span 2;
}
.mk-cube-one-two .mk-cube-cell {
    aspect-ratio: auto;
}
/* 2大+3小 */
.mk-cube-two-three {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
}
.mk-cube-two-three .mk-cube-cell {
    aspect-ratio: 1.6 / 1;
}
.mk-cube-two-three .mk-cube-cell:nth-child(n+3) {
    aspect-ratio: auto;
}
/* 1大+4小（华为风切片5：商品实时查库）——左侧大格(2fr) + 右侧 2×2 四小格 */
.mk-cube-one-four {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    aspect-ratio: 2.6 / 1;
}
.mk-cube-one-four .mk-cube-cell {
    aspect-ratio: auto;
    height: 100%;
}
.mk-cube-one-four .mk-cube-cell:first-child {
    grid-column: 1;
    grid-row: span 2;
}
.mk-cube-one-four .mk-cube-cell-large {
    grid-column: 1;
    grid-row: span 2;
}
.mk-cube-one-four .mk-cube-cell:nth-child(n+2) {
    grid-column: auto;
}
.mk-cube-one-four .mk-cube-cell img {
    height: 100%;
    transition: transform .3s ease;
}
.mk-cube-one-four .mk-cube-cell:hover img {
    transform: scale(1.04);
}
.mk-cube-price {
    position: absolute;
    right: 8px;
    bottom: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    background: rgba(228, 57, 60, .92);
    padding: 2px 8px;
    border-radius: 4px;
}

/* ── 满减活动 ── */
.mk-reduce {
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 8px;
}
.mk-reduce-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}
.mk-reduce-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, .06);
}
.mk-reduce-item:last-child {
    border-bottom: none;
}
.mk-reduce-tag {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: #ff4d4f;
    border-radius: 4px;
    padding: 2px 8px;
    white-space: nowrap;
}
.mk-reduce-name {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mk-reduce-go {
    flex-shrink: 0;
    font-size: 12px;
    text-decoration: none;
    opacity: .85;
}

/* ── PC 端微调 ── */
@media (min-width: 768px) {
    .mk-entry-card {
        padding: 18px 20px;
        border-radius: 14px;
    }
    .mk-entry-icon {
        font-size: 32px;
    }
    .mk-entry-title {
        font-size: 17px;
    }
    .mk-entry-sub {
        font-size: 13px;
    }
    .mk-reduce {
        padding: 14px 18px;
    }
    .mk-reduce-title {
        font-size: 15px;
    }
}

/* V2.3 mk-cube fine shadow + strike origin price */
.mk-cube-cell {
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
}
.mk-cube-one-four .mk-cube-cell {
    border-radius: 10px;
    transition: box-shadow .25s ease, transform .25s ease;
}
.mk-cube-one-four .mk-cube-cell:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, .10);
    transform: translateY(-2px);
}
.mk-cube-price-orig {
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, .85);
    text-decoration: line-through;
    margin-left: 4px;
}
