﻿/* ==========================================================================
   Template E · ANIME（日系动画 / Visual Novel）—— 重制版
   黄昏の街 + 樱花 + 原创动漫人物 + 视觉小说对话框
   ========================================================================== */

.tpl-anime {
  --vn-ink: #f6efe6;
  --vn-ink-2: #cfc4d8;
  --vn-mute: #9b90b0;
  --vn-gold: #f2c78d;
  --vn-pink: #ffb3c7;
  --vn-sky-1: #1c1a3c;
  --vn-sky-2: #4a3a6e;
  --vn-sky-3: #a8628a;
  --vn-sky-4: #e88a72;
  --vn-sky-5: #ffc98f;
  --vn-panel: rgba(12, 10, 24, 0.72);
  --vn-line: rgba(255, 235, 220, 0.16);
  --vn-serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", STSong, SimSun, Georgia, serif;
  --vn-sans: "Hiragino Sans GB", "PingFang SC", "Yu Gothic", "Microsoft YaHei", system-ui, sans-serif;

  background: #0d0a18;
  color: var(--vn-ink);
  font-family: var(--vn-sans);
}

/* ============================ 首屏 ============================ */
.vn-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

.vn-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* 黄昏天空 */
.vn-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--vn-sky-1) 0%,
    var(--vn-sky-2) 26%,
    var(--vn-sky-3) 48%,
    var(--vn-sky-4) 66%,
    var(--vn-sky-5) 78%,
    #2a2340 100%
  );
}

/* 低垂的夕阳 */
.vn-sun {
  position: absolute;
  left: 64%;
  top: 62%;
  width: 120px;
  height: 120px;
  margin: -60px 0 0 -60px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    #fff6e2 0%,
    #ffe0b0 30%,
    rgba(255, 190, 130, 0.55) 58%,
    rgba(255, 170, 120, 0) 76%
  );
  filter: blur(1px);
  animation: vn-sun 11s ease-in-out infinite;
}

@keyframes vn-sun {
  0%,
  100% {
    opacity: 0.9;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

/* 云层 */
.vn-clouds {
  position: absolute;
  left: -40%;
  width: 180%;
  pointer-events: none;
  background-repeat: no-repeat;
}

.vn-clouds--far {
  top: 26%;
  height: 30%;
  filter: blur(16px);
  opacity: 0.55;
  background-image: radial-gradient(46% 20% at 26% 50%, rgba(255, 214, 226, 0.5), transparent 70%),
    radial-gradient(38% 16% at 66% 40%, rgba(255, 228, 200, 0.45), transparent 72%);
  animation: vn-drift 110s linear infinite;
}

.vn-clouds--near {
  top: 46%;
  height: 26%;
  filter: blur(26px);
  opacity: 0.42;
  background-image: radial-gradient(52% 24% at 40% 60%, rgba(255, 226, 196, 0.55), transparent 72%),
    radial-gradient(44% 20% at 80% 50%, rgba(255, 198, 210, 0.4), transparent 74%);
  animation: vn-drift 160s linear infinite reverse;
}

@keyframes vn-drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-20%);
  }
}

/* 光线 */
.vn-rays {
  position: absolute;
  left: 64%;
  top: 62%;
  width: 150%;
  height: 150%;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 200deg at 50% 50%,
    rgba(255, 220, 180, 0) 0deg,
    rgba(255, 220, 180, 0.1) 12deg,
    rgba(255, 220, 180, 0) 22deg,
    rgba(255, 220, 180, 0.08) 32deg,
    rgba(255, 220, 180, 0) 44deg,
    rgba(255, 220, 180, 0.12) 56deg,
    rgba(255, 220, 180, 0) 70deg
  );
  opacity: 0.7;
  animation: vn-rays 14s ease-in-out infinite;
  pointer-events: none;
}

@keyframes vn-rays {
  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) rotate(-2deg);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) rotate(2deg);
  }
}

/* 远山 / 城镇 / 樱花 */
.vn-hills {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30%;
  width: 100%;
  height: 26%;
  display: block;
}

.vn-city {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 27%;
  width: 100%;
  height: 22%;
  display: block;
}

.vn-sakura {
  position: absolute;
  top: -4%;
  left: -6%;
  width: 62%;
  max-width: 520px;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(20, 12, 28, 0.35));
}

