/* H5 viewer & index */

.yh-h5-body {
  margin: 0;
  padding: 0;
  background: #111;
  overflow: hidden;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.yh-h5-body.is-poster {
  overflow: auto;
}

.yh-h5-root {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.yh-h5-root.is-poster {
  align-items: flex-start;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.yh-h5-loading {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  color: #999;
  z-index: 9999;
  font-size: 14px;
}

.yh-h5-stage-scaler {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

.yh-h5-stage-wrap {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: top left;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  touch-action: pan-y;
  perspective: 1200px;
}

.yh-h5-page {
  position: absolute;
  inset: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

.yh-h5-page-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}

.yh-h5-page.is-active {
  z-index: 2;
  visibility: visible;
  pointer-events: auto;
}

/* 翻页转场：slide / fade / flip */
.yh-h5-page.is-leaving,
.yh-h5-page.is-entering {
  visibility: visible;
  pointer-events: none;
}

.yh-h5-page.is-leaving.yh-pt-out[data-pt-type="slide"].yh-pt-forward {
  animation: yhPtSlideOutUp var(--pt-dur, 400ms) ease forwards;
}
.yh-h5-page.is-entering.yh-pt-in[data-pt-type="slide"].yh-pt-forward {
  animation: yhPtSlideInUp var(--pt-dur, 400ms) ease forwards;
}
.yh-h5-page.is-leaving.yh-pt-out[data-pt-type="slide"].yh-pt-back {
  animation: yhPtSlideOutDown var(--pt-dur, 400ms) ease forwards;
}
.yh-h5-page.is-entering.yh-pt-in[data-pt-type="slide"].yh-pt-back {
  animation: yhPtSlideInDown var(--pt-dur, 400ms) ease forwards;
}

.yh-h5-page.is-leaving.yh-pt-out[data-pt-type="fade"] {
  animation: yhPtFadeOut var(--pt-dur, 400ms) ease forwards;
}
.yh-h5-page.is-entering.yh-pt-in[data-pt-type="fade"] {
  animation: yhPtFadeIn var(--pt-dur, 400ms) ease forwards;
}

.yh-h5-page.is-leaving.yh-pt-out[data-pt-type="flip"].yh-pt-forward {
  animation: yhPtFlipOut var(--pt-dur, 400ms) ease forwards;
  transform-origin: center center;
  backface-visibility: hidden;
}
.yh-h5-page.is-entering.yh-pt-in[data-pt-type="flip"].yh-pt-forward {
  animation: yhPtFlipIn var(--pt-dur, 400ms) ease forwards;
  transform-origin: center center;
  backface-visibility: hidden;
}
.yh-h5-page.is-leaving.yh-pt-out[data-pt-type="flip"].yh-pt-back {
  animation: yhPtFlipOutRev var(--pt-dur, 400ms) ease forwards;
  transform-origin: center center;
  backface-visibility: hidden;
}
.yh-h5-page.is-entering.yh-pt-in[data-pt-type="flip"].yh-pt-back {
  animation: yhPtFlipInRev var(--pt-dur, 400ms) ease forwards;
  transform-origin: center center;
  backface-visibility: hidden;
}

@keyframes yhPtSlideOutUp {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(-100%); opacity: 0.6; }
}
@keyframes yhPtSlideInUp {
  from { transform: translateY(100%); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes yhPtSlideOutDown {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(100%); opacity: 0.6; }
}
@keyframes yhPtSlideInDown {
  from { transform: translateY(-100%); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes yhPtFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes yhPtFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes yhPtFlipOut {
  from { transform: perspective(800px) rotateY(0deg); opacity: 1; }
  to { transform: perspective(800px) rotateY(-90deg); opacity: 0; }
}
@keyframes yhPtFlipIn {
  from { transform: perspective(800px) rotateY(90deg); opacity: 0; }
  to { transform: perspective(800px) rotateY(0deg); opacity: 1; }
}
@keyframes yhPtFlipOutRev {
  from { transform: perspective(800px) rotateY(0deg); opacity: 1; }
  to { transform: perspective(800px) rotateY(90deg); opacity: 0; }
}
@keyframes yhPtFlipInRev {
  from { transform: perspective(800px) rotateY(-90deg); opacity: 0; }
  to { transform: perspective(800px) rotateY(0deg); opacity: 1; }
}

.yh-h5-el {
  position: absolute;
  box-sizing: border-box;
  transform-origin: center center;
}

.yh-h5-el-inner {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  transform-origin: center center;
}

.yh-h5-image img,
.yh-h5-video video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.yh-h5-qrcode img {
  position: absolute;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.yh-h5-text {
  width: 100%;
  height: 100%;
  overflow: hidden;
  word-break: break-word;
  white-space: pre-wrap;
  box-sizing: border-box;
}

.yh-h5-shape {
  width: 100%;
  height: 100%;
}

.yh-h5-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}

.yh-h5-audio-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  background: #ecf5ff;
  color: #409eff;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
}

.yh-h5-audio-btn.is-playing {
  background: #409eff;
  color: #fff;
}

.yh-h5-hotspot {
  background: transparent;
  border: none;
  cursor: pointer;
}

.yh-h5-form {
  width: 100%;
  height: 100%;
  overflow: auto;
  padding: 8px;
  box-sizing: border-box;
  font-size: 13px;
}

.yh-h5-form label {
  display: block;
  margin-bottom: 8px;
}

.yh-h5-form input,
.yh-h5-form textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 4px;
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font: inherit;
}

.yh-h5-form button[type="submit"] {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: #409eff;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.yh-h5-form.is-compact label {
  margin-bottom: 6px;
}
.yh-h5-form.is-compact input {
  padding: 8px 10px;
}

.yh-h5-post-list {
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 8px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #ebeef5;
}
.yh-h5-post-list-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #303133;
}
.yh-h5-post-empty {
  color: #999;
  font-size: 12px;
  text-align: center;
  padding: 12px;
}
.yh-h5-post-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  min-height: 72px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
  align-items: center;
  box-sizing: border-box;
}
.yh-h5-post-item img,
.yh-h5-post-item .yh-h5-post-cover {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.yh-h5-post-cover--placeholder {
  background: #f0f2f5;
}
.yh-h5-post-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
.yh-h5-post-list.is-card .yh-h5-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.yh-h5-post-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
  background: #fafafa;
  border: 1px solid #ebeef5;
}
.yh-h5-post-card img,
.yh-h5-post-card .yh-h5-post-grid-cover {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.yh-h5-post-grid-cover--placeholder,
.yh-h5-post-list-thumb--placeholder {
  background: #f0f2f5;
}
.yh-h5-post-item img,
.yh-h5-post-item .yh-h5-post-list-thumb {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}
.yh-h5-post-card-body {
  padding: 6px 10px 8px;
  flex: 0 0 auto;
  min-width: 0;
}
.yh-h5-post-card strong,
.yh-h5-post-item strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 13px;
  line-height: 1.35;
  color: #303133;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-break: break-word;
  max-height: calc(13px * 1.35 * 2);
}
.yh-h5-post-date {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.2;
  color: #909399;
}
.yh-h5-post-card small,
.yh-h5-post-item small {
  display: none;
}

/* 封面浮层角标（活动/文章列表、活动卡片共用） */
.yh-h5-cover-wrap {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: inherit;
}
.yh-h5-cover-badges {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5px;
  pointer-events: none;
  box-sizing: border-box;
}
.yh-h5-cover-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: flex-start;
}
.yh-h5-cover-badge-row--bottom {
  align-items: flex-end;
  margin-top: auto;
}
.yh-h5-cover-badge {
  display: inline-block;
  max-width: 100%;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  line-height: 1.35;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.yh-h5-cover-badge--status {
  background: rgba(124, 58, 237, 0.92);
}
.yh-h5-cover-badge--price {
  background: rgba(220, 38, 38, 0.92);
  font-weight: 700;
}
.yh-h5-act-card-item .yh-h5-cover-wrap {
  border-radius: 8px 8px 0 0;
}
.yh-h5-act-list-item .yh-h5-cover-wrap {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  flex-shrink: 0;
}
.yh-h5-post-item .yh-h5-cover-wrap {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  flex-shrink: 0;
}
.yh-h5-post-card .yh-h5-cover-wrap {
  border-radius: 8px 8px 0 0;
}
.yh-h5-cover-badge--period,
.yh-h5-cover-badge--date,
.yh-h5-cover-badge--countdown {
  background: rgba(15, 23, 42, 0.72);
}

.yh-h5-activity-card {
  width: 100%;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.yh-h5-activity-list {
  width: 100%;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
  padding: 8px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #ebeef5;
}
.yh-h5-act-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 10px;
  box-sizing: border-box;
  gap: 8px;
}
.yh-h5-act-inner .yh-h5-cover-wrap {
  width: 100%;
  border-radius: 8px;
}
.yh-h5-act-inner .yh-h5-act-cover {
  width: 100%;
  max-height: none;
  min-height: 0;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  display: block;
}
.yh-h5-act-cover {
  width: 100%;
  max-height: 42%;
  min-height: 72px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  display: block;
}
.yh-h5-act-cover--placeholder {
  background: linear-gradient(135deg, #f0f2f5 0%, #e5e7eb 100%);
}
.yh-h5-act-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}
.yh-h5-act-body strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 15px;
  line-height: 1.35;
  color: #1f2937;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-break: break-word;
  max-height: calc(15px * 1.35 * 2);
}
.yh-h5-act-body p {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.yh-h5-act-period {
  font-size: 11px;
  color: #9ca3af;
}
.yh-h5-act-price { color: #dc2626; font-weight: 700; font-size: 16px; margin: 2px 0; }
.yh-h5-act-countdown { font-size: 12px; margin: 2px 0; }
.yh-h5-act-actions { margin-top: auto; padding-top: 4px; }
.yh-h5-act-btn {
  display: inline-block;
  padding: 8px 16px;
  background: #7c3aed;
  color: #fff;
  border-radius: 20px;
  text-decoration: none;
  font-size: 13px;
}
.yh-h5-act-list-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #303133;
}
.yh-h5-act-empty { color: #999; font-size: 12px; text-align: center; padding: 12px; }
.yh-h5-act-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.yh-h5-act-card-item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
  background: #fafafa;
  border: 1px solid #ebeef5;
}
.yh-h5-act-grid-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.yh-h5-act-grid-cover--placeholder {
  background: #f0f2f5;
  min-height: 0;
}
.yh-h5-act-card-item-body {
  padding: 6px 10px 8px;
  flex: 0 0 auto;
  min-width: 0;
}
.yh-h5-act-list-thumb {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}
.yh-h5-act-list-thumb--placeholder {
  background: #f0f2f5;
  flex-shrink: 0;
}
.yh-h5-act-list-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
.yh-h5-act-card-item strong,
.yh-h5-act-list-item strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 13px;
  line-height: 1.35;
  color: #303133;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-break: break-word;
  max-height: calc(13px * 1.35 * 2);
}
.yh-h5-act-sub {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  color: #909399;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.yh-h5-act-status {
  display: none;
}
.yh-h5-act-card-item small,
.yh-h5-act-list-item small {
  display: none;
}
.yh-h5-act-list-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  min-height: 72px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
  align-items: center;
  box-sizing: border-box;
}
.yh-h5-act-list-item img,
.yh-h5-act-list-item .yh-h5-act-list-thumb {
  width: 56px;
  height: 56px;
  aspect-ratio: auto;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.yh-h5-act-list-item .yh-h5-act-list-thumb--placeholder {
  background: #f0f2f5;
}

.yh-h5-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-size: 14px;
  white-space: nowrap;
  box-sizing: border-box;
  padding: 0 4px;
}

