/* 红小果的示意画面: 电脑窗口 + 手机推荐流 (弹幕) */

.hg-mock {
  position: relative;
  display: flex;
  justify-content: flex-end;
  width: min(100%, 560px);
  padding: 4.5rem 0.5rem 1rem;
}

.desk-window {
  position: absolute;
  top: 0;
  left: 0;
  width: 80%;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 14px;
  background: var(--hg-surface);
  box-shadow: 0 40px 70px -40px #000;
  transform: rotate(-3deg);
}

.desk-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-bottom: 1px solid var(--stage-rule);
}

.desk-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff5f57;
}

.desk-bar i:nth-child(2) { background: #febc2e; }
.desk-bar i:nth-child(3) { background: #28c840; }

.desk-bar span {
  margin-left: auto;
  margin-right: auto;
  color: var(--stage-text-3);
  font-size: 0.6rem;
}

.desk-body {
  display: grid;
  grid-template-columns: 18% 1fr;
  gap: 10px;
  padding: 10px;
}

.desk-side {
  display: grid;
  align-content: start;
  gap: 8px;
}

.desk-side b {
  width: 18px;
  height: 18px;
  margin-bottom: 6px;
  border-radius: 6px;
  background: var(--hg-accent);
}

.desk-side span {
  height: 6px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.1);
}

.desk-side span:first-of-type {
  background: rgb(255 255 255 / 0.3);
}

.desk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.desk-grid span {
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  background:
    linear-gradient(180deg, transparent 55%, rgb(0 0 0 / 0.55)),
    linear-gradient(160deg, oklch(58% 0.15 var(--h)), oklch(26% 0.08 calc(var(--h) + 40)));
}

/* 海报占位的色相 */
.desk-grid span:nth-child(1) { --h: 350; }
.desk-grid span:nth-child(2) { --h: 20; }
.desk-grid span:nth-child(3) { --h: 280; }
.desk-grid span:nth-child(4) { --h: 200; }
.desk-grid span:nth-child(5) { --h: 330; }
.desk-grid span:nth-child(6) { --h: 40; }

.phone--hongguo {
  z-index: 1;
  margin-right: 4%;
  transform: rotate(3deg);
}

.hg-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 31px;
  background: var(--hg-bg);
}

.hg-poster {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(0 0 0 / 0.35), transparent 22%, transparent 55%, rgb(0 0 0 / 0.75)),
    radial-gradient(ellipse 60% 40% at 32% 30%, oklch(70% 0.17 35 / 0.9), transparent),
    radial-gradient(ellipse 70% 50% at 75% 62%, oklch(45% 0.2 330 / 0.9), transparent),
    linear-gradient(170deg, #3b1d2c, #161823);
  animation: ken-burns 14s ease-in-out infinite alternate;
}

@keyframes ken-burns {
  from { transform: scale(1); }
  to { transform: scale(1.12) translate(-3%, 2%); }
}

.hg-danmaku span {
  position: absolute;
  top: calc(16% + var(--row) * 6.5%);
  left: 100%;
  color: #fff;
  font-size: 0.64rem;
  font-weight: 600;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.6);
  white-space: nowrap;
  animation: danmaku 8s linear infinite;
  animation-delay: var(--delay);
}

/* 弹幕行位置与错开的出场时间 (不用行内 style, 保持 CSP 严格) */
.hg-danmaku span:nth-child(1) { --row: 0; --delay: 0s; }
.hg-danmaku span:nth-child(2) { --row: 1; --delay: -3.2s; }
.hg-danmaku span:nth-child(3) { --row: 2; --delay: -1.4s; }
.hg-danmaku span:nth-child(4) { --row: 3; --delay: -4.6s; }

@keyframes danmaku {
  to { transform: translateX(-420px); }
}

.hg-rail {
  position: absolute;
  right: 10px;
  bottom: 32%;
  display: grid;
  gap: 14px;
}

.hg-rail i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.16);
  backdrop-filter: blur(6px);
}

.hg-rail i:first-child {
  background: var(--hg-accent);
}

.hg-info {
  position: absolute;
  right: 52px;
  bottom: 30px;
  left: 14px;
  display: grid;
  gap: 0.25rem;
  color: #fff;
  font-size: 0.6rem;
}

.hg-info b {
  font-size: 0.9rem;
}

.hg-info > span {
  color: var(--stage-text-2);
}

.hg-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.hg-pill,
.hg-speed {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.16);
  font-weight: 600;
}

.hg-speed {
  background: var(--hg-accent);
  font-family: var(--font-mono);
}

.hg-progress {
  position: absolute;
  right: 14px;
  bottom: 16px;
  left: 14px;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.2);
}

.hg-progress span {
  display: block;
  height: 100%;
  background: #fff;
  transform-origin: left;
  animation: progress 18s linear infinite;
}

@media (max-width: 480px) {
  .hg-mock {
    padding-top: 3rem;
  }
}
