/* 雨夜电影场景；所有样式仅作用于独立主页，不影响功能页。 */
.home-app .home-view-rainfall { background: #04090e; }
#rainfall-home {
  --rainfall-ink: #dae7ec;
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: var(--rainfall-ink);
  font-family: "Maple Mono CN", "Microsoft YaHei", sans-serif;
  isolation: isolate;
}
#rainfall-home *, #rainfall-home *::before, #rainfall-home *::after { box-sizing: border-box; }
.rainfall-scene, .rainfall-portrait, .rainfall-film, .rainfall-film-still, .rainfall-shade,
.rainfall-atmosphere, .rainfall-grain, .rainfall-portrait-rig, .rainfall-tears { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rainfall-scene { overflow: hidden; }
.rainfall-portrait, .rainfall-film, .rainfall-film-still { object-fit: cover; }
.rainfall-portrait-rig { will-change: transform, opacity; }
.rainfall-portrait-rig { transform-origin: 40.1% 40.8%; z-index: 1; }
.rainfall-shade, .rainfall-final-shade { z-index: 2; }
.rainfall-film, .rainfall-film-still { opacity: 0; }
.rainfall-bullet-time { position: absolute; inset: -12px; opacity: 0; pointer-events: none; background: #03090d; }
.rainfall-drift-film { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.rainfall-shade { background: linear-gradient(180deg, #02060955, transparent 28%, #02070b55 70%, #020509e6), radial-gradient(ellipse at 50% 42%, transparent 25%, #01050999); }
.rainfall-final-shade { position: absolute; inset: 0; background: linear-gradient(100deg, #061017ed, #07111855 65%, #02070b88); opacity: 0; pointer-events: none; }
.rainfall-atmosphere { z-index: 2; }
.rainfall-grain { z-index: 7; opacity: .08; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.55' d='M0 0h180v180H0z'/%3E%3C/svg%3E"); }
.rainfall-brand { position: absolute; z-index: 8; top: clamp(27px, 4.2vh, 45px); left: 4.4%; display: flex; align-items: center; gap: 16px; color: #c0d1d9; }
.rainfall-brand-mark { display: block; width: 16px; height: 24px; border: 1px solid #c3dce777; transform: skew(-18deg) rotate(12deg); background: linear-gradient(125deg, #bbdded66, transparent 60%); }
.rainfall-brand span:last-child { font-size: 14px; letter-spacing: .3em; }
.rainfall-heading { position: absolute; z-index: 4; top: 16%; left: 6.5%; opacity: 0; pointer-events: none; }
.rainfall-heading h1 { margin: 0; color: #e2edf0; font-size: clamp(42px, 4.3vw, 82px); font-weight: 400; line-height: 1.35; letter-spacing: .13em; text-shadow: 0 2px 24px #bedde025; }
.rainfall-heading p { margin: 13px 0 0 3px; color: #9aadb9; font-size: clamp(12px, .88vw, 16px); letter-spacing: .2em; line-height: 1.8; }
.rainfall-heading-line { display: block; width: 44px; height: 1px; margin-bottom: 19px; background: #afced588; }
.rainfall-fragments { position: absolute; inset: 0; z-index: 5; perspective: 1200px; }
.rainfall-fragment { position: absolute; display: block; opacity: 0; text-decoration: none; color: #e9f2f4; transform-style: preserve-3d; transform-origin: 50% 50%; will-change: transform, opacity; clip-path: var(--fragment-clip); outline: none; }
.rainfall-fragment-0 { left: 8%; top: 47%; width: 19%; height: 34%; }
.rainfall-fragment-1 { left: 33.5%; top: 32%; width: 20%; height: 37%; }
.rainfall-fragment-2 { left: 55%; top: 56%; width: 18.5%; height: 33%; }
.rainfall-fragment-3 { left: 77%; top: 33%; width: 17%; height: 31%; }
.rainfall-glass-surface, .rainfall-glass-edge, .rainfall-fragment-image, .rainfall-glass-tint, .rainfall-glass-reflection { position: absolute; inset: 0; width: 100%; height: 100%; }
.rainfall-glass-surface { clip-path: var(--fragment-clip); overflow: hidden; background: #c6e7f20a; }
.rainfall-fragment-image { object-fit: cover; filter: saturate(.2) contrast(1.12); opacity: .42; transition: opacity .5s ease, transform .65s ease, filter .5s ease; }
.rainfall-glass-tint { background: linear-gradient(175deg, #99c9d40c, #08172038 30%, #071016e0 75%, #14252bc7), linear-gradient(115deg, #729fbe35, transparent 44%, #c7e7ee12); }
.rainfall-glass-reflection { background: linear-gradient(116deg, transparent 10%, #e2faff06 32%, #e2faff42 32.3%, #c5ecff08 33%, transparent 50%, #e2faff09 64%, transparent 64.3%); transform: translateX(-9%); transition: transform .7s ease; }
.rainfall-glass-edge { overflow: visible; pointer-events: none; transition: filter .3s ease; }
.rainfall-fragment-copy { position: absolute; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; pointer-events: none; text-shadow: 0 2px 12px #000d; }
.rainfall-fragment-number { color: #bdd0d7; font-size: 10px; letter-spacing: .16em; margin-bottom: 2px; }
.rainfall-fragment h2 { margin: 0; font-size: clamp(23px, 1.9vw, 36px); letter-spacing: .06em; font-weight: 400; line-height: 1.4; color: #edf6f8; white-space: nowrap; }
.rainfall-fragment p { margin: 5px 0 0; font-size: clamp(11px, .78vw, 13px); color: #c5d5db; line-height: 1.6; overflow-wrap: anywhere; }
.rainfall-fragment-enter { display: flex; width: 100%; align-items: center; justify-content: space-between; max-width: 115px; margin-top: clamp(7px, 1vh, 12px); color: #dbe9ed; font-size: 10px; letter-spacing: .1em; }
.rainfall-fragment-enter span { font-size: 21px; line-height: 1; }
.rainfall-fragment:is(:hover, :focus-visible) .rainfall-fragment-image { opacity: .8; transform: scale(1.07); filter: saturate(.55) contrast(1.05); }
.rainfall-fragment:is(:hover, :focus-visible) .rainfall-glass-reflection { transform: translateX(13%); }
.rainfall-fragment:is(:hover, :focus-visible) .rainfall-glass-edge { filter: drop-shadow(0 0 3px #ddf9ff); }
.rainfall-fragment:focus-visible .rainfall-glass-edge polygon:first-of-type { stroke: #f0fcff; stroke-width: 1.2; }
.rainfall-fragment.is-unavailable .rainfall-fragment-image { opacity: .13; }
.rainfall-fragment.is-unavailable .rainfall-fragment-copy { opacity: .68; }
.rainfall-controls { position: absolute; z-index: 10; left: 4.4%; right: 3.5%; bottom: 27px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.rainfall-status { display: flex; align-items: center; gap: 12px; color: #b8cbd4; font-size: 11px; letter-spacing: .16em; }
.rainfall-status::before { content: ''; display: block; width: 5px; height: 5px; background: #a3c6d0; border-radius: 50%; box-shadow: 0 0 8px #a3c6d050; }
.rainfall-actions { display: flex; align-items: center; gap: 24px; }
#rainfall-home button { border: 0; border-bottom: 1px solid #b9d6e13d; padding: 9px 0; color: #c4d7df; background: transparent; cursor: pointer; font: inherit; font-size: 12px; line-height: 1.5; white-space: nowrap; }
#rainfall-home button:hover { color: #fff; border-bottom-color: #d7f1ff; }
#rainfall-home button:focus-visible { outline: 1px solid #c9e6f0; outline-offset: 5px; }
#rainfall-home button:active { transform: translateY(1px); }
#rainfall-home button[hidden] { display: none; }
.rainfall-progress { position: absolute; z-index: 9; bottom: 0; left: 0; width: 100%; height: 2px; background: #bedce317; transform: scaleX(0); transform-origin: left; }
.rainfall-progress::after { content: ''; position: absolute; right: 0; width: 60px; height: 100%; background: #b4d1db; }
@media (max-height: 700px) {
  .rainfall-heading { top: 14%; }
  .rainfall-heading h1 { font-size: 42px; }
  .rainfall-heading-line { margin-bottom: 9px; }
  .rainfall-heading p { margin-top: 3px; }
  .rainfall-fragment-enter { margin-top: 12px; }
  .rainfall-controls { bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .rainfall-fragment-image, .rainfall-glass-reflection, .rainfall-glass-edge { transition: none; }
}