.yh-h5-cd-label {
  white-space: nowrap;
  flex-shrink: 0;
}

.yh-h5-countdown-card .yh-h5-cd-unit {
  background: rgba(0, 0, 0, 0.06);
  border-radius: 6px;
  padding: 2px 4px;
  min-width: 0;
  text-align: center;
  font-weight: 700;
  flex-shrink: 0;
}

.yh-h5-map {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 10px;
  background: #f5f7fa;
  border: 1px solid #ebeef5;
  overflow: hidden;
}

.yh-h5-map-title {
  font-size: 14px;
  font-weight: 700;
  color: #303133;
  margin-bottom: 6px;
  line-height: 1.3;
}

.yh-h5-map-mount {
  flex: 1 1 auto;
  min-height: 80px;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: #eef1f5;
}

.yh-h5-map-addr {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: #606266;
}

.yh-h5-map-actions {
  margin-top: 8px;
  display: flex;
}

.yh-h5-map-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 16px;
  border: 1px solid #409eff;
  color: #409eff;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}

.yh-h5-map-nav-btn:active {
  opacity: 0.85;
}

.yh-h5-marquee {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.yh-h5-marquee-inner {
  white-space: nowrap;
  display: inline-block;
}

.yh-h5-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.yh-h5-icon i {
  font-size: inherit;
  line-height: 1;
}

.yh-h5-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 10px;
  box-sizing: border-box;
  gap: 5px;
  letter-spacing: 0.02em;
}

