@import url("https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Noto+Serif+SC:wght@400;600;700&family=ZCOOL+XiaoWei&display=swap");

:root {
  --ink: #07060a;
  --ink-2: #12101a;
  --ink-3: #1c1828;
  --bone: #ebe4d6;
  --bone-dim: #b8ae9c;
  --cinnabar: #c23a22;
  --cinnabar-deep: #7a1f14;
  --jade: #2f8f7c;
  --jade-glow: rgba(47, 143, 124, 0.35);
  --gold: #c9a45b;
  --gold-dim: rgba(201, 164, 91, 0.45);
  --fog: rgba(235, 228, 214, 0.08);
  --line: rgba(201, 164, 91, 0.22);
  --danger: #e85d4c;
  --ok: #3cb89a;
  --radius: 4px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --font-display: "Ma Shan Zheng", "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-title: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-body: "Noto Serif SC", "Songti SC", serif;
  --nav-w: 220px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--bone);
  background: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: var(--gold);
  text-decoration: none;
}
a:hover {
  color: var(--bone);
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
}

.hidden {
  display: none !important;
}

/* 大气：墨底 + 朱砂晕 + 裂隙纹理 */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 15% -10%, rgba(194, 58, 34, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 20%, rgba(47, 143, 124, 0.14), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 110%, rgba(201, 164, 91, 0.08), transparent 45%),
    linear-gradient(180deg, #0a0810 0%, var(--ink) 40%, #050408 100%);
}

.atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.motes {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.mote {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.35;
  animation: mote-float linear infinite;
  box-shadow: 0 0 8px var(--gold-dim);
}

@keyframes mote-float {
  0% {
    transform: translateY(110vh) scale(0.6);
    opacity: 0;
  }
  12% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

#app {
  position: relative;
  z-index: 2;
  min-height: 100vh;
}

#toast-host {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  width: min(420px, calc(100% - 2rem));
}

.toast {
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--line);
  background: rgba(18, 16, 26, 0.92);
  color: var(--bone);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-8px);
  transition: 0.25s ease;
  font-size: 0.92rem;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  border-color: rgba(47, 143, 124, 0.5);
}

.toast-error {
  border-color: rgba(194, 58, 34, 0.55);
}
