/* =========================================================
   糖果屋 — Yunnan Baiyao oral-care H5
   ========================================================= */

.case-cover__tag--top {
  top: 18px;
  bottom: auto;
}

.h5-screens {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}

.h5-screen {
  margin: 0;
}

.h5-screen__frame {
  padding: 7px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(44, 27, 18, 0.12);
}

.h5-screen__frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 1030;
  object-fit: cover;
  border-radius: 18px;
  background: #f7efe4;
}

.h5-screen figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 9px;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: 0.035em;
  color: var(--muted);
}

.h5-live {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(24px, 4vw, 44px);
  border: 0;
  background: var(--paper);
  color: var(--ink);
}

:root[data-theme="dark"] .h5-live {
  background: var(--paper-2);
}

.h5-live h2 {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.h5-live p {
  max-width: 570px;
  margin: 16px 0 0;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
}

.h5-live .case-button--solid {
  margin-top: 22px;
  background: var(--accent);
  color: var(--accent-ink);
}

.h5-live .case-button--solid:hover {
  filter: brightness(0.92);
}

.h5-live__note {
  margin: 16px 0 0;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.h5-qr {
  margin: 0;
  text-align: center;
}

.h5-qr img {
  display: block;
  width: 164px;
  height: 164px;
  border: 8px solid #fff;
  border-radius: 4px;
  background: #fff;
}

.h5-qr figcaption {
  margin-top: 9px;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--muted);
}

@media (max-width: 1000px) {
  .h5-screens {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .case-cover__tag--top {
    top: 10px;
  }

  .h5-screens {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }

  .h5-screen__frame {
    padding: 5px;
    border-radius: 18px;
  }

  .h5-screen__frame img {
    border-radius: 14px;
  }

  .h5-screen figcaption {
    font-size: 7px;
  }

  .h5-live {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 28px;
    padding: 24px 20px;
  }

  .h5-live h2 {
    font-size: 34px;
  }

  .h5-qr {
    text-align: left;
  }
}