/* 地面 / 街道 */
.vn-ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  background: linear-gradient(180deg, rgba(36, 24, 46, 0.85) 0%, #150f22 42%, #0c0916 100%);
}

.vn-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 42%, rgba(10, 8, 20, 0) 45%, rgba(10, 8, 20, 0.55) 100%),
    linear-gradient(180deg, rgba(12, 9, 24, 0.5) 0%, rgba(12, 9, 24, 0) 26%, rgba(12, 9, 24, 0.34) 74%, rgba(10, 8, 18, 0.9) 100%);
}

/* 花瓣 */
.vn-petals {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.vn-petals i {
  position: absolute;
  top: -24px;
  left: var(--x, 50%);
  width: var(--s, 8px);
  height: calc(var(--s, 8px) * 0.74);
  border-radius: 62% 38% 56% 44%;
  background: linear-gradient(180deg, #ffe0ec, #ffa8c4);
  opacity: 0.85;
  animation: vn-fall var(--d, 10s) linear infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes vn-fall {
  0% {
    transform: translate3d(0, -24px, 0) rotate(0deg);
  }
  100% {
    transform: translate3d(var(--drift, 30px), 820px, 0) rotate(240deg);
    opacity: 0;
  }
}

/* 首屏文字 */
.vn-hero__top {
  position: relative;
  z-index: 2;
  padding: 34px 22px 0;
  text-align: center;
}

.vn-kicker {
  font-size: 9.5px;
  letter-spacing: 0.36em;
  color: rgba(255, 232, 214, 0.78);
  text-shadow: 0 2px 14px rgba(14, 10, 24, 0.8);
}

.vn-names {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--vn-serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 9.6vw, 2.7rem);
  letter-spacing: 0.1em;
  color: #fff8ef;
  text-shadow: 0 3px 24px rgba(14, 10, 24, 0.75), 0 0 40px rgba(255, 190, 150, 0.25);
}

.vn-names i {
  font-style: normal;
  font-family: var(--vn-sans);
  font-size: 0.36em;
  letter-spacing: 0.2em;
  color: var(--vn-gold);
  transform: translateY(-0.1em);
}

.vn-title {
  margin-top: 10px;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  color: rgba(255, 240, 228, 0.82);
  text-shadow: 0 1px 12px rgba(14, 10, 24, 0.85);
}

.vn-chips {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.vn-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 10px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(255, 246, 236, 0.92);
  border: 1px solid rgba(255, 226, 200, 0.22);
  border-radius: 999px;
  background: rgba(24, 16, 36, 0.42);
  backdrop-filter: blur(6px);
}

.vn-chip b {
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--vn-gold);
}

.vn-chip--days em {
  font-style: normal;
  font-family: var(--vn-serif);
  font-size: 14px;
  color: #fff;
}

/* 人物 */
/* 远景的两个人：小一点反而更像电影镜头 */
.vn-figures {
  position: absolute;
  left: 53%;
  bottom: 17%;
  width: 64%;
  max-width: 280px;
  height: auto;
  transform: translateX(-50%);
  animation: vn-sway 9s ease-in-out infinite;
  transform-origin: bottom center;
  filter: drop-shadow(0 0 22px rgba(255, 110, 169, 0.32)) drop-shadow(0 6px 16px rgba(8, 5, 14, 0.65));
}

@keyframes vn-sway {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-2px);
  }
}

/* 视觉小说对话框 */
.vn-dialog {
  position: absolute;
  z-index: 3;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 22px 16px 16px;
  border-radius: 14px;
  background: rgba(14, 10, 24, 0.66);
  border: 1px solid rgba(255, 228, 206, 0.2);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  animation: vn-dialog-in 0.9s var(--ease) 0.5s both;
}

@keyframes vn-dialog-in {
  from {
    opacity: 0;
    translate: 0 14px;
  }
}

