:root {
  --bg: #faf9f6;
  --fg: #2a2a2a;
  --muted: #5a5a5a;
  --border: #e8e2d9;
  --primary: #87a96b;
  --accent: #e8a86c;
  --danger: #b35c44;
}

html.dark {
  --bg: #0b0f0c;
  --fg: #f3f4f6;
  --muted: #b7c0ba;
  --border: #22302a;
}

html,
body {
  height: 100%;
}

html.dark body {
  background: var(--bg);
  color: var(--fg);
}

body.aura-intro-lock,
body.aura-intro-pending {
  overflow: hidden;
  background: #1a2218 !important;
  color: #faf9f6;
}

body.aura-intro-pending #app {
  min-height: 100vh;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.writing-vertical-lr {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

@keyframes aura-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: aura-fade-in 240ms ease-out both;
}

h1,h2,h3,h4 { letter-spacing: -0.01em; }

/* —— 首页首次入行动画 —— */
.aura-intro-overlay {
  background: linear-gradient(160deg, #1a2218 0%, #2d3a28 40%, #2a2a2a 100%);
  animation: aura-intro-bg-in 0.5s ease-out both;
}

.aura-intro-overlay.aura-intro-exit {
  animation: aura-intro-bg-out 0.45s ease-in forwards;
  pointer-events: none;
}

.aura-intro-content {
  animation: aura-intro-content-in 0.6s ease-out 0.1s both;
}

.aura-intro-content.aura-intro-entered {
  animation: none;
  opacity: 1;
  transform: none;
}

.aura-intro-progress-fill {
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
  animation: aura-intro-progress-fill 2.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

#home-intro.aura-intro-phase-ready .aura-intro-ready-block {
  animation: aura-intro-ready-in 0.45s ease-out both;
}

.aura-intro-ready-block[hidden] {
  display: none !important;
}

.aura-intro-progress-block[hidden] {
  display: none !important;
}

.about-menu-expand {
  animation: aura-fade-in 0.28s ease-out both;
}

.about-menu-rule {
  opacity: 0.85;
}

.nav-about-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.nav-about-dropdown {
  pointer-events: auto;
}

.nav-about-dropdown hr.about-menu-rule {
  margin: 0;
}

.nav-about-menu-item {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.about-tabs-nav .about-tab-btn {
  min-width: 0;
  white-space: nowrap;
}

@media (max-width: 400px) {
  .about-tabs-nav .about-tab-btn {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
    font-size: 0.8125rem;
  }
}

/* 非活动相册示意图标注 */
.ai-photo-wrap {
  position: relative;
}

.ai-photo-badge {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  z-index: 10;
  padding: 0.2rem 0.5rem;
  border-radius: 0.375rem;
  background: rgba(42, 42, 42, 0.78);
  color: #faf9f6;
  font-size: 0.625rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

@keyframes aura-intro-bg-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes aura-intro-bg-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes aura-intro-content-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes aura-intro-progress-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes aura-intro-ready-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .aura-intro-overlay,
  .aura-intro-content,
  .aura-intro-progress-fill,
  .aura-intro-ready-block {
    animation: none !important;
  }
  .aura-intro-progress-fill {
    transform: scaleX(1);
  }
}
