:root {
  --bg: #05060d;
  --bg2: #0b1022;
  --fg: #e9edf7;
  --muted: #9aa6c4;
  --accent: #5b8cff;
  --accent2: #b56bff;
  --accent3: #22e6c8;
  --card: rgba(20, 27, 52, 0.72);
  --border: rgba(255, 255, 255, 0.09);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
}

#dust {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(181, 107, 255, 0.20), transparent 60%),
    radial-gradient(1000px 560px at 12% 6%, rgba(91, 140, 255, 0.22), transparent 60%),
    linear-gradient(180deg, #05060d, #080b18 60%, #05060d);
}

main, .nav, .footer { position: relative; z-index: 1; }

/* ---------- nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(18px, 5vw, 64px);
  position: sticky; top: 0;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(5,6,13,0.85), rgba(5,6,13,0.15));
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  font-weight: 800; font-size: 18px; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 6px 20px rgba(91,140,255,0.4);
}
.brand-name { font-weight: 800; letter-spacing: .5px; font-size: 20px; }
.brand-name .x {
  background: linear-gradient(135deg, var(--accent3), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic;
}
.nav-links { display: flex; align-items: center; gap: clamp(12px, 3vw, 30px); }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .15s; }
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  padding: 9px 16px; border-radius: 999px; color: #fff !important;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  box-shadow: 0 8px 24px rgba(140,90,255,0.35);
}

/* ---------- hero ---------- */
.hero { text-align: center; padding: clamp(60px, 12vw, 130px) 20px 70px; }
.hero-badge {
  display: inline-block; margin-bottom: 24px; padding: 7px 16px;
  border: 1px solid var(--border); border-radius: 999px;
  color: var(--accent3); font-size: 13px; letter-spacing: 3px;
  background: rgba(34,230,200,0.06);
}
.hero-title { font-size: clamp(38px, 8vw, 78px); line-height: 1.05; margin: 0 0 20px; letter-spacing: -1px; }
.grad {
  background: linear-gradient(120deg, var(--accent3), var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: var(--muted); font-size: clamp(15px, 2.4vw, 19px); line-height: 1.7; margin: 0 auto 34px; max-width: 680px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 14px; font-weight: 700; font-size: 16px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .08s ease, box-shadow .2s ease, background .2s;
}
.btn:active { transform: translateY(2px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  box-shadow: 0 12px 34px rgba(120,90,255,0.42);
}
.btn-primary:hover { box-shadow: 0 16px 44px rgba(120,90,255,0.6); }
.btn-ghost { color: var(--fg); border-color: var(--border); background: rgba(255,255,255,0.03); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }

.hero-stats { display: flex; gap: clamp(24px, 6vw, 60px); justify-content: center; margin-top: 56px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-size: 30px; background: linear-gradient(120deg, var(--accent3), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* ---------- products ---------- */
.products, .about { padding: clamp(40px, 8vw, 90px) clamp(18px, 5vw, 64px); max-width: 1180px; margin: 0 auto; }
.section-title { font-size: clamp(26px, 5vw, 40px); text-align: center; margin: 0 0 10px; }
.section-sub { text-align: center; color: var(--muted); margin: 0 0 46px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.card {
  position: relative; display: block; text-decoration: none; color: var(--fg);
  padding: 28px 26px; border-radius: 20px;
  background: var(--card); border: 1px solid var(--border);
  transition: transform .18s ease, border-color .18s, box-shadow .25s; overflow: hidden;
}
.card:hover { transform: translateY(-6px); border-color: rgba(120,150,255,0.5); box-shadow: 0 22px 50px rgba(0,0,0,0.5); }
.card-hot { border-color: rgba(181,107,255,0.5); box-shadow: 0 0 0 1px rgba(181,107,255,0.25), 0 20px 50px rgba(120,60,200,0.28); }
.card-hot::after {
  content: ""; position: absolute; inset: -1px; border-radius: 20px; pointer-events: none;
  background: linear-gradient(120deg, transparent, rgba(181,107,255,0.14), transparent);
}
.card-emoji { font-size: 34px; margin-bottom: 12px; }
.card-tag { display: inline-block; font-size: 12px; color: var(--accent3); letter-spacing: 1px; margin-bottom: 10px; }
.card h3 { margin: 0 0 10px; font-size: 20px; }
.card p { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.card-link { color: var(--accent); font-weight: 700; font-size: 14px; text-decoration: none; }
.card-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.dl-item { display: flex; flex-direction: column; gap: 4px; min-width: 9.5em; }
.dl-ver { color: var(--muted); font-size: 12px; letter-spacing: 0.02em; }
.card-link.dl { color: var(--accent3); }
.card-link.dl.is-busy { opacity: 0.7; pointer-events: none; }
.card-link:hover { text-decoration: underline; }
.card-soon { opacity: 0.7; cursor: default; }
.card-soon:hover { transform: none; box-shadow: none; border-color: var(--border); }
.card-soon .card-link { color: var(--muted); }

/* loessx-product/1 catalog page */
.loessx-platforms { display: grid; gap: 14px; }
.loessx-plat {
  padding: 20px 22px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--border);
}
.loessx-plat h2 { margin: 0 0 8px; font-size: 18px; }
.loessx-plat-ver { color: var(--accent3); font-size: 13px; margin: 0 0 8px; }
.loessx-plat-note { color: var(--muted); font-size: 14px; line-height: 1.65; margin: 0 0 14px; }
.loessx-plat-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.loessx-plat-link { color: var(--accent); font-weight: 700; font-size: 14px; text-decoration: none; }
.loessx-plat-link:hover { text-decoration: underline; }
.loessx-plat-dl { color: var(--accent3); }
.loessx-plat-soon { opacity: 0.7; }
.loessx-plat-soon-label { color: var(--muted); font-size: 14px; }

/* ---------- about + footer ---------- */
.about { max-width: 820px; text-align: center; }
.about-text { color: var(--muted); font-size: clamp(15px, 2.4vw, 18px); line-height: 1.9; }
.about-text b { color: var(--fg); }
.footer {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 40px 20px 60px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px;
}
.footer .brand-name { font-size: 16px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--fg); }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--fg); }
.footer-beian { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; align-items: center; }
.beian-gongan { display: inline-flex; align-items: center; gap: 4px; }
.beian-gongan img { width: 16px; height: 16px; vertical-align: middle; }
.legal {
  max-width: 720px; margin: 0 auto;
  padding: clamp(32px, 6vw, 64px) clamp(18px, 5vw, 64px) 20px;
}
.legal h1 { font-size: clamp(26px, 5vw, 36px); margin: 0 0 8px; }
.legal .legal-updated { color: var(--muted); font-size: 13px; margin: 0 0 28px; }
.legal h2 { font-size: 18px; margin: 28px 0 10px; }
.legal p, .legal li { color: var(--muted); font-size: 15px; line-height: 1.85; }
.legal ul { padding-left: 1.2em; }
