/* ============================================================
   《登陆星知岛》首页样式（单屏，无滚动叙事）
   仅由 islandLanding 板块（首页）引入，类名统一 il- 前缀，
   不与 style.css 冲突。结构：.il-scroll(100vh) > .il-stage(sticky)
   素材替换点：SVG 为代码兜底图形，可换成
   public/images/concept2/ 文生图素材（见 docs/concept2-art-assets.md）
   ============================================================ */

/* ---------- 本页布局覆盖（全幅无 padding，导航悬浮于叙事之上） ---------- */
main { max-width: none; padding: 0; }
.site-header { position: sticky; top: 0; z-index: 100; }

.il {
  --deep-1: #040212;
  --deep-2: #0a0f2e;
  --deep-3: #1b1450;
  --violet: #7b5cff;
  --cyan: #5ff2ff;
  --warm: #ffd27b;
  --ink: #e8ecff;
  --ink-dim: rgba(232, 236, 255, .62);
}

/* ---------- 首屏品牌主张与行动入口（左上安全区） ---------- */
.il-hero-copy {
  position: absolute; z-index: 6;
  left: clamp(1rem, 6vw, 5rem); top: clamp(4.5rem, 13vh, 8.5rem);
  max-width: min(430px, 78vw);
}
.il-hero-copy h1 {
  margin: 0 0 10px; color: #fff;
  font-size: clamp(28px, 3.2vw, 40px); line-height: 1.25;
  text-shadow: 0 2px 24px rgba(4, 2, 18, .8);
}
.il-hero-copy .il-sub {
  margin: 0; font-size: 15px; line-height: 1.8; color: var(--ink-dim);
  text-shadow: 0 1px 12px rgba(4, 2, 18, .8);
}
.il-hero-copy .il-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0 0; }
.il-hero-copy .il-ctas .btn { margin-top: 0; }

