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

:root {
  --bg: #0b1220;
  --card: rgba(255, 255, 255, 0.055);
  --card-border: rgba(255, 255, 255, 0.09);
  --text: #eef3fb;
  --muted: #93a1b8;
  --primary: #3b82f6;
  --primary-2: #6366f1;
  --radius: 18px;
}

html, body { margin: 0; padding: 0; min-height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 700px at 15% -10%, #16294d 0%, transparent 60%),
              radial-gradient(900px 600px at 110% 10%, #1c1b46 0%, transparent 55%),
              var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.bg-orb { position: fixed; border-radius: 50%; filter: blur(70px); opacity: 0.35; pointer-events: none; z-index: 0; }
.orb-a { width: 280px; height: 280px; background: #2563eb; top: -90px; left: -80px; }
.orb-b { width: 320px; height: 320px; background: #7c3aed; bottom: -120px; right: -100px; }

.wrap { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; padding: 32px 20px 48px; }

.hero { text-align: center; padding: 18px 0 6px; }

.app-icon {
  width: 88px; height: 88px; border-radius: 22px; object-fit: cover;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.08);
}
.app-icon-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 22px; letter-spacing: 1px; color: #cbd5e1;
}

.site-title { font-size: 24px; line-height: 1.3; margin: 18px 0 8px; font-weight: 700; letter-spacing: 0.3px; }
.site-sub { margin: 0; color: var(--muted); font-size: 13.5px; }
.dot { margin: 0 6px; opacity: 0.6; }

.notice {
  margin: 18px auto 0; max-width: 520px; text-align: left; font-size: 13.5px; line-height: 1.65;
  color: #cfe0ff; background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.25);
  border-radius: 14px; padding: 12px 14px;
}

.cards { margin-top: 26px; display: grid; gap: 14px; }

.card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 18px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.card:active { transform: scale(0.995); }
.card-active { border-color: rgba(59,130,246,0.55); box-shadow: 0 0 0 1px rgba(59,130,246,0.18), 0 18px 40px rgba(15,23,42,0.5); }

.card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }

.plat-badge {
  display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 600;
  padding: 5px 10px; border-radius: 999px; background: rgba(148,163,184,0.15); color: #dbeafe;
}
.plat-android { background: rgba(34,197,94,0.16); color: #a7f3d0; }
.plat-ios { background: rgba(148,163,184,0.18); color: #e2e8f0; }
.plat-harmony { background: rgba(56,189,248,0.16); color: #bae6fd; }

.tag { font-size: 11.5px; color: #93c5fd; border: 1px solid rgba(59,130,246,0.35); border-radius: 999px; padding: 2px 8px; }

.card-meta { display: flex; gap: 16px; color: var(--muted); font-size: 13px; margin-bottom: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 12px; padding: 13px 18px; font-size: 15px; font-weight: 600;
  font-family: inherit; cursor: pointer; text-decoration: none;
  transition: filter 0.16s ease, transform 0.12s ease;
}
.btn:active { transform: translateY(1px); }

.btn-download { width: 100%; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 10px 24px rgba(37,99,235,0.35); }
.btn-download:hover { filter: brightness(1.06); }

.btn-primary { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); }
.btn-ghost { color: #dbeafe; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); }
.btn-block { width: 100%; }

.empty { text-align: center; color: var(--muted); font-size: 14px; padding: 32px 12px; border: 1px dashed rgba(255,255,255,0.14); border-radius: var(--radius); }

.guide {
  margin-top: 22px; padding: 18px; border-radius: var(--radius);
  background: rgba(250,204,21,0.08); border: 1px solid rgba(250,204,21,0.22);
}
.guide h2 { margin: 0 0 8px; font-size: 16px; color: #fde68a; }
.guide p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.7; color: #e8eefc; }
.guide-actions { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.guide-note { margin: 12px 0 0 !important; font-size: 12.5px; color: #a3b3cc; min-height: 18px; }

.footer { margin-top: 28px; text-align: center; font-size: 12px; line-height: 1.7; color: #64748b; }

.overlay {
  position: fixed; inset: 0; z-index: 50; background: rgba(3,7,18,0.78);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn 0.18s ease;
}
.overlay[hidden] { display: none; }

.overlay-card {
  position: relative; width: 100%; max-width: 640px; background: #0f172a;
  border: 1px solid rgba(255,255,255,0.1); border-radius: 22px 22px 0 0;
  padding: 26px 22px calc(26px + env(safe-area-inset-bottom)); text-align: center;
  animation: slideUp 0.24s ease;
}
.overlay-arrow { font-size: 26px; color: #fbbf24; margin-bottom: 4px; }
.overlay-card h3 { margin: 0 0 10px; font-size: 17px; }
.overlay-card p { margin: 0 0 18px; font-size: 13.5px; line-height: 1.7; color: #b6c2d6; }
.overlay-card .btn { margin-bottom: 10px; }
.overlay-close { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,0.07); color: #cbd5e1; font-size: 20px; line-height: 1; cursor: pointer; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(40px); } to { transform: translateY(0); } }

@media (min-width: 560px) {
  .overlay { align-items: center; padding: 20px; }
  .overlay-card { border-radius: 22px; }
}
