/**
 * CheckCard — 中国全民保障支票（纯 CSS，无切图文字）
 * 与 uni-app/components/check-card/CheckCard.vue 结构一致
 */

.check-card {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

.check-card__status {
  margin-bottom: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  text-align: center;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.check-card__status[hidden] {
  display: none !important;
}

.check-card__status--unlocking {
  background: rgba(255, 255, 255, 0.16);
}

.check-card__status--pending {
  color: #fff3e0;
  background: rgba(230, 122, 46, 0.35);
}

.check-card__status--stamped {
  color: #e8fff0;
  background: rgba(45, 157, 107, 0.35);
}

/* CheckCard body */
.check-card__body {
  position: relative;
  padding: 16px 14px 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid #dce8ff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.check-card__ornament {
  position: absolute;
  width: 44px;
  height: 44px;
  opacity: 0.4;
  border: 1px solid #dce8ff;
  border-radius: 3px;
  pointer-events: none;
}

.check-card__ornament--tl {
  top: 6px;
  left: 6px;
  border-right: 0;
  border-bottom: 0;
}

.check-card__ornament--tr {
  top: 6px;
  right: 6px;
  border-left: 0;
  border-bottom: 0;
}

.check-card__ornament--bl {
  bottom: 6px;
  left: 6px;
  border-right: 0;
  border-top: 0;
}

.check-card__ornament--br {
  bottom: 6px;
  right: 6px;
  border-left: 0;
  border-top: 0;
}

/* Logo */
.check-card__logo {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

/* Title */
.check-card__title {
  display: block;
  margin: 0 0 0 68px;
  padding-top: 4px;
  padding-right: 8px;
  font-size: 17px;
  font-weight: 700;
  color: #0f1c2e;
  line-height: 1.25;
  letter-spacing: 0.3px;
}

/* Receiver */
.check-card__receiver {
  display: flex;
  align-items: baseline;
  margin-top: 44px;
  font-size: 14px;
  color: #1c2b42;
}

.check-card__receiver-label {
  flex-shrink: 0;
  font-weight: 500;
}

.check-card__receiver-name {
  font-weight: 600;
}

/* Amount row */
.check-card__amount-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 12px;
  padding: 10px;
  background: rgba(220, 232, 255, 0.5);
  border: 1px solid #dce8ff;
  border-radius: 8px;
}

.check-card__amount-chinese {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.check-card__amount-cn-label {
  font-size: 11px;
  font-weight: 500;
  color: #5f7da6;
}

.check-card__amount-cn-value {
  font-size: 13px;
  font-weight: 700;
  color: #0f1c2e;
  line-height: 1.35;
}

.check-card__amount-number {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: 52%;
}

.check-card__amount-label {
  margin-bottom: 4px;
  font-size: 10px;
  color: #5f7da6;
}

.check-card__amount-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 3px;
  justify-content: flex-end;
}

.check-card__amount-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 20px;
  width: 24px;
  height: 32px;
  padding: 0 1px;
  background: #fff;
  border: 1px solid #bfd1ff;
  border-radius: 4px;
  box-sizing: border-box;
  font-family: "DIN Alternate", "Roboto Mono", Consolas, monospace;
  font-size: 15px;
  font-weight: 700;
  color: #0b54ff;
  line-height: 1;
}

.check-card__amount-cell--symbol {
  min-width: 18px;
  width: 22px;
  padding: 0;
  font-size: 14px;
}

/* Purpose & Date */
.check-card__purpose,
.check-card__date {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
}

.check-card__field-label {
  flex-shrink: 0;
  color: #3d4f68;
  font-weight: 500;
}

.check-card__field-value {
  flex: 1;
  min-width: 0;
  color: #1c2b42;
  font-weight: 500;
}

.check-card__field-value--line {
  padding-bottom: 2px;
  border-bottom: 1px dotted rgba(95, 125, 166, 0.55);
}

/* Stamp */
.check-card__stamp {
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 72px;
  height: 72px;
}

.check-card__stamp-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.check-card__stamp-pending {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 10px;
  font-weight: 600;
  color: #b45309;
  text-align: center;
  line-height: 1.3;
  border: 2px dashed #e67a2e;
  border-radius: 50%;
}

.check-card--seal-pending .check-card__stamp::before {
  content: "盖章办理中";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 10px;
  font-weight: 600;
  color: #b45309;
  text-align: center;
  border: 2px dashed #e67a2e;
  border-radius: 50%;
}

.check-card--seal-stamped .check-card__stamp::after {
  content: "中国全民保障\A财务专用章";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #9a181c;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  white-space: pre-line;
  border: 2.5px double #c41e22;
  border-radius: 50%;
  transform: rotate(-12deg);
}

/* Footer */
.check-card__footer {
  position: relative;
  padding: 11px 12px 13px;
  text-align: center;
  background: linear-gradient(180deg, #1464ff 0%, #0047e4 100%);
  border-radius: 0 0 18px 18px;
}

.check-card__footer-shield {
  display: inline-block;
  width: 12px;
  height: 13px;
  background: rgba(255, 255, 255, 0.85);
  clip-path: polygon(50% 0%, 100% 18%, 100% 72%, 50% 100%, 0% 72%, 0% 18%);
  opacity: 0.9;
}

.check-card__footer-edge {
  position: absolute;
  top: -5px;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    #fff,
    #fff 4px,
    transparent 4px,
    transparent 8px
  );
}

.check-card__footer-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.5px;
}

.check-card--seal-stamped .check-card__stamp-img {
  display: block !important;
}

.check-card--seal-stamped .check-card__stamp::after {
  display: none;
}

@media (max-width: 390px) {
  .check-card__amount-cell {
    min-width: 18px;
    width: 24px;
    height: 30px;
    font-size: 13px;
  }

  .check-card__amount-cell--symbol {
    min-width: 12px;
    font-size: 11px;
  }

  .check-card__amount-grid {
    gap: 2px;
  }

  .check-card__title {
    font-size: 15px;
  }
}

@media (max-width: 360px) {
  .check-card__amount-cell {
    min-width: 16px;
    width: 22px;
    height: 28px;
    font-size: 11px;
  }
}
