:root {
  --bg-0: #050012;
  --bg-1: #0a001f;
  --bg-2: #140030;
  --ink: #f0e8ff;
  --ink-dim: #b9a8e0;
  --ink-mute: #7c6aa4;
  --neon-pink: #ff006e;
  --neon-purple: #8338ec;
  --neon-blue: #3a86ff;
  --neon-teal: #06ffa5;
  --neon-yellow: #ffbe0b;
  --panel-bg: rgba(14, 4, 34, 0.85);
  --panel-border: rgba(255, 255, 255, 0.12);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: radial-gradient(120% 80% at 50% -10%, #1a0042 0%, var(--bg-0) 55%, #000 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, sans-serif;
  overflow-x: hidden;
  overscroll-behavior: none;
}

body {
  min-height: 100dvh;
  position: relative;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ===== Animated Aurora Background ===== */
.aurora-bg {
  position: fixed;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 30%, rgba(131, 56, 236, 0.35), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(255, 0, 110, 0.30), transparent 45%),
    radial-gradient(circle at 60% 80%, rgba(58, 134, 255, 0.30), transparent 45%),
    radial-gradient(circle at 15% 75%, rgba(6, 255, 165, 0.25), transparent 45%);
  filter: blur(60px) saturate(1.3);
  animation: auroraShift 18s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes auroraShift {
  0% { transform: translate(0, 0) scale(1); opacity: .9; }
  50% { transform: translate(2%, -3%) scale(1.05); opacity: 1; }
  100% { transform: translate(-2%, 2%) scale(1.1); opacity: .85; }
}

.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(131, 56, 236, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(131, 56, 236, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* ===== App Shell ===== */
.app-shell {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: calc(var(--safe-top) + 16px) 20px calc(var(--safe-bottom) + 120px);
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.logo-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 15px;
}

.logo-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #ff006e, #8338ec, #3a86ff, #06ffa5, #ff006e);
  box-shadow: 0 0 20px rgba(131, 56, 236, 0.7);
  animation: spin 4s linear infinite;
}

.logo-text span {
  color: var(--neon-teal);
  margin: 0 1px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.status-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 12px;
  border: 1px solid rgba(6, 255, 165, 0.35);
  border-radius: 999px;
  background: rgba(6, 255, 165, 0.08);
  color: var(--neon-teal);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-teal);
  box-shadow: 0 0 10px var(--neon-teal);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.6; }
}

.hero {
  margin: 24px 0 40px;
}

.hero-tag {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--neon-pink);
  margin-bottom: 14px;
  font-weight: 700;
}

.hero-title {
  font-size: clamp(32px, 9vw, 52px);
  line-height: 1.08;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.title-line {
  display: block;
}

.neon {
  background: linear-gradient(90deg, #ff006e, #ffbe0b, #06ffa5, #3a86ff, #ff006e);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: neonFlow 4s linear infinite;
}

@keyframes neonFlow {
  to { background-position: 300% 0; }
}

.hero-sub {
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.7;
  max-width: 520px;
}

.hero-sub .accent {
  color: var(--neon-teal);
  font-weight: 600;
}

/* ===== Feature Cards ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.feature-card {
  padding: 18px 16px;
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(20, 0, 48, 0.7), rgba(10, 0, 31, 0.45));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(131, 56, 236, 0.5);
  box-shadow: 0 14px 34px rgba(131, 56, 236, 0.15);
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--neon-pink);
  background: linear-gradient(135deg, rgba(255, 0, 110, 0.2), rgba(131, 56, 236, 0.2));
  margin-bottom: 12px;
  position: relative;
}

.feature-icon::after {
  content: attr(data-emoji);
  color: white;
  text-shadow: 0 0 8px var(--neon-pink);
}

.feature-card:nth-child(2) .feature-icon { color: var(--neon-blue); background: linear-gradient(135deg, rgba(58,134,255,.2), rgba(6,255,165,.2)); }
.feature-card:nth-child(3) .feature-icon { color: var(--neon-yellow); background: linear-gradient(135deg, rgba(255,190,11,.2), rgba(255,0,110,.2)); }
.feature-card:nth-child(4) .feature-icon { color: var(--neon-teal); background: linear-gradient(135deg, rgba(6,255,165,.2), rgba(131,56,236,.2)); }

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-dim);
}

/* ===== CTA ===== */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 8px 0 18px;
}

.cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  font-size: 16px;
  font-weight: 700;
  color: white;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff006e, #8338ec, #3a86ff, #06ffa5);
  background-size: 300% 100%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.25) inset,
    0 14px 40px -10px rgba(131, 56, 236, 0.7);
  animation: neonFlow 5s linear infinite;
  transition: transform .2s ease, box-shadow .2s ease;
}

