/* ============ 基础 ============ */
:root {
  --bg: #ffffff;
  --text: #1a1a2e;
  --text-dim: #5a5f7a;
  --accent-1: #7c5cff;
  --accent-2: #00a8d4;
  --accent-3: #ff5c8a;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(26, 26, 46, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

::selection { background: rgba(124, 92, 255, 0.4); }

/* 滚动条 */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--accent-1), var(--accent-2)); border-radius: 4px; }

/* ============ 背景层 ============ */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: -3;
}

.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(600px 400px at 15% 20%, rgba(124, 92, 255, 0.12), transparent 65%),
    radial-gradient(700px 450px at 85% 30%, rgba(0, 168, 212, 0.1), transparent 65%),
    radial-gradient(650px 500px at 50% 90%, rgba(255, 92, 138, 0.08), transparent 65%);
  animation: aurora-drift 18s ease-in-out infinite alternate;
}

@keyframes aurora-drift {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1); filter: hue-rotate(0deg); }
  50%  { transform: translate3d(2%, 1.5%, 0) scale(1.08); filter: hue-rotate(20deg); }
  100% { transform: translate3d(-1%, 2%, 0) scale(1.02); filter: hue-rotate(-10deg); }
}

/* 噪点质感 */
.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 鼠标跟随光晕 */
#cursor-glow {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.08), transparent 65%);
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  opacity: 0;
}

/* ============ 导航 ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 0;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--glass-border);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 3px;
}

.logo-name {
  background: linear-gradient(120deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--text-dim);
  font-size: 0.92rem;
  transition: color 0.25s ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

/* ============ 首屏 ============ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero-tag {
  font-size: 0.85rem;
  letter-spacing: 4px;
  color: var(--text-dim);
  text-transform: uppercase;
  padding: 8px 18px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 28px;
  animation: fade-up 0.9s ease both;
}

.hero-title {
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 2px;
  max-width: 18em;
  animation: fade-up 0.9s ease 0.12s both;
}

.gradient-text {
  background: linear-gradient(120deg, var(--accent-1), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 6s ease infinite;
  background-size: 200% auto;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero-sub {
  margin-top: 22px;
  color: var(--text-dim);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  max-width: 26em;
  line-height: 1.9;
  overflow-wrap: break-word;
  word-break: break-word;
  animation: fade-up 0.9s ease 0.24s both;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fade-up 0.9s ease 0.36s both;
}

.btn {
  padding: 14px 34px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent-1), var(--accent-2));
  color: #fff;
  box-shadow: 0 4px 14px rgba(124, 92, 255, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(124, 92, 255, 0.35);
}

.btn-primary span { transition: transform 0.25s ease; }
.btn-primary:hover span { transform: translateX(4px); }

.btn-ghost {
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: rgba(26, 26, 46, 0.25);
  background: rgba(26, 26, 46, 0.06);
}

/* ============ 通用区块 ============ */
.apps, .about {
  max-width: 1080px;
  margin: 0 auto;
  padding: 100px 24px;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: 1px;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--text-dim);
  margin-top: 12px;
  font-size: 0.95rem;
}

/* ============ 应用卡片 ============ */
.app-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 26px;
  perspective: 1200px;
}

.app-card {
  position: relative;
  border-radius: 20px;
  padding: 34px 28px 30px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
  display: flex;
  flex-direction: column;
}

.app-card::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.65), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.app-card:hover {
  border-color: rgba(26, 26, 46, 0.18);
  box-shadow: 0 10px 30px rgba(31, 38, 70, 0.1), 0 0 20px var(--card-glow, rgba(124, 92, 255, 0.1));
  transform: translateY(-4px) scale(1.01);
}

.app-card:hover::before { opacity: 1; }

.app-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 22px;
  background: var(--card-bg, linear-gradient(135deg, var(--accent-1), var(--accent-2)));
  box-shadow: 0 8px 24px var(--card-glow, rgba(124, 92, 255, 0.3));
  color: #fff;
}

.app-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.app-desc {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.7;
  flex: 1;
}

.app-link {
  margin-top: 24px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dim);
  background: transparent;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.app-card:hover .app-link {
  color: var(--card-accent, var(--accent-2));
  border-color: var(--card-accent, var(--accent-2));
  background: var(--card-glow, rgba(124, 92, 255, 0.1));
}

.app-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 1px;
  background: var(--card-glow, rgba(124, 92, 255, 0.18));
  color: var(--text);
  border: 1px solid var(--glass-border);
}

/* 占位卡片（更多产品） */
.app-card.coming {
  border-style: dashed;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 260px;
  background: transparent;
}

.app-card.coming:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(31, 38, 70, 0.1);
}

.coming-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  border: 1px dashed rgba(26, 26, 46, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--text-dim);
  margin: 0 auto 22px;
}

.coming-title {
  font-size: 1.15rem;
  font-weight: 600;
}

.coming-sub {
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* 滚动出现动画 */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ 关于 ============ */
.about-card {
  margin-top: 48px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  padding: 44px 40px;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
}

.about-icon {
  font-size: 2rem;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.about-card p {
  color: var(--text-dim);
  line-height: 1.9;
  font-size: 0.98rem;
}

.about-card .about-foot {
  margin-top: 16px;
  color: var(--text);
}

/* ============ 页脚 ============ */
.footer {
  text-align: center;
  padding: 40px 24px 50px;
  color: var(--text-dim);
  font-size: 0.85rem;
  border-top: 1px solid rgba(26, 26, 46, 0.08);
}

.footer-icp {
  margin-top: 10px;
  font-size: 0.78rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-icp a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-icp a:hover {
  color: var(--accent-1);
  text-decoration: underline;
}

.footer-sep {
  opacity: 0.6;
}

.heart { color: var(--accent-3); }

/* ============ 动画 ============ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============ 响应式 ============ */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .app-grid { grid-template-columns: 1fr; }
  .hero { padding: 110px 20px 70px; }
  .apps, .about { padding: 70px 20px; }
  .about-card { padding: 34px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
