/* 礼物卡片列表（Gift V2）样式 */
.gift-card-grid {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 16px;
    padding: 16px;
    max-height: calc(100vh - 320px);
    overflow-y: auto;
}
.gift-card {
    position: relative;
    width: 180px;
    border: 1px solid #e3e6ea;
    border-radius: 10px;
    background: #fff;
    transition: box-shadow .15s, transform .15s;
}
.gift-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
    transform: translateY(-2px);
    z-index: 999;
}
.gift-card .card-main {
    padding: 16px 14px 14px;
    text-align: center;
}
.gift-card .card-main .gicon {
    width: 96px;
    height: 96px;
    object-fit: contain;
}
.gift-card .card-main .gname {
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gift-card .card-main .gprice {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}
.gift-card .gcheck {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 5;
}
.gift-card .gstatus {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 5;
}
/* hover 详情浮层：卡片下方弹出，宽度足够，不再挤压 */
.gift-card .gdetail {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 320px;
    background: #fff;
    border: 1px solid #dfe3e8;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
    padding: 14px;
    font-size: 13px;
    display: none;
    z-index: 9999;
    cursor: default;
}
.gift-card:hover .gdetail {
    display: block;
}
.gift-card .gdetail .di {
    margin-bottom: 5px;
    line-height: 1.4;
}
.gift-card .gdetail .dk {
    color: #999;
}
/* 主卡 hover 操作按钮组：位于 ON/OFF 角标上方，向下对齐，hover 才显示 */
.gift-card .gbtns {
    position: absolute;
    right: 8px;
    bottom: 32px;
    display: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    z-index: 5;
}
.gift-card:hover .gbtns {
    display: flex;
}
.gift-card .gbtns .gbtn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
    line-height: 1;
}
.gift-card .gbtn-primary { background: #007bff; }
.gift-card .gbtn-info { background: #17a2b8; }
.gift-card .gbtn-success { background: #28a745; }
.gift-card .gbtn-danger { background: #dc3545; }