.cta-btn:active {
  transform: scale(0.96);
  box-shadow: 0 6px 24px -6px rgba(131, 56, 236, 0.6);
}

.cta-btn em {
  font-style: normal;
  font-size: 18px;
}

.hint {
  color: var(--ink-mute);
  font-size: 12.5px;
  text-align: center;
  max-width: 420px;
  line-height: 1.6;
}

.app-footer {
  margin-top: 20px;
  text-align: center;
  color: var(--ink-mute);
  font-size: 12px;
  letter-spacing: 1px;
}

/* ============================================================
   ===== FLOATING ORB WIDGET 浮球挂件
   ============================================================ */
.orb-widget {
  position: fixed;
  right: 16px;
  bottom: 140px;
  width: 62px;
  height: 62px;
  z-index: 50;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), right .45s cubic-bezier(.2,.8,.2,1), left .45s cubic-bezier(.2,.8,.2,1), top .45s cubic-bezier(.2,.8,.2,1), bottom .45s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}

.orb-widget.dragging {
  transition: none;
  cursor: grabbing;
}

.orb-widget.hidden-left {
  right: auto;
  left: -38px;
}

.orb-widget.hidden-right {
  right: -38px;
}

.orb-widget.hidden-bottom {
  bottom: -38px;
}

.orb-halo {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 0, 110, 0.55) 0%, rgba(131, 56, 236, 0.35) 35%, rgba(58, 134, 255, 0.15) 60%, transparent 75%);
  filter: blur(4px);
  animation: haloPulse 2.4s ease-in-out infinite;
}

@keyframes haloPulse {
  0%, 100% { transform: scale(1); opacity: .85; }
  50% { transform: scale(1.15); opacity: 1; }
}

.orb-core {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #ff006e, #ffbe0b, #06ffa5, #3a86ff, #8338ec, #ff006e);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.25) inset,
    0 8px 24px rgba(131, 56, 236, 0.55),
    0 0 40px rgba(255, 0, 110, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: coreSpin 8s linear infinite;
}

@keyframes coreSpin {
  to { transform: rotate(360deg); }
}

.orb-spinner {
  position: absolute;
  inset: -20%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(255, 255, 255, 0.9) 20deg, transparent 60deg, transparent 180deg, rgba(255, 255, 255, 0.6) 220deg, transparent 270deg);
  animation: coreSpin 3s linear infinite reverse;
  mix-blend-mode: screen;
  opacity: .8;
}

.orb-inner {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.95), rgba(255, 255, 255, 0.15) 55%, rgba(0,0,0,.5) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: coreSpin 8s linear infinite reverse;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.35) inset;
}

.orb-inner svg {
  filter: drop-shadow(0 0 6px rgba(255, 0, 110, 0.8));
}

.orb-shine {
  position: absolute;
  top: 10px;
  left: 14px;
  width: 14px;
  height: 8px;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.95), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ============================================================
   ===== EXPANDING ORB PANEL 炫彩应用面板
   ============================================================ */
.orb-panel {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease;
}

.orb-panel.open {
  pointer-events: auto;
  opacity: 1;
}

.panel-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 60%, rgba(10, 0, 31, 0.6), rgba(0, 0, 0, 0.9));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .35s ease;
}

.orb-panel.open .panel-backdrop {
  opacity: 1;
}

.panel-card {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 110%) scale(0.9);
  width: min(92vw, 520px);
  max-height: 86vh;
  overflow-y: auto;
  background: linear-gradient(160deg, rgba(20, 0, 48, 0.96), rgba(10, 0, 31, 0.96));
  border: 1px solid rgba(131, 56, 236, 0.45);
  border-radius: 28px 28px 0 0;
  padding: 24px 22px calc(var(--safe-bottom) + 28px);
  box-shadow:
    0 -20px 80px rgba(131, 56, 236, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
  position: relative;
  overflow-x: hidden;
}

.orb-panel.open .panel-card {
  transform: translate(-50%, 0) scale(1);
}

