/* ═══════════════════════════════════════════════════════
   Home to YQJ — 星屿主页（Star Isle Landing）
   纯 CSS 手绘夜景：星空 + 月亮 + 漂浮小岛 + 四个入口
   ═══════════════════════════════════════════════════════ */

.island-view {
  flex-direction: column;
  overflow: hidden;
}

/* ── 舞台：整块夜空 ── */
.island-stage {
  position: relative;
  flex: 1;
  min-height: 480px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 118%, rgba(255, 190, 120, .16) 0%, transparent 55%),
    linear-gradient(180deg,
      #0a0e24 0%, #101532 38%,
      #1d1e44 62%, #342a55 82%,
      #4c3462 94%, #5d3f66 100%);
  --mx: 0; --my: 0;
  cursor: default;
  user-select: none;
}

/* ── CSS 星星（三层，随鼠标视差漂移） ── */
.star-layer {
  position: absolute;
  inset: -40px;
  background-repeat: repeat;
  pointer-events: none;
}
.star-layer.s1 {
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,.75) 50%, transparent 51%),
    radial-gradient(1px 1px at 64% 8%,  rgba(255,255,255,.6)  50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 84% 34%, rgba(255,255,255,.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 34% 58%, rgba(255,255,255,.5)  50%, transparent 51%),
    radial-gradient(1px 1px at 92% 72%, rgba(255,255,255,.65) 50%, transparent 51%);
  background-size: 260px 260px;
  opacity: .9;
  animation: twinkle 4.5s ease-in-out infinite;
  transform: translate3d(calc(var(--mx) * 4px),  calc(var(--my) * 3px),  0);
}
.star-layer.s2 {
  background-image:
    radial-gradient(1.6px 1.6px at 22% 42%, rgba(255,244,214,.95) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 72% 18%, rgba(214,230,255,.9)  50%, transparent 51%),
    radial-gradient(1.8px 1.8px at 44% 76%, rgba(255,255,255,.85) 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 88% 56%, rgba(255,236,200,.8)  50%, transparent 51%);
  background-size: 380px 380px;
  opacity: .95;
  animation: twinkle 6.5s ease-in-out 1.2s infinite;
  transform: translate3d(calc(var(--mx) * 9px),  calc(var(--my) * 6px),  0);
}
.star-layer.s3 {
  background-image:
    radial-gradient(2.4px 2.4px at 18% 66%,  #fff 50%, transparent 51%),
    radial-gradient(2px 2px at   54% 30%, #ffe9b8 50%, transparent 51%),
    radial-gradient(2.6px 2.6px at 78% 82%, #fff 50%, transparent 51%),
    radial-gradient(2.2px 2.2px at 90% 12%, #ffd9e0 50%, transparent 51%);
  background-size: 560px 560px;
  animation: twinkle 8s ease-in-out 2.4s infinite;
  transform: translate3d(calc(var(--mx) * 16px), calc(var(--my) * 10px), 0);
}
@keyframes twinkle {
  0%, 100% { opacity: .55; }
  50%      { opacity: 1; }
}

/* ── 视差层容器 ── */
.layer { position: absolute; inset: 0; pointer-events: none; }
.layer-far  { transform: translate3d(calc(var(--mx) * 7px),  calc(var(--my) * 5px),  0); }
.layer-mid  { transform: translate3d(calc(var(--mx) * 18px), calc(var(--my) * 12px), 0); }
.layer-near { transform: translate3d(calc(var(--mx) * 34px), calc(var(--my) * 22px), 0); }

/* ── 月亮 ── */
.moon {
  position: absolute;
  top: 9%;
  right: 11%;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background:
    radial-gradient(14px 14px at 30% 32%, rgba(190,170,120,.5) 40%, transparent 41%),
    radial-gradient(9px 9px at 62% 55%, rgba(190,170,120,.4) 40%, transparent 41%),
    radial-gradient(6px 6px at 44% 70%, rgba(190,170,120,.35) 40%, transparent 41%),
    radial-gradient(circle at 34% 30%, #fdf7dd 0%, #f3e6b5 55%, #dfc98e 100%);
  box-shadow:
    0 0 34px 8px rgba(250, 236, 180, .38),
    0 0 110px 34px rgba(250, 236, 180, .14);
  cursor: pointer;
  pointer-events: auto;
  animation: moonFloat 9s ease-in-out infinite;
  transition: filter .3s;
}
.moon:hover { filter: brightness(1.14); }
@keyframes moonFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

/* ── 远处浮岛剪影 ── */
.far-isle {
  position: absolute;
  background: linear-gradient(180deg, #232a52 0%, #1a1f42 100%);
  opacity: .8;
  border-radius: 50% 50% 40% 40% / 62% 62% 38% 38%;
}
.far-isle::after {
  content: '';
  position: absolute;
  left: 18%;
  top: 42%;
  width: 64%;
  height: 78%;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 84% 46%, 70% 30%, 54% 68%, 40% 44%, 24% 76%, 10% 52%, 0 66%);
}
.far-isle.fi-1 { width: 88px;  height: 30px; left: 8%;  top: 26%; animation: isleDrift 13s ease-in-out infinite; }
.far-isle.fi-2 { width: 130px; height: 42px; left: 30%; top: 15%; animation: isleDrift 17s ease-in-out 2s infinite; }
@keyframes isleDrift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-9px) rotate(.6deg); }
}

/* ── 云 ── */
.cloud {
  position: absolute;
  height: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(214, 208, 255, .34), rgba(214, 208, 255, .1));
  filter: blur(1.5px);
}
.cloud::before, .cloud::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: inherit;
}
.cloud::before { width: 46%; height: 210%; left: 14%; top: -96%; }
.cloud::after  { width: 34%; height: 150%; right: 16%; top: -52%; }
.cloud.c1 { width: 150px; left: -160px; top: 20%; animation: cloudDrift 75s linear infinite; }
.cloud.c2 { width: 100px; left: -110px; top: 42%; animation: cloudDrift 105s linear 18s infinite; opacity: .7; }
@keyframes cloudDrift {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(100vw + 220px)); }
}

