/* ============================================================
   v4.1.4 · 启动动画暂停 + 意见反馈弹窗
   ============================================================ */

/* ---------- 启动页：等程序就绪再开始画 ---------- */
.splash.is-wait .splash-tile,
.splash.is-wait .splash-name,
.splash.is-wait .splash-sub,
.splash.is-wait .splash-bar,
.splash.is-wait .splash-bar i,
.splash.is-wait .sp-letter,
.splash.is-wait .sp-arc {
  animation-play-state: paused !important;
}

/* ---------- 意见反馈弹窗 ---------- */
.idea-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 18, 14, 0);
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
  transition: background 0.32s ease, backdrop-filter 0.32s ease;
}
.idea-modal[hidden] { display: none; }
.idea-modal.is-open {
  background: rgba(20, 18, 14, 0.32);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  backdrop-filter: blur(10px) saturate(1.1);
}

.im-panel {
  position: relative;
  width: min(440px, 100%);
  padding: 26px 26px 22px;
  border-radius: 24px;
  background:
    radial-gradient(120% 130% at 0% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    color-mix(in srgb, var(--surface) 96%, transparent);
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #fff 60%, transparent),
    0 30px 70px -26px rgba(28, 24, 18, 0.45);
  outline: none;
  transform: translateY(26px) scale(0.97);
  opacity: 0;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.32s ease;
}
.idea-modal.is-open .im-panel { transform: none; opacity: 1; }

/* 文字逐行滑入 */
.im-badge,
.im-title,
.im-line,
.im-wx,
.im-note {
  opacity: 0;
  transform: translateY(12px);
}
.idea-modal.is-open .im-badge {
  opacity: 1; transform: none;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.04s, opacity 0.4s ease 0.04s;
}
.idea-modal.is-open .im-title {
  opacity: 1; transform: none;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s, opacity 0.4s ease 0.1s;
}
.idea-modal.is-open .im-p1 { opacity: 1; transform: none; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.16s, opacity 0.4s ease 0.16s; }
.idea-modal.is-open .im-p2 { opacity: 1; transform: none; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.22s, opacity 0.4s ease 0.22s; }
.idea-modal.is-open .im-p3 { opacity: 1; transform: none; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.28s, opacity 0.4s ease 0.28s; }
.idea-modal.is-open .im-p4 { opacity: 1; transform: none; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.34s, opacity 0.4s ease 0.34s; }

.im-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 0;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.im-close:hover { background: color-mix(in srgb, var(--ink) 12%, transparent); color: var(--ink); transform: rotate(90deg); }

.im-badge {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent-ink);
  margin-bottom: 14px;
}
.im-title {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.im-line {
  margin: 0 0 6px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}
.im-wx {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 12px;
  padding: 13px 15px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  border: 1px dashed color-mix(in srgb, var(--accent) 38%, transparent);
}
.im-wx-label { font-size: 11.5px; color: var(--muted); letter-spacing: 0.04em; }
.im-wx b {
  font-size: 16px;
  letter-spacing: 0.01em;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}
.im-copy {
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--accent-ink);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.16s ease;
}
.im-copy:hover { background: color-mix(in srgb, var(--surface) 96%, transparent); }
.im-copy:active { transform: scale(0.97); }
.im-note {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--faint);
}

/* 全黑主题 */
[data-theme="dark"] .im-panel {
  background:
    radial-gradient(120% 130% at 0% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 60%),
    color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #fff 10%, transparent),
    0 30px 70px -24px rgba(0, 0, 0, 0.7);
}
[data-theme="dark"] .im-wx { background: color-mix(in srgb, var(--accent) 16%, transparent); }
[data-theme="dark"] .im-copy { background: color-mix(in srgb, var(--surface-2) 80%, transparent); }

@media (prefers-reduced-motion: reduce) {
  .im-panel, .im-badge, .im-title, .im-line, .im-wx, .im-note { transition-duration: 0.01ms !important; }
}

@media (max-width: 520px) {
  .im-panel { padding: 22px 18px 18px; border-radius: 20px; }
  .im-copy { margin-left: 0; }
}

/* 启动等待：先只显示一行静态提示，程序就绪后再放 logo 动画 */
.splash.is-wait .splash-inner { opacity: 0; }
.splash-wait {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.splash-wait .sw-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 0;
}
.splash-wait .sw-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 60%, transparent);
  animation: swDot 1.1s ease-in-out infinite;
}
.splash-wait .sw-dots i:nth-child(2) { animation-delay: 0.15s; }
.splash-wait .sw-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes swDot {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  45% { opacity: 1; transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  .splash-wait .sw-dots i { animation: none; }
}
.splash:not(.is-wait) .splash-wait { display: none; }
.splash.is-out .splash-wait { display: none; }