.panel-glow {
  position: absolute;
  top: -40%;
  left: -20%;
  right: -20%;
  height: 200px;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 0, 110, 0.35), rgba(131, 56, 236, 0.25) 40%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.panel-card::-webkit-scrollbar { width: 0; display: none; }

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.panel-title .chip {
  display: inline-block;
  padding: 4px 10px;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 800;
  color: var(--neon-teal);
  border: 1px solid rgba(6, 255, 165, 0.35);
  border-radius: 999px;
  background: rgba(6, 255, 165, 0.08);
  margin-bottom: 8px;
}

.panel-title h2 {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(90deg, #ffffff, #ffb6ff 50%, #b6f0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.panel-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 14px;
  transition: transform .2s, background .2s;
}

.panel-close:active {
  transform: scale(0.9);
  background: rgba(255, 0, 110, 0.2);
}

/* ===== Panel Hero ===== */
.panel-hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(131, 56, 236, 0.15), rgba(58, 134, 255, 0.1));
  border: 1px solid rgba(131, 56, 236, 0.3);
  margin-bottom: 20px;
  overflow: hidden;
}

.hero-orb {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid transparent;
}

.hero-ring.r1 {
  inset: 0;
  border-color: rgba(255, 0, 110, 0.5);
  animation: spin 6s linear infinite;
}

.hero-ring.r2 {
  inset: 10px;
  border-color: rgba(131, 56, 236, 0.5);
  animation: spin 4s linear infinite reverse;
}

.hero-ring.r3 {
  inset: 20px;
  border-style: dashed;
  border-color: rgba(6, 255, 165, 0.5);
  animation: spin 8s linear infinite;
}

.hero-core {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #ff006e, #ffbe0b, #06ffa5, #3a86ff, #ff006e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 30px rgba(255, 0, 110, 0.7);
  animation: heroCorePulse 1.8s ease-in-out infinite;
}

@keyframes heroCorePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.meta-row {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.meta-label {
  color: var(--ink-mute);
  letter-spacing: 1.5px;
  font-weight: 700;
}

.meta-value {
  color: var(--neon-teal);
  font-weight: 700;
  text-align: right;
}

.bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.bar em {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ff006e, #06ffa5);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(255, 0, 110, 0.6);
  animation: barShimmer 3s ease-in-out infinite;
}

@keyframes barShimmer {
  0%, 100% { filter: hue-rotate(0deg) brightness(1); }
  50% { filter: hue-rotate(60deg) brightness(1.3); }
}

/* ===== App Tiles ===== */
.panel-apps {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.app-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: 16px;
  padding: 10px 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(155deg, color-mix(in srgb, var(--c1) 25%, #0a001f), color-mix(in srgb, var(--c2) 20%, #0a001f));
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  isolation: isolate;
}

.app-tile::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  opacity: 0;
  z-index: -1;
  transition: opacity .3s ease;
}

.app-tile::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 15px;
  background: linear-gradient(155deg, color-mix(in srgb, var(--c1) 18%, #0a001f), color-mix(in srgb, var(--c2) 14%, #0a001f));
  z-index: -1;
}

.app-tile:active {
  transform: scale(0.92);
}

.app-tile:hover {
  border-color: transparent;
  box-shadow: 0 8px 26px -6px var(--c1);
}

.app-tile:hover::before {
  opacity: 1;
}

.app-ico {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 6px 18px -4px var(--c1), 0 0 0 1px rgba(255,255,255,.15) inset;
}

.app-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #f3e9ff;
}

/* ===== Actions ===== */
.panel-actions {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 10px;
}

.act-btn {
  flex: 1;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .15s ease;
}

.act-btn:active { transform: scale(0.96); }

.act-btn.primary {
  background: linear-gradient(90deg, #ff006e, #8338ec, #06ffa5);
  background-size: 200% 100%;
  box-shadow: 0 10px 28px -8px rgba(131, 56, 236, 0.6), 0 0 0 1px rgba(255,255,255,.18) inset;
  animation: neonFlow 4s linear infinite;
}

.act-btn.ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--ink-dim);
}

/* ===== Particles inside panel ===== */
.panel-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
}

.panel-particles span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-pink);
  opacity: 0;
  filter: blur(0.5px);
  box-shadow: 0 0 10px currentColor;
  animation: floatParticle 5s ease-in-out infinite;
}

@keyframes floatParticle {
  0% { transform: translate(0, 100%) scale(0.6); opacity: 0; }
  15% { opacity: 0.8; }
  50% { transform: translate(var(--x, 20px), -30%) scale(1); }
  100% { transform: translate(calc(var(--x, 20px) * -1), -120%) scale(0.4); opacity: 0; }
}