.vn-dialog__name {
  position: absolute;
  top: -13px;
  left: 14px;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #4a1f2e;
  background: linear-gradient(180deg, #ffd6e0, #ffaec4);
  box-shadow: 0 6px 16px -8px rgba(255, 140, 170, 0.9);
}

.vn-dialog__text {
  font-size: 13.5px;
  line-height: 1.95;
  letter-spacing: 0.02em;
  color: rgba(255, 246, 238, 0.94);
}

.vn-dialog__next {
  position: absolute;
  right: 14px;
  bottom: 8px;
  font-size: 9px;
  color: var(--vn-gold);
  animation: vn-blink 1.6s ease-in-out infinite;
}

@keyframes vn-blink {
  0%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(2px);
  }
}

/* ============================ 通用区块 ============================ */
.vn-sec {
  padding: 46px 20px 0;
  max-width: 760px;
  margin: 0 auto;
}

.vn-sec__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--vn-line);
  margin-bottom: 22px;
}

.vn-sec__label {
  font-size: 9px;
  letter-spacing: 0.34em;
  color: var(--vn-gold);
}

.vn-sec__meta {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--vn-mute);
}

/* ============================ 剧情章节 ============================ */
.vn-chapters {
  display: grid;
  gap: 26px;
}

.vn-chapter {
  position: relative;
  padding-left: 14px;
}

.vn-chapter__bar {
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--vn-pink), rgba(255, 179, 199, 0));
}

.vn-chapter:nth-child(2n) .vn-chapter__bar {
  background: linear-gradient(180deg, #9fc6ff, rgba(159, 198, 255, 0));
}

.vn-chapter:nth-child(3n) .vn-chapter__bar {
  background: linear-gradient(180deg, var(--vn-gold), rgba(242, 199, 141, 0));
}

.vn-chapter:nth-child(4n) .vn-chapter__bar {
  background: linear-gradient(180deg, #c8a8ff, rgba(200, 168, 255, 0));
}

.vn-chapter__meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.vn-chapter__no {
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--vn-gold);
}

.vn-chapter__meta time {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--vn-mute);
}

.vn-chapter__title {
  margin-top: 6px;
  font-family: var(--vn-serif);
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #fdf6ec;
}

.vn-chapter__text {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.95;
  letter-spacing: 0.02em;
  color: var(--vn-ink-2);
}

.vn-chapter__shot {
  margin: 12px 0 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 235, 220, 0.14);
  max-width: 300px;
  cursor: zoom-in;
}

.vn-chapter__shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* ============================ 回忆定格 ============================ */
.vn-stills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.vn-still {
  margin: 0;
  cursor: zoom-in;
}

.vn-still__frame {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #120e20;
  border: 1px solid rgba(255, 235, 220, 0.12);
}

.vn-still__frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 1s var(--ease), filter 0.5s ease;
  filter: saturate(0.96) contrast(1.04);
}

.vn-still:hover .vn-still__frame img {
  transform: scale(1.04);
  filter: saturate(1.06) contrast(1.02);
}

.vn-still__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 8, 18, 0.35) 0%, rgba(10, 8, 18, 0) 22%, rgba(10, 8, 18, 0) 74%, rgba(10, 8, 18, 0.42) 100%);
  pointer-events: none;
}

.vn-still figcaption {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding-top: 7px;
}

.vn-still__cut {
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--vn-gold);
  flex: none;
}

.vn-still__cap {
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--vn-mute);
}

/* ============================ 状态面板 ============================ */
.vn-status {
  margin: 46px 20px 0;
  padding: 22px 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 228, 206, 0.18);
  background: linear-gradient(180deg, rgba(58, 40, 82, 0.55), rgba(20, 14, 34, 0.75));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.vn-status__label {
  font-size: 8.5px;
  letter-spacing: 0.4em;
  color: var(--vn-gold);
}

.vn-status__grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
}

.vn-status__cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vn-status__cell span {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--vn-mute);
}

.vn-status__cell strong {
  font-family: var(--vn-serif);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #fdf6ec;
}

.vn-status__cell--wide {
  grid-column: span 2;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 235, 220, 0.12);
}

.vn-status__cell--wide strong {
  font-size: 1.9rem;
  letter-spacing: 0.02em;
}

.vn-status__cell--wide b {
  font-weight: 500;
  color: var(--vn-pink);
}

.vn-status__cell em {
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--vn-ink-2);
}

.vn-status__hint {
  opacity: 0.5;
}

