.qjz-hero {
  display: grid;
  gap: 0;
}

.qjz-today-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  align-items: stretch;
}

.qjz-summary-card,
.qjz-date-badge {
  border-radius: 14px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(198, 40, 40, 0.12);
}

.qjz-summary-card {
  display: grid;
  gap: 2px;
}

.qjz-summary-card span {
  font-size: 11px;
  color: #9c5c5c;
}

.qjz-summary-card strong {
  font-size: 15px;
  color: var(--qjz-ink);
}

.qjz-date-badge {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.qjz-date-badge strong {
  color: var(--qjz-red);
  font-size: 15px;
  line-height: 1.1;
}

.qjz-date-badge span {
  margin-top: 2px;
  font-size: 10px;
  color: #9c5c5c;
}

.qjz-checkin-groups {
  display: grid;
  gap: 10px;
}

.qjz-checkin-group {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(198, 40, 40, 0.12);
}

.qjz-checkin-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.qjz-checkin-group-head strong {
  font-size: 13px;
  color: var(--qjz-ink);
}

.qjz-checkin-group-head span {
  font-size: 11px;
  color: #9c6767;
}

.qjz-checkin-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.qjz-checkin-mini {
  display: grid;
  gap: 6px;
  padding: 10px 8px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(198, 40, 40, 0.12);
  min-width: 0;
}

.qjz-checkin-mini strong {
  min-height: 32px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--qjz-ink);
  text-align: center;
  word-break: break-word;
}

.qjz-checkin-mini span {
  min-height: 28px;
  font-size: 10px;
  line-height: 1.4;
  color: #9c6767;
  text-align: center;
  word-break: break-word;
}

.qjz-checkin-btn {
  min-height: 34px;
  padding: 8px 6px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--qjz-red), var(--qjz-red-soft));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(198, 40, 40, 0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.qjz-checkin-btn:hover {
  transform: translateY(-1px);
}

.qjz-checkin-btn.done {
  background: linear-gradient(135deg, var(--qjz-green), var(--qjz-green-soft));
  box-shadow: 0 8px 18px rgba(34, 197, 94, 0.14);
}

.qjz-checkin-btn:disabled {
  opacity: 1;
  cursor: default;
}

.qjz-calendar-card {
  display: grid;
  gap: 10px;
}

.qjz-calendar-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.qjz-month-switch {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.qjz-month-label {
  min-width: 96px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--qjz-ink);
}

.qjz-icon-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--qjz-red-border);
  border-radius: 12px;
  background: #fff;
  color: var(--qjz-red);
  font-size: 16px;
  cursor: pointer;
}

.qjz-btn-soft {
  justify-self: end;
  min-width: 58px;
  height: 28px;
  padding: 0 14px;
  border: 1px solid var(--qjz-red-border);
  border-radius: 999px;
  background: linear-gradient(135deg, #fff1f1, #ffe4e6);
  color: var(--qjz-red);
  box-shadow: 0 8px 18px rgba(198, 40, 40, 0.1);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.qjz-weekdays,
.qjz-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.qjz-weekdays span {
  text-align: center;
  font-size: 11px;
  color: #b07171;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.qjz-day {
  min-height: 78px;
  padding: 8px 6px;
  border: 1px solid rgba(198, 40, 40, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  text-align: left;
  cursor: pointer;
  display: grid;
  align-content: start;
  gap: 4px;
  box-shadow: 0 8px 18px rgba(198, 40, 40, 0.04);
}

.qjz-day.empty {
  background: rgba(255, 250, 250, 0.66);
  border-style: dashed;
  cursor: default;
  box-shadow: none;
}

.qjz-day.active {
  border-color: rgba(198, 40, 40, 0.55);
  background: linear-gradient(180deg, #fffefe 0%, #fff1f1 100%);
  box-shadow: 0 12px 22px rgba(198, 40, 40, 0.12);
}

.qjz-day.today {
  outline: 2px solid rgba(198, 40, 40, 0.22);
  outline-offset: -2px;
}

.qjz-day-number {
  font-size: 13px;
  font-weight: 700;
  color: var(--qjz-ink);
}

.qjz-day-summary {
  display: grid;
  gap: 3px;
}

.qjz-day-summary span {
  padding: 2px 6px;
  border-radius: 10px;
  background: #fff4f4;
  color: var(--qjz-red);
  font-size: 10px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qjz-record-detail {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.qjz-record-date {
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--qjz-red-light);
  color: var(--qjz-red);
  font-size: 13px;
  font-weight: 700;
}

.qjz-record-list {
  display: grid;
  gap: 8px;
}

.qjz-record-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(198, 40, 40, 0.12);
}

.qjz-record-main {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 4px;
}

.qjz-record-main strong {
  font-size: 13px;
  color: var(--qjz-ink);
}

.qjz-record-main span {
  font-size: 12px;
  line-height: 1.5;
  color: #a46d6d;
}

.qjz-record-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.qjz-record-btn {
  min-height: 30px;
  padding: 0 10px;
  border: none;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.qjz-record-btn.edit {
  background: #fee2e2;
  color: #b91c1c;
}

.qjz-record-btn.delete {
  background: #fff;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

@media (max-width: 480px) {
  .qjz-section-title,
  .qjz-calendar-head,
  .qjz-record-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .qjz-today-summary {
    grid-template-columns: 1fr;
  }

  .qjz-checkin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .qjz-day {
    min-height: 74px;
  }

  .qjz-day-summary span {
    font-size: 9px;
    padding: 2px 5px;
  }
}
