/* wyrs App 官网落地页 */
:root {
  --lp-accent: #0ea5e9;
  --lp-accent2: #6366f1;
  --lp-bg: #f8fafc;
  --lp-card: #ffffff;
  --lp-text: #0f172a;
  --lp-muted: #64748b;
  --lp-border: #e2e8f0;
  --lp-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] {
  --lp-bg: #070b14;
  --lp-card: #0f172a;
  --lp-text: #e2e8f0;
  --lp-muted: #94a3b8;
  --lp-border: rgba(148, 163, 184, 0.2);
  --lp-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body.wyrs-lp-body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  color: var(--lp-text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, color-mix(in srgb, var(--lp-accent) 18%, transparent), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, color-mix(in srgb, var(--lp-accent2) 14%, transparent), transparent),
    linear-gradient(180deg, var(--lp-bg) 0%, color-mix(in srgb, var(--lp-accent) 4%, var(--lp-bg)) 100%);
  min-height: 100vh;
  line-height: 1.65;
}

a { color: var(--lp-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wyrs-lp-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 16px 56px;
}

.wyrs-lp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.wyrs-lp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--lp-text);
  text-decoration: none;
}

.wyrs-lp-brand:hover { text-decoration: none; }

.wyrs-lp-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: var(--lp-shadow);
  background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.wyrs-lp-logo img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
}

.wyrs-lp-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  font-size: 0.9rem;
}

.wyrs-lp-nav a { color: var(--lp-muted); }
.wyrs-lp-nav a:hover { color: var(--lp-accent); }

.wyrs-lp-hero {
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--lp-shadow);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.wyrs-lp-hero::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--lp-accent) 30%, transparent), transparent 70%);
  pointer-events: none;
}

.wyrs-lp-hero-inner { position: relative; z-index: 1; }

.wyrs-lp-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--lp-accent);
  font-weight: 600;
  margin-bottom: 10px;
}

.wyrs-lp-hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.2;
}

.wyrs-lp-tagline {
  color: var(--lp-muted);
  font-size: 1.05rem;
  max-width: 36em;
  margin-bottom: 20px;
}

.wyrs-lp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.wyrs-lp-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--lp-border);
  background: color-mix(in srgb, var(--lp-accent) 8%, transparent);
  color: var(--lp-text);
  font-size: 0.85rem;
}

.wyrs-lp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.wyrs-lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.wyrs-lp-btn:hover { transform: translateY(-1px); }

.wyrs-lp-btn-primary {
  background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent2));
  color: #fff !important;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--lp-accent) 35%, transparent);
}

.wyrs-lp-btn-secondary {
  background: transparent;
  color: var(--lp-text) !important;
  border-color: var(--lp-border);
}

.wyrs-lp-meta {
  font-size: 0.85rem;
  color: var(--lp-muted);
}

.wyrs-lp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.wyrs-lp-card {
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: 18px;
  padding: 20px 18px;
  box-shadow: var(--lp-shadow);
}

.wyrs-lp-card h2 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.wyrs-lp-card ul {
  padding-left: 1.1em;
  color: var(--lp-muted);
  font-size: 0.95rem;
}

.wyrs-lp-card li { margin-bottom: 6px; }

.wyrs-lp-footer {
  border-top: 1px solid var(--lp-border);
  padding-top: 20px;
  color: var(--lp-muted);
  font-size: 0.85rem;
  text-align: center;
}

.wyrs-lp-footer .wyrs-lp-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  margin-bottom: 12px;
}

.wyrs-lp-footer p { margin-bottom: 4px; }

.wyrs-lp-lang select {
  border: 1px solid var(--lp-border);
  background: var(--lp-card);
  color: var(--lp-text);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 0.85rem;
}

/* SPA overlay mode (mounted into #app) */
#app.wyrs-lp-active {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

.wyrs-lp-page {
  min-height: 100vh;
  min-height: 100dvh;
}

@media (max-width: 640px) {
  .wyrs-lp-header { align-items: flex-start; }
  .wyrs-lp-actions { width: 100%; }
  .wyrs-lp-btn { width: 100%; }
}
