/* Compatibility layout for public download/create pages. Palette: ui-system.css. */
@import "./ui-system.css?v=20261109-tokens";
/* ---- 基础 ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--lavender);
  color: var(--ink-900);
  font-family: var(--font-sans);
  font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--violet-100); }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; }

/* ---- 通用组件 ---- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--violet-600);
  color: var(--anam-on-primary); font-size: 15px; font-weight: 700;
  border: 0; border-radius: var(--r-md);
  padding: 12px 24px;
  box-shadow: var(--shadow-brand);
  transition: transform 0.2s var(--ease-out), background 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.btn-primary:hover { transform: translateY(-1px); background: var(--violet-700); box-shadow: 0 8px 22px rgba(var(--anam-cool-accent-rgb), .28); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--anam-surface-solid); color: var(--ink-800);
  font-size: 15px; font-weight: 700;
  border: 1.5px solid var(--ink-200); border-radius: var(--r-md);
  padding: 11px 22px;
  transition: all 0.2s var(--ease-out);
}
.btn-ghost:hover { border-color: var(--violet-300); color: var(--violet-700); }

/* 浮动药丸导航 */
.nav {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 50;
  width: min(1160px, calc(100% - 32px));
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--r-lg);
  padding: 12px 14px 12px 26px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.25s var(--ease-out);
}
.nav.scrolled { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1); }
.nav .logo { display:inline-flex; align-items:center; gap:10px; font-size:18px; font-weight:650; white-space:nowrap; }
.nav .logo img { height: 30px; width:30px; }
.nav-links { display: flex; gap: 30px; font-size: 15px; font-weight: 700; color: var(--ink-600); }
.nav-links a { transition: color 0.2s var(--ease-out); }
.nav-links a:hover, .nav-links a.active { color: var(--violet-700); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.btn-login { background: transparent; border: 0; font-size: 15px; font-weight: 700; color: var(--ink-600); padding: 12px 14px; }
.btn-login:hover { color: var(--ink-900); }

/* 滚动渐显 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* 入场 */
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.rise { opacity: 0; animation: rise 0.8s var(--ease-out) forwards; }
.d1 { animation-delay: 0.05s; } .d2 { animation-delay: 0.15s; }
.d3 { animation-delay: 0.25s; } .d4 { animation-delay: 0.35s; } .d5 { animation-delay: 0.45s; }