/* ===== Spark Canvas (global confetti) ===== */
.spark-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
}

/* ===== Small screens ===== */
@media (max-width: 380px) {
  .feature-grid { grid-template-columns: 1fr; }
  .panel-apps { grid-template-columns: repeat(4, 1fr); }
  .app-label { font-size: 11px; }
}

@media (min-width: 900px) {
  .orb-widget {
    width: 70px;
    height: 70px;
  }
  .orb-core {
    width: 70px;
    height: 70px;
  }
}

/* ============================================================
   ===== PWA 安装卡片 & 独立模式样式
   ============================================================ */
.install-card {
  display: grid;
  grid-template-columns: 48px 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(131, 56, 236, 0.25), rgba(6, 255, 165, 0.1));
  border: 1px solid rgba(131, 56, 236, 0.5);
  box-shadow: 0 10px 40px -15px rgba(131, 56, 236, 0.5),
              0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  position: relative;
  overflow: hidden;
  animation: installSlide .6s cubic-bezier(.2,.8,.2,1);
}

@keyframes installSlide {
  from { opacity: 0; transform: translateY(-10px) scale(.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.install-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 110, 0.15), transparent);
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.install-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: conic-gradient(from 0deg, #ff006e, #ffbe0b, #06ffa5, #3a86ff, #8338ec, #ff006e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 6px 20px rgba(131, 56, 236, 0.5);
  position: relative;
  z-index: 1;
}

.install-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.install-text strong {
  font-size: 15px;
  color: white;
  font-weight: 700;
}

.install-text span {
  font-size: 12px;
  color: var(--ink-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.install-btn {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  color: white;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff006e, #8338ec, #06ffa5);
  background-size: 200% 100%;
  box-shadow: 0 6px 20px -4px rgba(255, 0, 110, 0.6), 0 0 0 1px rgba(255,255,255,.15) inset;
  animation: neonFlow 4s linear infinite;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: transform .15s;
}

.install-btn:active { transform: scale(0.94); }

.install-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 13px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s, background .15s;
}

.install-close:active {
  transform: scale(0.9);
  background: rgba(255, 255, 255, 0.2);
}

/* 独立 PWA 模式下的细微调整 */
body.pwa-mode .app-header::after {
  content: "✓ PWA";
  display: inline-block;
  margin-left: auto;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--neon-teal);
  border: 1px solid rgba(6, 255, 165, 0.35);
  border-radius: 999px;
  background: rgba(6, 255, 165, 0.08);
  margin-right: 8px;
}

body.pwa-mode .install-card {
  display: none !important;
}

@media (max-width: 480px) {
  .install-card {
    grid-template-columns: 40px 1fr auto;
    gap: 10px;
    padding: 12px;
  }
  .install-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  .install-btn {
    padding: 9px 14px;
    font-size: 12px;
  }
  .install-close {
    width: 28px;
    height: 28px;
  }
}

/* ============================================================
   ===== orb-only 模式（从桌面 PWA 启动）—— 只保留浮球
   ============================================================ */
body.orb-only {
  background: #0a001f !important;
  overflow: hidden !important;
}

/* 隐藏背景装饰 */
body.orb-only .aurora-bg,
body.orb-only .grid-bg {
  display: none !important;
}

/* 隐藏整个主容器（包含 header/hero/install-card/feature/cta/footer） */
body.orb-only .app-shell {
  display: none !important;
}

/* 隐藏安装卡片和弹窗遮罩 */
body.orb-only .install-card,
body.orb-only .orb-panel .panel-backdrop {
  display: none !important;
}

/* 浮球放大 + 呼吸脉冲 */
body.orb-only .orb-widget {
  width: 74px;
  height: 74px;
  z-index: 9999;
}
body.orb-only .orb-core {
  width: 74px;
  height: 74px;
  box-shadow:
    0 0 30px rgba(255, 0, 110, 0.7),
    0 0 60px rgba(131, 56, 236, 0.5),
    0 0 0 2px rgba(255, 255, 255, 0.15) inset;
  animation: orbPulse 1.8s ease-in-out infinite;
}
body.orb-only .orb-core::after {
  width: 74px;
  height: 74px;
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1); filter: hue-rotate(0deg); }
  50% { transform: scale(1.1); filter: hue-rotate(40deg) brightness(1.15); }
}