/* ---------- 交互提示（首次进入短暂显示后自动淡出） ---------- */
.il-hint {
  position: absolute; left: 50%; bottom: 24vh; transform: translateX(-50%);
  z-index: 5; padding: 6px 16px; border-radius: 999px; white-space: nowrap;
  background: rgba(8, 8, 26, .66); border: 1px solid rgba(95, 242, 255, .45);
  color: var(--ink); font-size: 12.5px; letter-spacing: .06em;
  backdrop-filter: blur(3px); pointer-events: none;
  animation: il-hint-fade 6s ease forwards;
}
@keyframes il-hint-fade {
  0%, 55% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

/* 单屏画布（无滚动行程，sticky 保留以兼容结构） */
.il-scroll { height: 100vh; position: relative; }
.il-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.il-layer { position: absolute; inset: 0; will-change: transform, opacity; }

/* ---------- L0 深空 ---------- */
.il-space {
  background: linear-gradient(180deg, #030110 0%, var(--deep-2) 52%, var(--deep-3) 100%);
  z-index: 1; pointer-events: none;
}
.il-stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.il-nebula { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.il-nebula.n1 { width: 60vmax; height: 40vmax; left: -10vmax; top: -8vmax;
  background: radial-gradient(ellipse at center, rgba(123, 92, 255, .28), transparent 70%); }
.il-nebula.n2 { width: 55vmax; height: 38vmax; right: -12vmax; top: 22vmax;
  background: radial-gradient(ellipse at center, rgba(64, 120, 255, .22), transparent 70%); }

/* ---------- 第 1 屏：漂浮岛 ---------- */
.il-island-layer { z-index: 4; display: flex; align-items: center; justify-content: center;
  pointer-events: none; }
.il-island-wrap {
  position: relative; width: min(94vw, 960px); aspect-ratio: 900 / 560;
  will-change: transform, opacity;
}
.il-island-float { position: absolute; inset: 0; animation: il-floaty 7s ease-in-out infinite; }
@keyframes il-floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.il-island-float > svg { display: block; width: 100%; height: auto; }

/* 风车叶片旋转 */
.il-wm-blades { transform-box: fill-box; transform-origin: center; animation: il-wm-spin 9s linear infinite; }
@keyframes il-wm-spin { to { transform: rotate(360deg); } }

/* 建筑标注 */
.il-blabel {
  position: absolute; display: flex; flex-direction: column; gap: 4px;
  font-size: 12px; line-height: 1.5; pointer-events: none;
}
.il-blabel .t {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: rgba(8, 8, 26, .62); border: 1px solid rgba(95, 242, 255, .4);
  color: var(--ink); backdrop-filter: blur(3px); white-space: nowrap;
}
.il-blabel .t b { color: var(--cyan); font-weight: 600; }
.il-blabel .d { color: var(--ink-dim); font-size: 11px; padding-left: 8px; }
.il-blabel::before {
  content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
}
.il-blabel-village { left: 2%; top: 38%; }
.il-blabel-village::before { left: 96%; top: -14px; }
.il-blabel-lab { left: 40%; top: 0%; }
.il-blabel-lab::before { left: 20%; bottom: -16px; }
.il-blabel-lighthouse { right: 1%; top: 26%; }
.il-blabel-lighthouse::before { left: -16px; top: 110%; }

/* 建筑热点（悬停/点按出产品卡） */
.il-hotspot { position: absolute; pointer-events: auto; cursor: pointer; border-radius: 12px; outline: none;
  /* 原生 button 样式重置（保留可聚焦与键盘激活） */
  background: none; border: none; padding: 0; font: inherit; color: inherit; appearance: none; }
.il-hotspot::after {
  content: ""; position: absolute; inset: 0; border-radius: 12px;
  border: 1.5px dashed rgba(95, 242, 255, 0);
  transition: border-color .25s, box-shadow .25s;
  /* 首次进入：热点轮廓脉冲 3 次，提示可交互 */
  animation: il-hs-pulse 2.2s ease-in-out 3;
}
@keyframes il-hs-pulse {
  0%, 100% { border-color: rgba(95, 242, 255, 0); box-shadow: none; }
  50% { border-color: rgba(95, 242, 255, .65); box-shadow: 0 0 18px rgba(95, 242, 255, .22) inset; }
}
.il-hotspot:hover::after, .il-hotspot:focus-visible::after, .il-hotspot.active::after {
  border-color: rgba(95, 242, 255, .75);
  box-shadow: 0 0 18px rgba(95, 242, 255, .25) inset;
}
.il-hs-village { left: 15%; top: 15%; width: 24%; height: 22%; }
.il-hs-lab { left: 41%; top: 2%; width: 19%; height: 31%; }
.il-hs-windmill { left: 58%; top: 16%; width: 9%; height: 20%; }
.il-hs-lighthouse { left: 67%; top: 1%; width: 12%; height: 33%; }

/* 产品卡（可滚动、可点击跳产品锚点） */
.il-pcard {
  position: absolute; width: 230px; max-height: 260px; overflow-y: auto;
  padding: 14px 16px; border-radius: 14px;
  background: rgba(9, 9, 28, .78); border: 1px solid rgba(123, 92, 255, .45);
  backdrop-filter: blur(8px); box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .28s ease, transform .28s ease; z-index: 9;
}
.il-pcard[hidden] { display: none; }
.il-pcard.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.il-pcard h2 { font-size: 13px; letter-spacing: .12em; color: var(--cyan); margin: 0 0 2px; }
.il-pcard .il-pd { font-size: 11px; color: var(--ink-dim); margin-bottom: 8px; }
.il-pcard ul { list-style: none; margin: 0; padding: 0; }
.il-pcard li { padding: 7px 0; border-top: 1px dashed rgba(255, 255, 255, .14); }
.il-pcard li a { display: block; color: inherit; text-decoration: none; border-radius: 6px; }
.il-pcard li a:hover b { color: var(--cyan); }
.il-pcard li b { display: block; font-size: 12.5px; color: var(--ink); font-weight: 600; }
.il-pcard li span { font-size: 11px; color: var(--ink-dim); line-height: 1.5; }
.il-pcard .il-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 6px;
  float: left; margin: 2px 8px 2px 0; }
.il-pcard .il-ptag {
  display: inline-block; margin: 3px 4px 0 0; padding: 1px 7px;
  border-radius: 999px; font-size: 10px; font-style: normal;
  border: 1px solid rgba(95, 242, 255, .4); color: var(--cyan);
}
.il-pcard .il-pnote { font-size: 11px; color: var(--ink-dim); line-height: 1.6; }
.il-pc-village { left: 33%; top: 4%; }
.il-pc-lab { left: 46%; top: 38%; }
.il-pc-windmill { left: 60%; top: 40%; }
.il-pc-lighthouse { right: 16%; top: 2%; }

/* 炊烟 */
.il-smoke-stack { position: absolute; left: 22.2%; top: 15%; width: 14px; height: 8px; }
.il-smoke {
  position: absolute; left: 0; bottom: 0; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 70%);
  filter: blur(1px); opacity: 0; animation: il-smoke-up 4.2s linear infinite;
}
@keyframes il-smoke-up {
  0% { transform: translate(0, 0) scale(.5); opacity: 0; }
  12% { opacity: .8; }
  100% { transform: translate(14px, -88px) scale(2.6); opacity: 0; }
}

/* 灯光脉动 / 闪烁 */
.il-pulseglow { animation: il-pulse 2.6s ease-in-out infinite; }
@keyframes il-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.il-blink { animation: il-blink 1.8s steps(2, start) infinite; }
@keyframes il-blink { 50% { opacity: .15; } }

/* ---------- 岛下海水 ---------- */
.il-sea { position: absolute; left: 0; right: 0; bottom: 0; height: 22vh; z-index: 4; pointer-events: none; }
.il-sea .il-glow {
  position: absolute; left: 50%; top: -4vh; width: 60vmin; height: 10vh; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(95, 242, 255, .16), transparent 70%);
}
.il-wave { position: absolute; bottom: 0; left: 0; width: 200%; height: 100%; }
.il-wave svg { display: block; width: 100%; height: 100%; }
.il-wave.w1 { animation: il-slide 9s linear infinite; opacity: .5; }
.il-wave.w2 { animation: il-slide 14s linear infinite reverse; opacity: .35; height: 80%; }
@keyframes il-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.il-ripple {
  position: absolute; left: 50%; top: 2vh; width: 10vmin; height: 2.6vmin;
  border: 1.5px solid rgba(95, 242, 255, .5); border-radius: 50%;
  transform: translateX(-50%); opacity: 0; animation: il-ripple 4s ease-out infinite;
}
.il-ripple.r2 { animation-delay: 2s; }
@keyframes il-ripple {
  0% { transform: translateX(-50%) scale(.4); opacity: .7; }
  100% { transform: translateX(-50%) scale(3.2); opacity: 0; }
}