/* ============================ 独白（告白） ============================ */
.vn-letter {
  position: relative;
  margin-top: 52px;
  padding: 60px 22px 54px;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(180deg, #0d0a1a 0%, #141029 45%, #0b0816 100%);
}

.vn-letter__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.vn-letter__stars {
  position: absolute;
  inset: 0;
}

.vn-letter__stars i {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(210, 225, 255, 0.8);
  animation: vn-twinkle var(--dur, 4s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes vn-twinkle {
  0%,
  100% {
    opacity: 0.12;
  }
  50% {
    opacity: 0.85;
  }
}

.vn-letter__moon {
  position: absolute;
  top: 16%;
  right: 14%;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, #fffdf3, #e8ddc6 62%, #c7bda6);
  box-shadow: 0 0 50px 16px rgba(235, 225, 205, 0.16);
  opacity: 0.9;
}

.vn-letter__label {
  position: relative;
  font-size: 8.5px;
  letter-spacing: 0.4em;
  color: var(--vn-gold);
}

.vn-letter__body {
  position: relative;
  margin: 20px auto 0;
  max-width: 30em;
  text-align: left;
}

.vn-line {
  font-family: var(--vn-serif);
  font-size: 14.5px;
  line-height: 2.25;
  letter-spacing: 0.05em;
  color: #ece4d8;
}

.vn-line + .vn-line {
  margin-top: 16px;
}

.vn-line.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.12em;
  background: var(--vn-gold);
  opacity: 0.75;
  animation: vn-caret 0.9s steps(1) infinite;
}

@keyframes vn-caret {
  0%,
  49% {
    opacity: 0.75;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.vn-letter__sign {
  position: relative;
  margin: 26px auto 0;
  max-width: 30em;
  text-align: right;
  font-family: var(--vn-serif);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--vn-gold);
}

/* ============================ 清单 ============================ */
.vn-list {
  display: grid;
}

.vn-list li {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 235, 220, 0.08);
  font-size: 13px;
  line-height: 1.8;
  color: var(--vn-ink-2);
}

.vn-list li i {
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--vn-pink);
  opacity: 0.8;
  transform: translateY(-2px);
}

.vn-list--choice li span {
  flex: none;
  font-size: 9px;
  color: var(--vn-gold);
}

/* ============================ 结尾 ============================ */
.vn-outro {
  margin-top: 54px;
  padding: 46px 22px 50px;
  text-align: center;
  border-top: 1px solid rgba(255, 235, 220, 0.1);
  background: linear-gradient(180deg, rgba(20, 14, 34, 0) 0%, rgba(10, 8, 18, 0.9) 60%);
}

.vn-outro__end {
  font-family: var(--vn-serif);
  font-size: 1.35rem;
  letter-spacing: 0.5em;
  color: rgba(255, 235, 220, 0.72);
  text-indent: 0.5em;
}

.vn-blessing {
  margin-top: 16px;
  font-family: var(--vn-serif);
  font-size: 1.16rem;
  line-height: 1.9;
  letter-spacing: 0.06em;
  color: #fdf6ec;
}

.vn-outro__date {
  margin-top: 10px;
  font-size: 8.5px;
  letter-spacing: 0.3em;
  color: var(--vn-mute);
}

.vn-song {
  margin-top: 14px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--vn-ink-2);
}

