/* 宇宙主题色彩方案 */

:root {
  --gold-primary: #D4AF37;
  --gold-light: #F9D949;
  --deep-space-blue: #0F172A;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-600: #475569;
  --nav-height: 70px;
  --nav-height-mobile: 60px;
}

/* 全局字体样式 - 只使用Nunito */
body, h1, h2, h3, h4, h5, h6, p, span, a, button, input, select, textarea, li, label {
  font-family: 'Nunito', sans-serif !important;
}

/* 其他CSS样式保持不变 */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
}

/* 特殊文本样式 */
.text-gradient {
  font-family: 'Playfair Display', serif;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 标题特定样式 */
h1 {
  font-weight: 700;
  letter-spacing: -0.025em;
}

/* 英雄区域标题特殊样式 */
.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
}

/* 背景纹理 */
.bg-ink-texture {
  background-color: var(--deep-space-blue);
  background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" opacity="0.05"%3E%3Cfilter id="a"%3E%3CfeTurbulence type="fractalNoise" baseFrequency=".8" numOctaves="4" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%" height="100%" filter="url(%23a)"/%3E%3C/svg%3E');
  background-size: cover;
}

/* 自定义类 */
.font-display {
  font-family: 'Playfair Display', serif;
}

.font-sans {
  font-family: 'Nunito', sans-serif;
}

/* 响应式导航样式 */
.nav-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--nav-height-mobile);
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .nav-container {
    height: var(--nav-height);
    padding: 0 2rem;
  }
}

.nav-logo {
  grid-column: 1;
  justify-self: start;
}

.nav-toggle {
  grid-column: 3;
  justify-self: end;
  display: block;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

.nav-menu {
  position: fixed;
  top: var(--nav-height-mobile);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--deep-space-blue);
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.nav-menu.active {
  transform: translateX(0);
}

@media (min-width: 768px) {
  .nav-menu {
    position: static;
    grid-column: 2;
    background-color: transparent;
    transform: none;
    display: grid;
    grid-auto-flow: column;
    gap: 2rem;
    padding: 0;
  }
}

/* 图片延迟加载样式 */
.lazy-image {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.lazy-image.loaded {
  opacity: 1;
}

.image-placeholder {
  background-color: var(--slate-200);
  position: relative;
  overflow: hidden;
}

.image-placeholder::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}