:root {
  --bg: #0B0D10;
  --panel: #14171C;
  --panel2: #1B1F26;
  --line: rgba(255, 255, 255, .09);
  --ink: #EDEFF2;
  --muted: #828A97;
  --amber: #FFB020;
  --amber-dim: rgba(255, 176, 32, .14);
  --sky: #38bdf8;
  --sky-glow: rgba(56, 189, 248, 0.55);
  --pink: #ff75a0;
  --pink-glow: rgba(255, 117, 160, 0.6);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
}

button,
input {
  font-family: inherit;
}

::selection {
  background: var(--amber-dim);
  color: var(--amber);
}

.bg-slider {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
}

.bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.8s cubic-bezier(0.25, 1, 0.5, 1), transform 9s ease-out;
  will-change: opacity, transform;
}

.bg-slide.active {
  opacity: 1;
  transform: scale(1);
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(11, 13, 16, 0.42) 0%, rgba(11, 13, 16, 0.78) 100%);
  backdrop-filter: blur(0.5px);
  -webkit-backdrop-filter: blur(0.5px);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 90%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 90%);
}

.glow {
  position: fixed;
  top: 38%;
  left: 50%;
  translate: -50% -50%;
  width: min(60vw, 700px);
  height: min(60vw, 700px);
  background: radial-gradient(circle, rgba(255, 176, 32, .10) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.dashboard {
  position: relative;
  z-index: 1;
  height: 100dvh;
  width: 100vw;
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) and (orientation: portrait) {
  /* ---- 移动端背景壁纸方案二：双层高斯模糊与完整横屏画卷展示 ---- */
  .bg-slide {
    background-size: 0 0 !important;
    overflow: hidden;
  }

  /* 底层：高斯模糊全屏氛围铺底（解决留白黑边，与原图色彩 100% 融合） */
  .bg-slide::before {
    content: '';
    position: absolute;
    inset: -30px;
    background-image: inherit;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    filter: blur(28px) brightness(0.55) saturate(1.25);
    transform: scale(1.1);
  }

  /* 顶层：16:9 宽屏原画 100% 完整展现（上下边缘柔和渐变羽化，自然融入氛围底色） */
  .bg-slide::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 48.5%;
    transform: translateY(-50%);
    width: 100%;
    aspect-ratio: 16 / 9;
    background-image: inherit;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    -webkit-mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.6) 8%,
      black 20%,
      black 80%,
      rgba(0, 0, 0, 0.6) 92%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.6) 8%,
      black 20%,
      black 80%,
      rgba(0, 0, 0, 0.6) 92%,
      transparent 100%
    );
  }
}

/* 全局浮动轻提示 */
.app-toast {
  position: fixed;
  top: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(-18px);
  background: rgba(16, 20, 26, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #EDEFF2;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 10px 22px;
  border-radius: 20px;
  font-size: .86rem;
  letter-spacing: .02em;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 9999;
}

.app-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: .001ms !important;
  }
}
