:root {
  --bg: #f7f5fb;
  --bg-soft: #eef0fa;
  --ink: #1b2130;
  --ink-soft: #414a5e;
  --muted: #7b8598;
  --pink: #ff7fa8;
  --pink-deep: #f05c8c;
  --blue: #7b8cff;
  --cyan: #4fd1e0;
  --gold: #ffc46b;
  --card: rgba(255, 255, 255, 0.78);
  --line: rgba(27, 33, 48, 0.09);
  --shadow: 0 18px 50px -22px rgba(66, 76, 130, 0.45);
  --radius: 20px;
  --sans: "Inter", "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(255, 190, 214, 0.35), transparent 65%),
    radial-gradient(820px 520px at 94% 2%, rgba(167, 193, 255, 0.32), transparent 62%),
    linear-gradient(180deg, #fbfaff 0%, #f5f4fb 55%, #f8f6fb 100%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
.hidden { display: none !important; }

::selection { background: rgba(255, 127, 168, 0.28); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 127, 168, 0.6), rgba(123, 140, 255, 0.6));
  border-radius: 10px;
  border: 3px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-track { background: transparent; }

/* ---------------------------------------------------------------- 环境光斑 */

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.ambient .blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.55;
  animation: float 18s ease-in-out infinite alternate;
  will-change: transform;
}
.ambient .b1 { width: 460px; height: 460px; left: -120px; top: 10%; background: radial-gradient(circle, rgba(255, 157, 190, 0.55) 0%, rgba(255, 157, 190, 0) 70%); }
.ambient .b2 { width: 420px; height: 420px; right: -110px; top: 36%; background: radial-gradient(circle, rgba(139, 165, 255, 0.5) 0%, rgba(139, 165, 255, 0) 70%); animation-delay: -6s; }
.ambient .b3 { width: 400px; height: 400px; left: 42%; bottom: -160px; background: radial-gradient(circle, rgba(110, 220, 225, 0.42) 0%, rgba(110, 220, 225, 0) 70%); animation-delay: -12s; }

@keyframes float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(28px, -34px, 0) scale(1.12); }
}

/* ---------------------------------------------------------------- 顶栏 */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(249, 247, 253, 0.94);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-avatar {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 18px -6px rgba(255, 111, 155, 0.65);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 15.5px; letter-spacing: 0.5px; }
.brand-text i {
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 2.4px;
  color: var(--muted);
  margin-top: 3px;
}

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.site-nav a {
  position: relative;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-soft);
  transition: color 0.25s ease, background 0.25s ease;
}
.site-nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.85); }
.site-nav a.active { color: #fff; background: linear-gradient(135deg, var(--pink), var(--blue)); }
.site-nav a.active::after { display: none; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, #ff89ae 0%, #ff6d9c 45%, #8a8bff 100%);
  box-shadow: 0 14px 30px -12px rgba(255, 100, 150, 0.75);
}
.btn.primary:hover { box-shadow: 0 18px 34px -12px rgba(255, 100, 150, 0.9); transform: translateY(-1px); }
.btn.ghost {
  color: var(--ink-soft);
  border-color: rgba(27, 33, 48, 0.12);
  background: rgba(255, 255, 255, 0.65);
}
.btn.ghost:hover { color: var(--ink); border-color: rgba(255, 127, 168, 0.55); background: #fff; }
.btn.small { padding: 5px 12px; font-size: 12.5px; }

/* ---------------------------------------------------------------- 页脚 */

.site-footer {
  max-width: 1180px;
  margin: 60px auto 0;
  padding: 26px 24px 34px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12.5px;
}
.site-footer .dot { color: var(--pink); }
.site-footer a:hover { color: var(--pink-deep); }

/* ---------------------------------------------------------------- 光标 */

#cursor-canvas {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  display: none;
}
html.has-custom-cursor #cursor-canvas { display: block; }
html.has-custom-cursor,
html.has-custom-cursor * { cursor: none !important; }

/* ---------------------------------------------------------------- 动效 */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(123, 140, 255, 0.08);
  border-radius: var(--radius);
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

.toast {
  position: fixed;
  left: 50%;
  bottom: 38px;
  z-index: 10000;
  transform: translate(-50%, 16px);
  opacity: 0;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(27, 33, 48, 0.92);
  color: #fff;
  font-size: 13px;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 720px) {
  .ambient .blob { animation: none; }
  .header-inner { padding: 10px 16px; gap: 10px; }
  .brand-text i { display: none; }
  .site-nav { margin-left: 0; gap: 0; }
  .site-nav a { padding: 6px 9px; font-size: 13px; }
  .site-footer { padding: 22px 16px 30px; }
}