/* ---------- 响应式：手机 ---------- */
@media (max-width: 720px) {
  /* 首屏文案收窄，岛屿仍为主体 */
  .il-hero-copy { top: clamp(3.5rem, 9vh, 5rem); max-width: 68vw; }
  .il-hero-copy h1 { font-size: clamp(22px, 6.4vw, 28px); }
  .il-hero-copy .il-sub { font-size: 13px; }
  .il-hero-copy .il-ctas .btn { padding: 8px 16px; font-size: 13px; }
  /* 次要信息让位：长描述隐藏，标注只留名称小胶囊 */
  .il-blabel .d { display: none; }
  .il-blabel { font-size: 11px; }
  .il-blabel-lighthouse { right: 0; top: 20%; }
  .il-blabel-village { left: 0; }
  /* 提示贴底避让海面 */
  .il-hint { bottom: 18vh; font-size: 11.5px; }
  .il-sea { height: 16vh; }
  .il-pcard { width: 190px; padding: 10px 12px; }
  .il-pc-lab { left: 38%; }
  .il-pc-lighthouse { right: 4%; }
}
@media (max-width: 480px) {
  .il-hero-copy .il-sub { display: none; }
  .il-hero-copy { max-width: 76vw; }
}

/* 减少动态偏好 */
@media (prefers-reduced-motion: reduce) {
  .il * { animation: none !important; }
}
