/* 极速印公司介绍 - V4 星际航道样式 */

#intro-animation-modal {
  position: fixed; inset: 0; z-index: 999999; background: #000004; overflow: hidden;
  opacity: 1; transition: opacity .5s ease;
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: #fff;
}
#animation-canvas { position: absolute; inset: 0; }
#animation-canvas canvas { display: block; width: 100%; height: 100%; }

/* 暗角 + 极细颗粒，增加胶片质感 */
.iv4-vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 4;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 6, .55) 100%);
}
.iv4-flash {
  position: absolute; inset: 0; pointer-events: none; z-index: 30; opacity: 0;
  background: radial-gradient(circle at center, #fff 0%, #ffe6a8 45%, #ffbf5e 100%);
}

/* ---------- 大字幕 ---------- */
#text-overlay {
  position: absolute; inset: 0; z-index: 10; pointer-events: none;
  display: flex; align-items: center; justify-content: center; text-align: center;
  transform: none; width: auto; max-width: none; top: 0; left: 0;
}
.iv4-text { padding: 0 6vw; }
.iv4-line { display: block; line-height: 1.28; white-space: nowrap; }
.iv4-ch {
  display: inline-block; opacity: 0;
  transform: translateY(.45em) scale(1.25); filter: blur(14px);
  transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1), filter .9s cubic-bezier(.2, .7, .2, 1);
}
.iv4-text.in .iv4-ch { opacity: 1; transform: none; filter: blur(0); }
.iv4-text.out .iv4-ch {
  opacity: 0; transform: translateY(-.25em) scale(.96); filter: blur(10px);
  transition: opacity .5s ease, transform .5s ease, filter .5s ease; transition-delay: 0s !important;
}
.iv4-text { font-size: clamp(30px, 5.2vw, 84px); font-weight: 800; letter-spacing: .06em; }
.iv4-text.huge { font-size: clamp(34px, 6vw, 98px); }
.iv4-text.medium { font-size: clamp(26px, 3.6vw, 56px); font-weight: 600; }
.iv4-text.gold .iv4-ch {
  background: linear-gradient(180deg, #fff6d6 0%, #ffd45a 45%, #ff9d2e 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: blur(14px) drop-shadow(0 0 18px rgba(255, 190, 70, .55));
}
.iv4-text.gold.in .iv4-ch { filter: blur(0) drop-shadow(0 0 18px rgba(255, 190, 70, .55)); }
.iv4-text.gold.glow.in .iv4-ch { filter: blur(0) drop-shadow(0 0 26px rgba(255, 200, 90, .9)); animation: iv4-breathe 2.4s ease-in-out infinite 1s; }
.iv4-text.white .iv4-ch { color: #f4f8ff; text-shadow: 0 0 22px rgba(140, 190, 255, .55); font-weight: 600; }
@keyframes iv4-breathe { 50% { filter: blur(0) drop-shadow(0 0 40px rgba(255, 215, 120, 1)); } }

/* ---------- 里程碑卡片 ---------- */
.iv4-card {
  position: absolute; z-index: 12; top: 50%; width: min(36vw, 520px); pointer-events: none;
  transform: translateY(-50%); opacity: 0; --c: #4ecdc4;
}
.iv4-card.left { left: 7vw; }
.iv4-card.right { right: 7vw; text-align: right; }
.iv4-card.right .iv4-rule { margin-left: auto; }
.iv4-card.right .iv4-chips { justify-content: flex-end; }
.iv4-card > * { opacity: 0; transform: translateY(24px); filter: blur(8px); transition: all .8s cubic-bezier(.2, .7, .2, 1); }
.iv4-card.show { opacity: 1; }
.iv4-card.show > * { opacity: 1; transform: none; filter: blur(0); }
.iv4-card.show > :nth-child(2) { transition-delay: .12s; }
.iv4-card.show > :nth-child(3) { transition-delay: .22s; }
.iv4-card.show > :nth-child(4) { transition-delay: .34s; }
.iv4-card.show > :nth-child(5) { transition-delay: .46s; }
.iv4-card:not(.show) > * { transition-duration: .45s; transform: translateY(-14px); }

.iv4-year {
  font-size: clamp(64px, 11vw, 176px); font-weight: 900; line-height: .95; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 0%, var(--c) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 28px color-mix(in srgb, var(--c) 55%, transparent));
}
.iv4-rule { width: 84px; height: 3px; margin: 14px 0 16px; border-radius: 3px; background: linear-gradient(90deg, var(--c), transparent); box-shadow: 0 0 14px var(--c); }
.iv4-card.right .iv4-rule { background: linear-gradient(270deg, var(--c), transparent); }
.iv4-title { font-size: clamp(24px, 2.8vw, 42px); font-weight: 800; letter-spacing: .08em; text-shadow: 0 0 20px rgba(0, 0, 0, .6); }
.iv4-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 18px; }
.iv4-chips b {
  font-weight: 600; font-size: clamp(13px, 1.1vw, 17px); padding: 5px 14px; border-radius: 99px; letter-spacing: .08em;
  color: #fff; background: color-mix(in srgb, var(--c) 22%, rgba(255, 255, 255, .04));
  border: 1px solid color-mix(in srgb, var(--c) 70%, transparent); backdrop-filter: blur(8px);
}
.iv4-narr {
  font-size: clamp(15px, 1.5vw, 23px); line-height: 1.8; color: rgba(240, 246, 255, .92); text-shadow: 0 0 14px rgba(0, 0, 0, .8);
  --p: 0; -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--p) * 130% - 30%), transparent calc(var(--p) * 130%));
  mask-image: linear-gradient(90deg, #000 calc(var(--p) * 130% - 30%), transparent calc(var(--p) * 130%));
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
}
.iv4-card.right .iv4-narr { -webkit-mask-image: linear-gradient(270deg, #000 calc(var(--p) * 130% - 30%), transparent calc(var(--p) * 130%)); mask-image: linear-gradient(270deg, #000 calc(var(--p) * 130% - 30%), transparent calc(var(--p) * 130%)); }
.iv4-emph { margin-top: 14px; font-size: clamp(16px, 1.6vw, 24px); font-weight: 700; color: #ffd45a; text-shadow: 0 0 18px rgba(255, 190, 70, .8); letter-spacing: .1em; }
.iv4-card.hl .iv4-year { filter: drop-shadow(0 0 40px rgba(255, 200, 90, .8)); }

/* ---------- 航程条 ---------- */
.iv4-bar { position: absolute; left: 10vw; right: 10vw; bottom: 5.5vh; height: 40px; z-index: 12; opacity: 0; transition: opacity .8s; pointer-events: none; }
.iv4-bar.show { opacity: 1; }
.iv4-bar-line { position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: rgba(255, 255, 255, .16); border-radius: 2px; }
.iv4-bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, #4ecdc4, #ffd45a); box-shadow: 0 0 12px rgba(255, 220, 120, .8); border-radius: 2px; }
.iv4-bar-dot { position: absolute; top: 0; transform: translateX(-50%); text-align: center; }
.iv4-bar-dot i { display: block; width: 14px; height: 14px; margin: 0 auto; border-radius: 50%; background: #0a0f24; border: 2px solid rgba(255, 255, 255, .35); transition: all .5s; box-sizing: border-box; }
.iv4-bar-dot span { display: block; margin-top: 6px; font-size: 12px; letter-spacing: .05em; color: rgba(255, 255, 255, .4); transition: color .5s; font-variant-numeric: tabular-nums; }
.iv4-bar-dot.on i { background: #ffd45a; border-color: #fff3c4; box-shadow: 0 0 14px 2px rgba(255, 210, 100, .9); }
.iv4-bar-dot.on span { color: rgba(255, 255, 255, .9); }

/* ---------- Logo ---------- */
.iv4-logo {
  position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 1.4s ease;
}
.iv4-logo.show { opacity: 1; }
.iv4-logo.out { opacity: 0; transition-duration: 1.1s; }
.iv4-logo img { width: min(24vw, 220px); height: auto; transform: scale(.6); filter: drop-shadow(0 0 30px rgba(255, 190, 90, .85)) drop-shadow(0 0 80px rgba(80, 160, 255, .55)); transition: transform 2.2s cubic-bezier(.2, .8, .2, 1); }
.iv4-logo.show img { transform: scale(1); }
.iv4-logo-ring { position: absolute; width: min(42vw, 400px); aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255, 215, 130, .55); box-shadow: 0 0 40px rgba(255, 200, 100, .35), inset 0 0 40px rgba(255, 200, 100, .2); transform: scale(.3); opacity: 0; }
.iv4-logo.show .iv4-logo-ring { animation: iv4-ring 3.2s cubic-bezier(.15, .7, .2, 1) forwards; }
.iv4-logo.show .iv4-logo-ring.r2 { animation-delay: .5s; }
@keyframes iv4-ring { 0% { transform: scale(.3); opacity: 0; } 25% { opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
.iv4-logo-sub { margin-top: 28px; font-size: clamp(18px, 2.2vw, 32px); letter-spacing: .5em; padding-left: .5em; color: #fff3d6; text-shadow: 0 0 22px rgba(255, 200, 100, .8); opacity: 0; transform: translateY(14px); transition: all 1.4s ease 1s; }
.iv4-logo.show .iv4-logo-sub { opacity: 1; transform: none; }

/* ---------- 控件 ---------- */
.skip-button {
  position: absolute; top: 26px; right: 26px; z-index: 40; padding: 9px 20px; font-size: 14px; letter-spacing: .1em; cursor: pointer;
  color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .28); border-radius: 99px;
  backdrop-filter: blur(10px); opacity: .6; transition: all .3s;
}
.skip-button:hover { opacity: 1; background: rgba(255, 255, 255, .18); }
.iv4-mute { position: absolute; top: 26px; right: 120px; z-index: 40; width: 38px; height: 38px; font-size: 16px; cursor: pointer; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(10px); opacity: .6; transition: all .3s; }
.iv4-mute:hover { opacity: 1; }
.iv4-hint { position: absolute; left: 26px; top: 32px; z-index: 40; font-size: 12px; letter-spacing: .12em; color: rgba(255, 255, 255, .35); }
.iv4-paused { position: absolute; z-index: 41; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 12px 28px; border-radius: 99px; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .3); letter-spacing: .2em; opacity: 0; transition: opacity .3s; pointer-events: none; }
.iv4-paused.show { opacity: 1; }

/* 加载提示 */
#intro-animation-modal::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; z-index: 5;
  border: 3px solid rgba(255, 215, 0, .25); border-top-color: #ffd700; border-radius: 50%; animation: iv4-spin 1s linear infinite;
}
#intro-animation-modal.animation-started::before { display: none; }
@keyframes iv4-spin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .iv4-card { width: 86vw; top: auto; bottom: 14vh; transform: none; }
  .iv4-card.left, .iv4-card.right { left: 7vw; right: auto; text-align: left; }
  .iv4-card.right .iv4-chips { justify-content: flex-start; }
  .iv4-card.right .iv4-rule { margin-left: 0; }
  .iv4-year { font-size: 22vw; }
  .iv4-hint { display: none; }
  .iv4-mute { right: 108px; }
}