/* ═══════════ 主岛 ═══════════ */
.main-isle {
  position: absolute;
  left: 50%;
  bottom: 7%;
  width: 640px;
  height: 430px;
  transform: translateX(-50%) scale(var(--scene-scale, 1));
  transform-origin: 50% 100%;
}
/* 岛下光晕（悬浮感） */
.isle-glow {
  position: absolute;
  left: 50%;
  bottom: -6%;
  width: 88%;
  height: 130px;
  transform: translateX(-50%);
  background: radial-gradient(50% 62% at 50% 50%, rgba(255, 196, 130, .30), rgba(180, 140, 220, .12) 55%, transparent 75%);
  filter: blur(6px);
  animation: glowPulse 6s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: .8; }
  50%      { opacity: 1; }
}
/* 岩石底 */
.isle-rock {
  position: absolute;
  left: 50%;
  top: 108px;
  width: 470px;
  height: 300px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #57465e 0%, #463a52 40%, #352c44 100%);
  clip-path: polygon(2% 0, 98% 0, 95% 22%, 88% 34%, 91% 52%, 82% 62%, 84% 84%, 74% 72%, 68% 95%, 58% 76%, 52% 100%, 42% 80%, 34% 94%, 26% 70%, 18% 88%, 11% 60%, 5% 66%, 0 42%);
}
/* 草坪 */
.isle-top {
  position: absolute;
  left: 50%;
  top: 26px;
  width: 600px;
  height: 168px;
  transform: translateX(-50%);
  background:
    radial-gradient(40px 18px at 18% 88%, rgba(70, 110, 80, .55), transparent 70%),
    radial-gradient(52px 20px at 78% 86%, rgba(70, 110, 80, .5), transparent 70%),
    linear-gradient(180deg, #7fae7a 0%, #6a9a6c 46%, #4f7c5c 100%);
  border-radius: 50% 50% 46% 46% / 58% 58% 42% 42%;
  box-shadow: inset 0 -14px 26px rgba(30, 56, 44, .45);
}
/* 岩壁上垂下的藤 */
.isle-vine {
  position: absolute;
  width: 8px;
  background: linear-gradient(180deg, #4f7c5c, #3a5a48);
  border-radius: 0 0 8px 8px;
}
.isle-vine::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 18px;
  height: 18px;
  transform: translateX(-50%);
  background: radial-gradient(circle at 35% 30%, #7fae7a, #4f7c5c);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}
.isle-vine.v1 { left: 196px; top: 285px; height: 58px; }
.isle-vine.v2 { left: 452px; top: 300px; height: 40px; }

/* ═══════════ 热点通用 ═══════════ */
.spot {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  filter: drop-shadow(0 6px 10px rgba(10, 12, 30, .45));
  transition: transform .25s ease, filter .25s ease;
}
.spot:hover { filter: drop-shadow(0 10px 16px rgba(10, 12, 30, .5)) brightness(1.12); }
.spot-label {
  position: absolute;
  left: 50%;
  bottom: -34px;
  transform: translateX(-50%) translateY(6px);
  white-space: nowrap;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: #f6ecd8;
  background: rgba(16, 18, 44, .62);
  border: 1px solid rgba(246, 236, 216, .22);
  border-radius: 999px;
  padding: 5px 13px;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
  backdrop-filter: blur(4px);
}
.spot:hover .spot-label { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── 小屋（→ 主页·网址屋） ── */
.spot-house { left: 66px; top: -14px; width: 150px; height: 150px; }
.house { position: absolute; left: 30px; bottom: 22px; width: 92px; height: 108px; }
.house-body {
  position: absolute;
  bottom: 0;
  left: 8px;
  width: 74px;
  height: 52px;
  border-radius: 4px;
  background: linear-gradient(180deg, #f3e2c0 0%, #ddbd90 100%);
  box-shadow: inset 0 -8px 12px rgba(140, 100, 60, .25);
}
.house-roof {
  position: absolute;
  bottom: 50px;
  left: 0;
  width: 90px;
  height: 34px;
  background: linear-gradient(180deg, #b0574b 0%, #8e4038 100%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.house .window {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 2.5px;
  background: linear-gradient(180deg, #ffe6a3, #ffc45e);
  box-shadow: 0 0 12px 3px rgba(255, 200, 100, .55);
  border: 1.6px solid #8a5a44;
  animation: windowFlicker 5s ease-in-out infinite;
}
.house .window.w1 { left: 13px;  bottom: 22px; }
.house .window.w2 { right: 13px; bottom: 22px; animation-delay: 1.7s; }
@keyframes windowFlicker {
  0%, 100% { box-shadow: 0 0 12px 3px rgba(255, 200, 100, .55); }
  50%      { box-shadow: 0 0 18px 6px rgba(255, 210, 110, .75); }
}
.house .door {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 20px;
  height: 28px;
  border-radius: 10px 10px 2px 2px;
  background: linear-gradient(180deg, #8a5a44, #6e4634);
}
.house .door::after {
  content: '';
  position: absolute;
  right: 3.5px;
  top: 12px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ffd98a;
}
.chimney {
  position: absolute;
  right: 10px;
  bottom: 76px;
  width: 13px;
  height: 20px;
  border-radius: 2px;
  background: linear-gradient(180deg, #a06a52, #84543e);
}
.chimney .smoke {
  position: absolute;
  left: 1px;
  bottom: 18px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(232, 228, 245, .5);
  animation: smokeRise 4s ease-out infinite;
}
.chimney .smoke.s2 { animation-delay: 1.3s; }
.chimney .smoke.s3 { animation-delay: 2.6s; }
@keyframes smokeRise {
  0%   { transform: translateY(0) scale(.7); opacity: 0; }
  18%  { opacity: .8; }
  100% { transform: translateY(-52px) translateX(9px) scale(1.9); opacity: 0; }
}

/* ── 小狗（彩蛋）：金毛，坐姿，摇尾巴 ── */
.dog {
  position: absolute;
  left: 122px;
  bottom: 13px;
  width: 42px;
  height: 34px;
  cursor: pointer;
  transition: transform .2s;
}
.dog:hover { transform: translateY(-3px); }
.dog.jump { animation: dogJump .55s ease; }
@keyframes dogJump {
  0%   { transform: translateY(0); }
  40%  { transform: translateY(-14px) rotate(-6deg); }
  100% { transform: translateY(0); }
}
.dog-body {
  position: absolute;
  bottom: 0;
  left: 2px;
  width: 27px;
  height: 19px;
  border-radius: 16px 14px 10px 12px;  /* 坐姿圆臀 */
  background: linear-gradient(180deg, #cf9f6b 0%, #b07f4e 100%);
}
.dog-head {
  position: absolute;
  right: 1px;
  top: 1px;
  width: 19px;
  height: 17px;
  border-radius: 52% 52% 46% 46%;
  background: #cf9f6b;
}
.dog-snout {
  position: absolute;
  right: -2px;
  top: 7px;
  width: 12px;
  height: 9px;
  border-radius: 2px 9px 9px 2px;
  background: #ecd2a6;
}
.dog-snout::after {  /* 鼻子 */
  content: '';
  position: absolute;
  right: 1.5px;
  top: 1px;
  width: 4.5px;
  height: 3.5px;
  border-radius: 50%;
  background: #3c2a1c;
}
.dog-snout::before {  /* 小舌头 */
  content: '';
  position: absolute;
  right: 4px;
  bottom: -3.5px;
  width: 4px;
  height: 5px;
  border-radius: 0 0 4px 4px;
  background: #e08a7a;
}
.dog-eye {
  position: absolute;
  right: 9px;
  top: 6px;
  width: 3px;
  height: 3.5px;
  border-radius: 50%;
  background: #33241a;
}
.dog-ear {  /* 耷拉耳 */
  position: absolute;
  width: 7px;
  height: 12px;
  border-radius: 5px 5px 7px 7px;
  background: #8a6244;
  transform-origin: top center;
}
.dog-ear.e1 { right: 3px; top: 2px; transform: rotate(16deg); }
.dog-ear.e2 { right: 11px; top: 0; transform: rotate(3deg); opacity: .85; }
.dog-tail {  /* 翘尾快摇 */
  position: absolute;
  left: -7px;
  bottom: 8px;
  width: 13px;
  height: 10px;
  border: 3.2px solid #b07f4e;
  border-left: none;
  border-bottom: none;
  border-radius: 0 12px 0 0;
  transform-origin: right bottom;
  animation: dogTail 1s ease-in-out infinite;
}
@keyframes dogTail {
  0%, 100% { transform: rotate(-10deg); }
  50%      { transform: rotate(16deg); }
}

/* ── 树下大书（→ 日记） ── */
.spot-book { right: 56px; top: -10px; width: 190px; height: 168px; }
.tree { position: absolute; right: 6px; top: 0; width: 100px; height: 128px; }
.tree .trunk {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 11px;
  height: 40px;
  border-radius: 4px;
  background: linear-gradient(180deg, #8a6244, #6e4c34);
}
.tree .canopy {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 26%, #6db383 0%, #4d8a62 52%, #3a6b4e 100%);
  box-shadow: 0 0 20px rgba(120, 200, 150, .16), inset -6px -8px 14px rgba(20, 46, 34, .5);
  transform-origin: 50% 100%;
  animation: canopySway 6.5s ease-in-out infinite;
}
.tree .canopy.l1 { width: 66px; height: 60px; left: -2px;  top: 14px; }
.tree .canopy.l2 { width: 72px; height: 66px; right: -4px; top: 4px;  animation-delay: .8s; }
.tree .canopy.l3 { width: 60px; height: 54px; left: 22px; top: -10px; animation-delay: 1.6s; }
@keyframes canopySway {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(1.6deg); }
}
.bigbook {
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 96px;
  height: 44px;
  filter: drop-shadow(0 0 14px rgba(255, 222, 150, .35));
}
.bigbook .page {
  position: absolute;
  bottom: 0;
  width: 46px;
  height: 34px;
  background: linear-gradient(180deg, #fbf3df, #eedebe);
  border-radius: 3px 6px 5px 3px;
}
.bigbook .page::after {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  height: 14px;
  background:
    linear-gradient(#c9b690 0 0) 0 0 / 100% 2px,
    linear-gradient(#c9b690 0 0) 0 6px / 100% 2px,
    linear-gradient(#c9b690 0 0) 0 12px / 72% 2px;
  background-repeat: no-repeat;
}
.bigbook .page.p-l { left: 1px;  transform-origin: right center; transform: skewY(7deg) rotate(-1.5deg); animation: pageBreathL 4.5s ease-in-out infinite; }
.bigbook .page.p-r { right: 1px; transform-origin: left center;  transform: skewY(-7deg) rotate(1.5deg); animation: pageBreathR 4.5s ease-in-out infinite; }
.bigbook .page.p-r::after { transform: scaleX(-1); }
@keyframes pageBreathL {
  0%, 100% { transform: skewY(7deg) rotate(-1.5deg); }
  50%      { transform: skewY(7deg) rotate(-3.5deg); }
}
@keyframes pageBreathR {
  0%, 100% { transform: skewY(-7deg) rotate(1.5deg); }
  50%      { transform: skewY(-7deg) rotate(3.5deg); }
}

/* ── 星光信箱（→ 留言） ── */
.spot-mailbox { left: 238px; top: 76px; width: 66px; height: 82px; }
.mailbox { position: absolute; inset: 0; }
.mb-post {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 7px;
  height: 26px;
  border-radius: 3px;
  background: linear-gradient(180deg, #8a6244, #6e4c34);
}
.mb-box {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: 44px;
  height: 28px;
  border-radius: 6px 10px 5px 5px;
  background: linear-gradient(180deg, #d4695c 0%, #b04c42 100%);
  box-shadow: inset 0 -6px 8px rgba(80, 26, 20, .35);
}
.mb-box::after {  /* 投信口 */
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  top: 7px;
  height: 3px;
  border-radius: 2px;
  background: rgba(50, 16, 12, .6);
}
.mb-flag {
  position: absolute;
  right: 3px;
  bottom: 48px;
  width: 4px;
  height: 14px;
  border-radius: 2px;
  background: #e9b64d;
  transform-origin: bottom center;
  animation: flagWave 3.6s ease-in-out infinite;
}
@keyframes flagWave {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(24deg); }
}
.mb-spark {
  position: absolute;
  right: 10px;
  top: 4px;
  font-size: 13px;
  color: #ffe08a;
  text-shadow: 0 0 8px rgba(255, 220, 130, .9);
  animation: sparkFly 6s ease-in infinite;
  pointer-events: none;
}
@keyframes sparkFly {
  0%, 55%  { transform: translateY(0) scale(.4); opacity: 0; }
  62%      { opacity: 1; }
  100%     { transform: translateY(-40px) translateX(6px) scale(1); opacity: 0; }
}

/* ── 灯下小灯（→ 关于我） ── */
.spot-lamp { left: 322px; top: 58px; width: 62px; height: 122px; }
.lamp { position: absolute; inset: 0; }
.lamp .pole {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 6px;
  height: 88px;
  border-radius: 3px;
  background: linear-gradient(180deg, #5a4a62, #43384f);
}
.lamp .pole::before {  /* 底座 */
  content: '';
  position: absolute;
  left: 50%;
  bottom: -3px;
  transform: translateX(-50%);
  width: 22px;
  height: 7px;
  border-radius: 4px;
  background: #3c3248;
}
.lamp .lamp-head {
  position: absolute;
  left: 50%;
  bottom: 86px;
  transform: translateX(-50%);
  width: 24px;
  height: 17px;
  border-radius: 9px 9px 4px 4px;
  background: radial-gradient(circle at 50% 30%, #fff3c4 0%, #ffc95e 60%, #e09a3a 100%);
  box-shadow: 0 0 16px 5px rgba(255, 205, 110, .55);
  animation: lanternGlow 3.4s ease-in-out infinite;
}
.lamp .lamp-head::before {  /* 灯帽 */
  content: '';
  position: absolute;
  left: 50%;
  top: -7px;
  transform: translateX(-50%);
  width: 28px;
  height: 8px;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, #6a5a72, #4c4058);
}
.lamp .lamp-light {
  position: absolute;
  left: 50%;
  bottom: 60px;
  transform: translateX(-50%);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 130, .28) 0%, rgba(255, 214, 130, .08) 45%, transparent 70%);
  pointer-events: none;
}

/* ── 照片绳（→ 相册）：两根木杆间挂着三张小照片 ── */
.spot-photos { right: -30px; bottom: 6px; width: 200px; height: 150px; }
.photo-line {
  position: absolute;
  inset: 0;
}
.photo-line::before {  /* 绳子 */
  content: '';
  position: absolute;
  left: 4px;
  right: 4px;
  top: 26px;
  height: 2.5px;
  background: linear-gradient(180deg, #8a6244, #6e4c34);
  border-radius: 2px;
  transform: rotate(-3deg);
}
.photo-line::after {  /* 左木杆 */
  content: '';
  position: absolute;
  left: 2px;
  top: 6px;
  width: 6px;
  height: 74px;
  border-radius: 3px;
  background: linear-gradient(180deg, #8a6244, #5a3f2c);
}
.pl-photo {
  position: absolute;
  top: 18px;
  width: 52px;
  padding: 4px 4px 14px;
  background: linear-gradient(180deg, #fffef9, #f7efdd);
  border-radius: 2px;
  box-shadow: 0 5px 12px -4px rgba(10, 12, 30, .55);
  transform-origin: top center;
  animation: photoSway 5.5s ease-in-out infinite;
}
.pl-photo::before {  /* 木夹 */
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%) rotate(90deg);
  width: 12px;
  height: 6px;
  border-radius: 3px;
  background: #c9a06a;
}
.pl-photo i {  /* 照片画面 */
  display: block;
  width: 100%;
  height: 42px;
  border-radius: 1.5px;
}
.pl-photo.p1 { left: 18px;  animation-delay: 0s; }
.pl-photo.p2 { left: 78px;  top: 24px; animation-delay: 1.2s; }
.pl-photo.p3 { left: 138px; top: 21px; animation-delay: 2.4s; }
.pl-photo.p1 i { background: linear-gradient(160deg, #f2a48b, #c96a5a); }
.pl-photo.p2 i { background: linear-gradient(160deg, #8fb8d8, #5b82a8); }
.pl-photo.p3 i { background: linear-gradient(160deg, #a8c8a0, #6a9a6c); }
@keyframes photoSway {
  0%, 100% { transform: rotate(1.4deg); }
  50%      { transform: rotate(-1.8deg); }
}
/* 灯笼光效（岛上路灯引用） */
@keyframes lanternGlow {
  0%, 100% { box-shadow: 0 0 12px 4px rgba(255, 190, 100, .5); }
  50%      { box-shadow: 0 0 20px 7px rgba(255, 205, 115, .72); }
}

/* ── 纸飞机 ── */
.paper-plane {
  position: absolute;
  left: 12%;
  top: 30%;
  width: 28px;
  height: 12px;
  background: linear-gradient(135deg, #fdf7e8 50%, #d9ccb0 50%);
  clip-path: polygon(0 78%, 100% 0, 62% 100%, 0 78%, 38% 62%);
  filter: drop-shadow(0 2px 5px rgba(10, 12, 30, .4));
  animation: planeOrbit 30s linear infinite;
  opacity: .92;
}
@keyframes planeOrbit {
  0%   { left: 6%;  top: 34%; transform: rotate(12deg) scale(.9); }
  22%  { left: 34%; top: 14%; transform: rotate(-4deg) scale(1); }
  46%  { left: 68%; top: 30%; transform: rotate(-14deg) scale(1.05); }
  62%  { left: 78%; top: 52%; transform: rotate(160deg) scale(.95); }
  82%  { left: 38%; top: 58%; transform: rotate(188deg) scale(.85); }
  100% { left: 6%;  top: 34%; transform: rotate(348deg) scale(.9); }
}

/* ── 萤火虫 ── */
.firefly {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffefad 0%, rgba(255, 220, 120, .65) 55%, transparent 75%);
  animation: fireflyDrift 11s ease-in-out infinite;
}
.firefly.f1 { left: 18%; top: 62%; animation-delay: 0s; }
.firefly.f2 { left: 30%; top: 74%; animation-delay: 1.6s; }
.firefly.f3 { left: 44%; top: 66%; animation-delay: 3.1s; }
.firefly.f4 { left: 58%; top: 76%; animation-delay: 4.4s; }
.firefly.f5 { left: 70%; top: 64%; animation-delay: 5.7s; }
.firefly.f6 { left: 82%; top: 72%; animation-delay: 2.3s; }
.firefly.f7 { left: 10%; top: 80%; animation-delay: 6.9s; }
.firefly.f8 { left: 88%; top: 56%; animation-delay: 8.2s; }
@keyframes fireflyDrift {
  0%, 100% { transform: translate(0, 0) scale(1);     opacity: .25; }
  25%      { transform: translate(14px, -20px) scale(1.15); opacity: 1; }
  50%      { transform: translate(-8px, -34px) scale(.95); opacity: .4; }
  75%      { transform: translate(-18px, -10px) scale(1.1); opacity: .9; }
}

/* ── 流星 ── */
.meteor-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.meteor {
  position: absolute;
  width: 130px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,248,220,.9));
  transform: rotate(-32deg);
  animation: meteorStreak 1.15s ease-out forwards;
}
@keyframes meteorStreak {
  0%   { transform: rotate(-32deg) translateX(0);     opacity: 0; }
  12%  { opacity: 1; }
  100% { transform: rotate(-32deg) translateX(-300px); opacity: 0; }
}

/* ── 留言星星：每条留言在夜空点亮 ── */
.msg-star-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.msg-star {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #ffe9a8 45%, rgba(255, 220, 130, 0) 78%);
  box-shadow: 0 0 9px 2.5px rgba(255, 230, 160, .6);
  cursor: pointer;
  pointer-events: auto;
  animation: starTwinkle 3.2s ease-in-out infinite;
  transition: transform .2s, box-shadow .2s;
}
.msg-star:hover {
  transform: scale(1.9);
  box-shadow: 0 0 15px 6px rgba(255, 235, 170, .95);
  animation-play-state: paused;
}
@keyframes starTwinkle {
  0%, 100% { opacity: .55; }
  50%      { opacity: 1; }
}
.msg-star::after {  /* 悬停气泡：昵称 */
  content: '✦ ' attr(data-name);
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: .05em;
  color: #f6ecd8;
  background: rgba(16, 18, 44, .72);
  border: 1px solid rgba(246, 236, 216, .25);
  border-radius: 999px;
  padding: 3px 10px;
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}
.msg-star:hover::after { opacity: 1; }

/* ── 主页"最新文章"胶囊 ── */
.island-latest {
  display: inline-block;
  margin-top: 14px;
  max-width: 76vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: auto;
  font-size: 12.5px;
  letter-spacing: .04em;
  font-family: inherit;
  color: rgba(246, 236, 216, .92);
  background: rgba(16, 18, 44, .55);
  border: 1px solid rgba(246, 236, 216, .22);
  border-radius: 999px;
  padding: 6px 15px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color .2s, background .2s, transform .2s;
}
.island-latest:hover {
  border-color: rgba(255, 220, 150, .6);
  background: rgba(30, 32, 64, .78);
  transform: translateY(-1px);
}

/* ── 留言星星弹窗 ── */
.star-modal {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: none;
}
.star-modal.open { display: block; }
.star-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 26, .52);
  backdrop-filter: blur(3px);
}
.star-modal-card {
  position: relative;
  width: min(430px, calc(100vw - 40px));
  margin: 15vh auto 0;
  padding: 26px 26px 20px;
  border-radius: 18px;
  color: #f6ecd8;
  background: linear-gradient(165deg, rgba(28, 30, 62, .97) 0%, rgba(42, 37, 71, .97) 100%);
  border: 1px solid rgba(246, 236, 216, .22);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .65);
  animation: starModalIn .3s ease;
}
@keyframes starModalIn {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.star-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: none;
  color: rgba(246, 236, 216, .55);
  font-size: 15px;
  cursor: pointer;
}
.star-modal-close:hover { color: #f6ecd8; }
.sm-emoji {
  font-size: 34px;
  line-height: 1;
  filter: drop-shadow(0 0 12px rgba(255, 230, 160, .5));
  margin-bottom: 10px;
}
.sm-name {
  font-size: 12px;
  letter-spacing: .1em;
  color: rgba(246, 236, 216, .6);
  font-family: 'Space Mono', monospace;
  margin-bottom: 10px;
}
.sm-msg {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(246, 236, 216, .95);
  word-break: break-word;
}
.star-modal-goto {
  width: 100%;
  border: 1px solid rgba(246, 236, 216, .3);
  background: rgba(255, 255, 255, .07);
  color: #f6ecd8;
  border-radius: 12px;
  padding: 11px;
  font-size: 13.5px;
  letter-spacing: .08em;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s, border-color .2s;
}
.star-modal-goto:hover {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 220, 150, .6);
}

/* ═══════════ HUD：问候 + 时钟 ═══════════ */.island-hud {
  position: absolute;
  left: clamp(18px, 4.5vw, 58px);
  top: clamp(18px, 5vh, 52px);
  color: #f6ecd8;
  pointer-events: none;
  text-shadow: 0 2px 18px rgba(10, 12, 30, .7);
}
.island-greeting {
  margin: 0;
  font-family: 'Playfair Display', 'Noto Sans SC', serif;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: .02em;
}
.island-care {
  margin: 10px 0 0;
  font-size: clamp(13px, 1.4vw, 15.5px);
  font-weight: 300;
  letter-spacing: .05em;
  color: rgba(246, 236, 216, .82);
}
.island-clock {
  margin-top: 16px;
  font-family: 'Space Mono', monospace;
  font-size: clamp(15px, 1.6vw, 18px);
  letter-spacing: .08em;
  color: rgba(246, 236, 216, .9);
}
.island-clock .clock-date {
  display: block;
  margin-top: 4px;
  font-size: .78em;
  color: rgba(246, 236, 216, .62);
}

/* ── 操作提示 ── */
.island-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  font-size: 12.5px;
  letter-spacing: .12em;
  color: rgba(246, 236, 216, .55);
  pointer-events: none;
  white-space: nowrap;
}

/* ═══════════ 底部入口卡片 ═══════════ */
.island-dock {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 14px;
  padding: 18px clamp(16px, 4vw, 48px) 22px;
  background: linear-gradient(180deg, rgba(16, 18, 44, 0) 0%, rgba(13, 15, 36, .92) 34%);
}
.isle-card {
  --card-hue: #e07b6c;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 18px 14px;
  border-radius: 16px;
  border: 1px solid rgba(246, 236, 216, .16);
  background: rgba(22, 24, 52, .6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #f6ecd8;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s, box-shadow .25s;
}
.isle-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 130% at 20% 0%, color-mix(in srgb, var(--card-hue) 30%, transparent), transparent 70%);
  opacity: .5;
  transition: opacity .25s;
}
.isle-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--card-hue) 65%, transparent);
  box-shadow: 0 12px 30px -8px color-mix(in srgb, var(--card-hue) 45%, transparent);
}
.isle-card:hover::before { opacity: 1; }
.ic-icon { font-size: 22px; position: relative; }
.ic-title { font-size: 15.5px; font-weight: 700; letter-spacing: .04em; position: relative; }
.ic-desc  { font-size: 12px; font-weight: 300; color: rgba(246, 236, 216, .72); position: relative; }
.ic-count {
  position: relative;
  margin-top: 6px;
  font-size: 11.5px;
  font-family: 'Space Mono', monospace;
  color: color-mix(in srgb, var(--card-hue) 80%, #f6ecd8);
  background: rgba(10, 12, 30, .5);
  border-radius: 999px;
  padding: 2.5px 10px;
}

/* ═══════════ 响应式 ═══════════ */
@media (max-width: 1080px) {
  .main-isle { --scene-scale: .86; }
}
/* 矮窗口：整岛缩小下移，避免顶部被导航栏遮住 */
@media (max-height: 860px) {
  .main-isle { --scene-scale: .82; }
}
@media (max-height: 760px) {
  .main-isle { --scene-scale: .7; }
}
@media (max-height: 640px) {
  .main-isle { --scene-scale: .58; }
}
@media (max-width: 860px) {
  .main-isle { --scene-scale: .7;  bottom: 4%; }
  .island-dock { grid-template-columns: repeat(2, 1fr); }
  .island-hud { top: 14px; }
}
@media (max-width: 560px) {
  .main-isle { --scene-scale: .56; bottom: 2%; }
  .moon { width: 78px; height: 78px; right: 6%; top: 6%; }
  .island-hint { display: none; }
  .island-stage { min-height: 430px; }
}

/* ── 减少动态 ── */
@media (prefers-reduced-motion: reduce) {
  .island-stage *, .isle-card { animation: none !important; transition: none !important; }
}

/* ── 浅色主题下 dock 仍保持夜色玻璃，与场景统一 ── */
[data-theme="light"] .island-dock {
  background: linear-gradient(180deg, rgba(16, 18, 44, 0) 0%, rgba(22, 24, 52, .95) 34%);
}