.vn-mark {
  display: inline-block;
  margin-top: 26px;
  font-size: 8px;
  letter-spacing: 0.26em;
  color: var(--vn-mute);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.vn-mark:hover {
  border-bottom-color: currentColor;
  color: var(--vn-gold);
}

/* ============================ 宽屏 ============================ */
@container (min-width: 640px) {
  .vn-hero {
    min-height: 92vh;
  }

  .vn-hero__top {
    padding-top: 52px;
  }

  .vn-names {
    font-size: 3.1rem;
  }

  .vn-figures {
    max-width: 330px;
    bottom: 16%;
  }

  .vn-dialog {
    left: 50%;
    right: auto;
    bottom: 26px;
    width: min(560px, calc(100% - 48px));
    transform: translateX(-50%);
    padding: 24px 22px 18px;
  }

  .vn-dialog__text {
    font-size: 14.5px;
  }

  .vn-sec {
    padding-top: 60px;
  }

  .vn-stills {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .vn-status {
    max-width: 720px;
    margin-inline: auto;
    padding: 26px 26px 22px;
  }

  .vn-status__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }

  .vn-status__cell--wide {
    grid-column: span 2;
    border-top: 0;
    padding-top: 0;
  }

  .vn-status__cell--wide strong {
    font-size: 2.1rem;
  }

  .vn-letter {
    padding: 84px 40px 70px;
  }

  .vn-line {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vn-sun,
  .vn-clouds,
  .vn-rays,
  .vn-figures,
  .vn-petals i,
  .vn-dialog,
  .vn-letter__stars i,
  .vn-dialog__next {
    animation: none;
  }
}








/* ============================ 专属元素：漫画速度线 ============================ */
.vn-lines {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 150%;
  height: 150%;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(
    from 0deg at 50% 50%,
    rgba(255, 236, 244, 0.07) 0deg 0.5deg,
    transparent 0.5deg 4.4deg
  );
  mask-image: radial-gradient(closest-side, transparent 34%, #000 62%);
  -webkit-mask-image: radial-gradient(closest-side, transparent 34%, #000 62%);
  opacity: 0.32;
  pointer-events: none;
  z-index: 0;
  animation: vn-lines 16s linear infinite;
}

@keyframes vn-lines {
  to { transform: translate(-50%, -50%) rotate(6deg); }
}

/* ============================ 视觉小说：角色卡 ============================ */
.vn-card {
  position: absolute;
  right: 12px;
  bottom: 132px;
  width: 34%;
  max-width: 168px;
  margin: 0;
  padding: 5px 5px 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 40px -22px rgba(10, 6, 18, 0.85), 0 0 0 1px rgba(255, 214, 230, 0.6);
  transform: rotate(2deg);
  overflow: hidden;
  z-index: 2;
}

.vn-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
}

.vn-card figcaption {
  padding: 5px 2px 6px;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-align: center;
  color: #4a3a44;
}


/* ============================ 立绘槽位 ============================ */
.vn-art,
.jr-pic {
  display: none;
}

/* 有图：日系立绘站在场景里，卡片让位 */
.has-art .vn-art {
  display: block;
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 86%;
  max-width: 420px;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
}

.has-art .vn-art img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(6, 3, 12, 0.55));
  animation: vn-art-in 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.has-art .vn-card {
  display: none;
}

@keyframes vn-art-in {
  from { opacity: 0; transform: translateY(14px) scale(0.99); }
  to { opacity: 1; transform: none; }
}

/* ============================ 天空元素：电线杆 / 竖排 ============================ */
.vn-poles {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22%;
  width: 100%;
  height: 46%;
  pointer-events: none;
  z-index: 1;
}

.vn-vtext {
  position: absolute;
  right: 9px;
  top: 26%;
  margin: 0;
  writing-mode: vertical-rl;
  font-size: 10px;
  letter-spacing: 0.34em;
  color: rgba(255, 232, 240, 0.5);
  z-index: 2;
}

/* ============================ 场景档 ============================ */
.vn-scenes {
  padding: 44px 18px 8px;
}

.vn-scenes__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

.vn-scenes__k {
  font-size: 8.5px;
  letter-spacing: 0.3em;
  color: rgba(255, 214, 228, 0.55);
}

.vn-scenes__t {
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: #f4e6ee;
  font-weight: 500;
}

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

.vn-sc {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 24px -16px rgba(6, 3, 12, 0.9);
}

.vn-sc figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 5px;
  align-items: baseline;
  padding: 14px 7px 6px;
  font-size: 8.5px;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(12, 8, 20, 0.78));
}

.vn-sc figcaption span {
  font-size: 7px;
  opacity: 0.6;
}

