/* 学伴卡模版：家长选择页与入库预览共用 */
.xh-ccard {
  background: rgba(255, 253, 246, 0.92);
  border: 1px solid rgba(23, 61, 50, 0.08);
  border-radius: 26px;
  box-shadow: 0 18px 40px rgba(23, 61, 50, 0.12);
  padding: 26px 24px 20px;
  color: #173d32;
}
.xh-ccard-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.xh-ccard-ava {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #166b56;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex: 0 0 auto;
}
.xh-ccard-stamps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}
.xh-ccard-stamp {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  line-height: 1.3;
}
.xh-ccard-stamp.warn { background: #f3e6cc; color: #8a5a1e; }
.xh-ccard-stamp.ok { background: #e7f3e4; color: #0f4c3e; }
.xh-ccard-name {
  margin: 14px 0 0;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.xh-ccard-role {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #166b56;
}
.xh-ccard-school {
  margin: 4px 0 0;
  color: #3d5c52;
  font-size: 14px;
  line-height: 1.5;
}
.xh-ccard-stage {
  margin: 4px 0 0;
  color: #3d5c52;
  font-size: 13px;
  line-height: 1.5;
}
.xh-ccard-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.xh-ccard-tag {
  display: inline-block;
  background: #e7f3e4;
  color: #0f4c3e;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
}
.xh-ccard-highlight {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: #173d32;
}
.xh-ccard-price {
  margin-top: 18px;
  font-size: 20px;
  font-weight: 700;
  color: #166b56;
}
.xh-ccard-price span {
  font-size: 13px;
  font-weight: 500;
  color: #3d5c52;
}
.xh-ccard-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 20px;
}
.xh-ccard-counter {
  margin-top: 12px;
  text-align: center;
  color: #3d5c52;
  font-size: 13px;
}
.xh-ccard-peek {
  margin-top: 16px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  height: 120px;
}
.xh-ccard-peek img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  object-position: 52% 40%;
}
.xh-ccard-peek span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(246, 246, 238, 0.92);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  color: #173d32;
}

.xh-ccard-teaser {
  position: absolute;
  width: 260px;
  height: auto;
  min-height: 220px;
  border-radius: 22px;
  padding: 22px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.xh-ccard-teaser .xh-ccard-name { font-size: 18px; margin-top: 14px; }
.xh-ccard-teaser.c3 { right: 70px; top: 48px; transform: rotate(-8deg); background: rgba(231, 243, 228, 0.9); }
.xh-ccard-teaser.c2 { right: 16px; top: 28px; transform: rotate(8deg); }
.xh-ccard-teaser.c1 { right: 86px; top: 0; }

.xh-ccard-row {
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  box-shadow: none;
}
.xh-ccard-row .xh-ccard-top { display: none; }
.xh-ccard-row .xh-ccard-name { font-size: 15px; margin: 0; }
.xh-ccard-row .xh-ccard-role { margin-top: 2px; }
.xh-ccard-row .xh-ccard-stamps { margin-top: 8px; }
.xh-ccard-row .xh-ccard-price { margin-top: 10px; font-size: 16px; }
.xh-ccard-row .xh-ccard-body { min-width: 0; }
.xh-ccard-row.is-on {
  border-color: #166b56;
  box-shadow: 0 0 0 1px #166b56 inset;
}
.xh-ccard-row .xl-btn {
  height: 36px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: 10px;
  flex: 0 0 auto;
}

.xh-ccard-host { background: transparent; border: 0; padding: 0; box-shadow: none; }
.xh-ccard-live { width: 100%; }

@media (max-width: 860px) {
  .xh-ccard-teaser.c2,
  .xh-ccard-teaser.c3 { display: none; }
  .xh-ccard-teaser.c1 {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    width: 100%;
    min-height: 180px;
    transform: none;
  }
  .xh-ccard-name { font-size: 24px; }
  .xh-ccard-peek { height: 96px; }
  .xh-ccard-peek img { height: 96px; }
}
