/* ==========================================================
   会员卡网格（占公告位）
   顶边与底边均由 JS 实测右侧个人信息卡后写入行内样式
   ========================================================== */

.vip-card-grid {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px 13px;
  border-radius: 10px;
  background: linear-gradient(150deg, #f7fbff 0%, #eef6ff 100%);
  border: 1px solid #e2ecf9;
  min-height: 0;
  overflow: hidden;
}

.vip-card-grid .vcg-head {
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex: 0 0 auto;
}

.vip-card-grid .vcg-title {
  font-size: 14px;
  font-weight: 800;
  color: #26303e;
  padding-left: 8px;
  border-left: 3px solid #409eff;
  line-height: 1.1;
  letter-spacing: .3px;
}

.vip-card-grid .vcg-sub {
  font-size: 11px;
  color: #8b96a5;
}

.vip-card-grid .vcg-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  grid-auto-rows: min-content;
}

.vip-card-grid .vcg-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px 7px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid #e6edf7;
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

.vip-card-grid .vcg-item.vcg-hot {
  border-color: #ffd4ce;
  background: linear-gradient(165deg, #fffefd 0%, #fff7f5 100%);
}

.vip-card-grid .vcg-item.vcg-hot::after {
  content: '\63A8\8350';
  position: absolute;
  top: -1px;
  right: -1px;
  background: linear-gradient(135deg, #ff7a6b, #e23a3a);
  color: #fff;
  font-size: 9px;
  padding: 1px 7px;
  border-radius: 0 9px 0 9px;
  letter-spacing: .5px;
  line-height: 13px;
}

.vip-card-grid .vcg-item.vcg-owned {
  border-color: #c6e9d2;
  background: linear-gradient(165deg, #fcfffd 0%, #f2fbf5 100%);
}

.vip-card-grid .vcg-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  min-width: 0;
}

.vip-card-grid .vcg-rate {
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  color: #e23a3a;
  letter-spacing: -0.6px;
  white-space: nowrap;
}

.vip-card-grid .vcg-item.vcg-owned .vcg-rate {
  color: #1f8a4c;
}

.vip-card-grid .vcg-badge {
  flex: 0 0 auto;
  padding: 0 6px;
  border-radius: 20px;
  background: #e8f8ee;
  border: 1px solid #b7e6c4;
  color: #1f8a4c;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 13px;
  white-space: nowrap;
}

.vip-card-grid .vcg-name {
  font-size: 12px;
  font-weight: 700;
  color: #3a4453;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vip-card-grid .vcg-meta {
  font-size: 10px;
  color: #94a0b0;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vip-card-grid .vcg-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  padding-top: 2px;
}

.vip-card-grid .vcg-price {
  font-size: 14px;
  font-weight: 800;
  color: #26303e;
  white-space: nowrap;
  line-height: 1.05;
}

.vip-card-grid .vcg-price-owned {
  font-size: 11px;
  color: #94a0b0;
  font-weight: 600;
  text-decoration: line-through;
}

.vip-card-grid .vcg-btn {
  flex: 0 0 auto;
  padding: 3px 11px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(135deg, #409eff, #2f7fe8);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  line-height: 15px;
  white-space: nowrap;
  font-family: inherit;
}

.vip-card-grid .vcg-btn:hover {
  filter: brightness(1.08);
}

.vip-card-grid .vcg-btn:disabled {
  background: #b9c3d1;
  cursor: not-allowed;
  filter: none;
}

.vip-card-grid .vcg-state {
  flex: 0 0 auto;
  padding: 1px 9px;
  border-radius: 6px;
  background: #e8f8ee;
  border: 1px solid #b7e6c4;
  color: #1f8a4c;
  font-size: 10px;
  font-weight: 700;
  line-height: 15px;
  white-space: nowrap;
}

.vip-card-grid .vcg-exp {
  font-size: 9.5px;
  color: #6aa87f;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 响应式 */
@media screen and (max-width: 1100px) {
  .vip-card-grid .vcg-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .vip-card-grid .vcg-rate {
    font-size: 19px;
  }
}

@media screen and (max-width: 768px) {
  .vip-card-grid {
    padding: 10px 12px 11px;
  }
  .vip-card-grid .vcg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .vip-card-grid .vcg-rate {
    font-size: 18px;
  }
  .vip-card-grid .vcg-name {
    font-size: 11.5px;
  }
  .vip-card-grid .vcg-price {
    font-size: 13px;
  }
}

@media screen and (max-width: 480px) {
  .vip-card-grid {
    padding: 10px;
    border-radius: 8px;
  }
  .vip-card-grid .vcg-title {
    font-size: 13px;
  }
  .vip-card-grid .vcg-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .vip-card-grid .vcg-rate {
    font-size: 18px;
  }
}