.yh-badge-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: yh-badge-dot-pulse 1.4s ease-in-out infinite;
}

@keyframes yh-badge-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.92); }
}

.yh-h5-shape > div {
  box-sizing: border-box;
}

.yh-h5-divider {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
}

.yh-h5-divider-line {
  width: 100%;
  height: 0;
}

.yh-h5-pager {
  position: fixed;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 100;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
}

.yh-h5-page-nav {
  position: fixed;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.yh-h5-page-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  padding: 0;
}

.yh-h5-page-nav-btn:hover {
  background: rgba(0, 0, 0, 0.55);
}

.yh-h5-page-hint {
  position: fixed;
  left: 50%;
  bottom: calc(48px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 100;
  padding: 8px 14px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  pointer-events: none;
  white-space: nowrap;
}

.yh-h5-music-btn {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top));
  right: 12px;
  z-index: 100;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.yh-h5-music-btn.is-playing i {
  animation: yh-h5-spin 2s linear infinite;
}

@keyframes yh-h5-spin {
  to { transform: rotate(360deg); }
}

/* Animations */
@keyframes yh-h5-fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes yh-h5-slideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes yh-h5-slideDown { from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes yh-h5-slideLeft { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes yh-h5-slideRight { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes yh-h5-zoomIn { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: scale(1); } }
@keyframes yh-h5-bounceIn {
  0% { opacity: 0; transform: scale(0.3); }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes yh-h5-rotateIn { from { opacity: 0; transform: rotate(-180deg) scale(0.5); } to { opacity: 1; transform: rotate(0) scale(1); } }
@keyframes yh-h5-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@keyframes yh-h5-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

.yh-h5-anim-enter { animation-fill-mode: both; }

/* Index */
.yh-h5-index-body { margin: 0; font-family: "PingFang SC", sans-serif; background: #f5f7fa; }
.yh-h5-index-header { padding: 24px 16px 8px; text-align: center; }
.yh-h5-index-header h1 { margin: 0 0 8px; font-size: 22px; }
.yh-h5-index-header p { margin: 0; color: #666; font-size: 14px; }
.yh-h5-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  padding: 16px;
  max-width: 960px;
  margin: 0 auto;
}
.yh-h5-index-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.yh-h5-index-thumb { aspect-ratio: 9/16; background: #eee; overflow: hidden; }
.yh-h5-index-thumb img { width: 100%; height: 100%; object-fit: cover; }
.yh-h5-index-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #667eea, #764ba2); }
.yh-h5-index-card h3 { margin: 0; padding: 10px 12px; font-size: 14px; }
.yh-h5-index-empty { grid-column: 1/-1; text-align: center; color: #999; }
