:root {
  --gold-50: #fbf7f0;
  --gold-100: #f5ede0;
  --gold-200: #ebd9bf;
  --gold-300: #dec09a;
  --gold-400: #d4a373;
  --gold-500: #c9955e;
  --gold-600: #b07a48;
  --gold-700: #92623d;
  --gold-800: #775036;
  --gold-900: #624330;
  
  --night-50: #f6f6f6;
  --night-100: #e7e7e7;
  --night-200: #d1d1d1;
  --night-300: #b0b0b0;
  --night-400: #888888;
  --night-500: #6d6d6d;
  --night-600: #5d5d5d;
  --night-700: #4f4f4f;
  --night-800: #454545;
  --night-900: #0a0a0a;
  --night-950: #000000;
  
  --font-sans: 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  --font-serif: 'Noto Serif SC', Georgia, serif;
  
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: #000;
  color: #f5f5f5;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: rgba(201, 149, 94, 0.3);
  color: #fff;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #000;
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.animate-fade-in {
  animation: fadeIn 1s ease-out forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-down {
  animation: fadeInDown 0.8s ease-out forwards;
}

.animate-bounce-soft {
  animation: bounceSoft 2s ease-in-out infinite;
}

.animate-glow-pulse {
  animation: glowPulse 3s ease-in-out infinite;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.35s; }
.delay-4 { animation-delay: 0.5s; }
.delay-5 { animation-delay: 0.65s; }
.delay-6 { animation-delay: 0.8s; }

.page-enter {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.stagger-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stagger-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.nav-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0 1.5rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(24px);
  background-color: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

@media (min-width: 768px) {
  .nav-container {
    padding: 0 3rem;
    height: 5rem;
  }
}

.nav-brand {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(245, 245, 245, 0.9);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.nav-brand:hover {
  color: var(--gold-500);
}

.nav-brand img {
      height: 1.75rem;
      width: auto;
      object-fit: contain;
    }

    @media (min-width: 768px) {
      .nav-brand img {
        height: 2.5rem;
      }
    }

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--night-400);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--gold-500);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #f5f5f5;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link svg {
  width: 0.875rem;
  height: 0.875rem;
  margin-right: 0.375rem;
  flex-shrink: 0;
}

.gongan-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  vertical-align: middle;
}

.gongan-icon img {
  height: 0.875rem;
  width: auto;
}

.menu-btn {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 1.25rem;
  height: 1.5px;
  background-color: rgba(245, 245, 245, 0.6);
  transition: background-color 0.3s ease;
}

.menu-btn:hover span {
  background-color: #fff;
}

@media (min-width: 768px) {
  .menu-btn {
    display: none;
  }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s ease;
}

/* 移动端菜单展开态：JS 切换的是真实存在的 .is-open
   （此前 JS 操作的是 .opacity-0 / .pointer-events-none —— 这两个类在本项目 CSS 中并不存在，
    导致点击按钮后菜单始终 opacity:0，表现为「点了没反应」） */
.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none;
  }
}

.mobile-menu a {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: rgba(245, 245, 245, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: var(--gold-500);
}

.gold-divider {
  width: 2.5rem;
  height: 1px;
  background-color: var(--gold-500);
}

.copyright-text {
  font-size: 0.7rem;
  color: var(--night-700);
  line-height: 1.8;
  text-align: center;
}

.copyright-text a {
  color: var(--night-600);
  text-decoration: none;
  transition: color 0.3s ease;
}

.copyright-text a:hover {
  color: var(--gold-500);
}

.footer-quote {
  font-size: 0.875rem;
  color: var(--night-700);
  letter-spacing: 0.05em;
  line-height: 1.6;
}

.footer-quote em {
  color: var(--night-400);
  font-style: normal;
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to right, var(--gold-500), var(--gold-300));
  z-index: 9999;
  transition: width 0.15s ease;
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--night-500);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 100;
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background-color: rgba(201, 149, 94, 0.1);
  border-color: rgba(201, 149, 94, 0.3);
  color: var(--gold-500);
}
