/* ===== 服务器级联 (Product v2) 共享样式: gameDetail / buyItem 等商品页共用 ===== */
/* 页面各自负责容器定位(如 #serverCascade / #platWrap 的宽度与边距), 这里只放通用控件样式 */
.cascade-itemName {
    margin-bottom: 10px;
}

#cascadeL1,
.cascade-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cascade-item {
    display: inline-block;
    max-width: 220px;
    padding: 0 16px;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    color: #666;
    background: #fff;
    border: 1px solid #CDCDCD;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    user-select: none;
}

.cascade-item:hover {
    border-color: #CC2229;
}

.cascade-item.act {
    border-color: #CC2229;
    /* background-color: #cc2229; */
    color: #CC2229;
}

.cascade-item.dis {
    color: #bbb;
    background: #f5f5f5;
    border-color: #e5e5e5;
    cursor: not-allowed;
}

.cascade-item.dis:hover {
    border-color: #e5e5e5;
}

.cascade-unit {
    margin-top: 12px;
    border: 1px solid #D6D6D6;
    border-radius: 6px;
    padding: 12px;
    background: #fff;
}

.cascade-unit>.cascade-pill-row {
    padding-bottom: 10px;
}

.cascade-unit>.cascade-pill-row:empty {
    display: none;
}

.cascade-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.cascade-grid .cascade-item {
    position: relative;
    width: 100%;
    padding: 0 10px 0 34px;
    text-align: left;
}

.cascade-grid .cascade-item::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 1px solid #CDCDCD;
    border-radius: 3px;
    background: #fff;
    box-sizing: border-box;
}

.cascade-grid .cascade-item.act::before {
    border-color: #CC2229;
    background: #cc2229 url(/images/checked.png) center/12px no-repeat;
}

/* ===== 分类级联: 复用上面的 unit / grid / item, 追加选中标签行 ===== */
.cascade-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.cascade-tag {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #D42428;
    border-radius: 5px;
    color: #D42428;
    font-size: 14px;
    background: #fff;
    white-space: nowrap;
}

.cascade-tag .cascade-tag-x {
    margin-left: 10px;
    font-style: normal;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.cate-units>.cascade-unit:first-child {
    margin-top: 0;
}

@media (max-width:767px) {
    .cascade-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}