/* 01 教室 · 夕方 */
.vn-sc--class {
  background: linear-gradient(180deg, #f9d2a0 0%, #e79a6a 38%, #a85f58 66%, #4a2f3a 100%);
}

.vn-sc--class::before {
  content: "";
  position: absolute;
  inset: 8% 10% 34%;
  background:
    repeating-linear-gradient(90deg, transparent 0 46%, rgba(74, 47, 58, 0.85) 46% 50%),
    repeating-linear-gradient(180deg, transparent 0 44%, rgba(74, 47, 58, 0.85) 44% 50%);
  border: 2px solid rgba(74, 47, 58, 0.85);
  box-shadow: inset 0 0 30px rgba(255, 190, 130, 0.55);
}

.vn-sc--class::after {
  content: "";
  position: absolute;
  left: -20%;
  top: 40%;
  width: 140%;
  height: 26%;
  background: linear-gradient(180deg, rgba(255, 214, 160, 0.5), transparent);
  transform: rotate(-8deg);
  filter: blur(1px);
}

/* 02 駅 · 帰り道 */
.vn-sc--station {
  background: linear-gradient(180deg, #b7a7cf 0%, #d99aa5 42%, #6b5170 72%, #2a2036 100%);
}

.vn-sc--station::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 18%;
  height: 12%;
  background: linear-gradient(180deg, #3a2c48, #241a30);
  box-shadow: 0 6px 0 rgba(255, 226, 236, 0.12);
}

.vn-sc--station::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22%;
  height: 2px;
  background: rgba(255, 232, 240, 0.65);
  box-shadow: 0 10px 0 rgba(255, 232, 240, 0.18), 0 20px 0 rgba(255, 232, 240, 0.1);
}

/* 03 夜空 · 花火 */
.vn-sc--night {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.85) 0 1px, transparent 1.5px),
    radial-gradient(circle at 68% 36%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.5px),
    radial-gradient(circle at 46% 12%, rgba(255, 255, 255, 0.6) 0 1px, transparent 1.5px),
    linear-gradient(180deg, #0f0c26 0%, #241c4a 55%, #0a0714 100%);
}

.vn-sc--night::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 34%;
  width: 62%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(255, 214, 240, 0.95) 0 3%, transparent 4%),
    repeating-conic-gradient(from 0deg, rgba(255, 180, 220, 0.85) 0 1.6deg, transparent 1.6deg 15deg);
  border-radius: 50%;
  mask-image: radial-gradient(circle, #000 32%, transparent 68%);
  -webkit-mask-image: radial-gradient(circle, #000 32%, transparent 68%);
  opacity: 0.9;
}

/* 素材库背景（覆盖在渐变天空上，降低不透明度保留黄昏感） */
.vn-artbg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  filter: saturate(1.05) contrast(1.05);
  mix-blend-mode: soft-light;
  z-index: 1;
  pointer-events: none;
}

.vn-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 10, 30, 0.15) 0%, rgba(20, 10, 30, 0.55) 62%, rgba(8, 5, 14, 0.85) 100%);
  z-index: 2;
  pointer-events: none;
}


/* 04 雨 · 相合傘 */
.vn-sc--rain {
  background: linear-gradient(180deg, #2b3448 0%, #414f6b 46%, #6c6f88 74%, #23283a 100%);
}
.vn-sc--rain::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(102deg, rgba(255, 255, 255, .28) 0 1px, transparent 1px 9px);
  opacity: .5;
}
.vn-sc--rain::after {
  content: "";
  position: absolute;
  left: 26%;
  top: 34%;
  width: 48%;
  height: 30%;
  border-radius: 50% 50% 46% 46%;
  background: linear-gradient(180deg, #e7b6b0, #c07f83);
  box-shadow: -3px 10px 0 0 rgba(0, 0, 0, .25);
  transform: rotate(-6deg);
}

/* 05 喫茶店 · 窓際 */
.vn-sc--cafe {
  background: linear-gradient(180deg, #f3ddc0 0%, #e0bb95 42%, #8a5f45 74%, #3d2a22 100%);
}
.vn-sc--cafe::before {
  content: "";
  position: absolute;
  inset: 10% 12% 40%;
  border: 2px solid rgba(61, 42, 34, .75);
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 240, 210, .85), transparent 55%),
    repeating-linear-gradient(90deg, transparent 0 48%, rgba(61, 42, 34, .65) 48% 52%);
  box-shadow: inset 0 0 26px rgba(255, 220, 180, .5);
}
.vn-sc--cafe::after {
  content: "";
  position: absolute;
  left: 16%;
  bottom: 18%;
  width: 26%;
  height: 12%;
  border-radius: 3px 3px 40% 40%;
  background: #6b4536;
  box-shadow: 24px 0 0 -6px #8a5f45;
}
