html {
  background: #f2f0eb;
  color: rgb(0 0 0 / 0.87);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

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

/* ────────── Desktop Hero ────────── */
.hero-section {
  background:
    linear-gradient(180deg, #f2f0eb 0%, #edebe9 48%, #f2f0eb 100%);
}

.hero-reference-bg {
  background-image: url("../assets/backgrounds/ningxia-final-bg-20260502.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.gold-line {
  background: linear-gradient(90deg, transparent, rgba(203, 162, 88, 0.8), transparent);
}

/* ────────── Product Shadow (Desktop Only) ────────── */
.product-shadow {
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.14))
          drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.24));
}

.no-scrollbar {
  scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

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

.float-product {
  animation: floatProduct 4.6s ease-in-out infinite;
}

/* ────────── Skip Link ────────── */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 12px 24px;
  border-radius: 50px;
  border: 2px solid #cba258;
  background: #fffaf0;
  color: rgb(0 0 0 / 0.87);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.14),
    0 0 0.5px rgba(0, 0, 0, 0.24);
  transition: top 0.2s ease;
  cursor: pointer;
}

.skip-link:focus {
  top: 16px;
  outline: 2px solid #006241;
  outline-offset: 2px;
}

/* ────────── Back to Top ────────── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 20px;
  z-index: 50;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid #cba258;
  background: rgba(255, 255, 255, 0.94);
  color: #cba258;
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.14),
    0 0 0.5px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
  cursor: pointer;
  animation: fadeInUp 0.36s ease;
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow:
    0 2px 2px rgba(0, 0, 0, 0.14),
    0 1px 1px rgba(0, 0, 0, 0.24);
}

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

/* ────────── Mobile Menu Panel ────────── */
.mobile-menu-panel {
  position: fixed;
  inset: 0;
  top: 64px;
  z-index: 49;
  background: rgba(242, 240, 235, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid #edebe9;
  animation: slideDown 0.24s ease;
}

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

/* ────────── Horizontal Scroll Hint ────────── */
.scroll-hint-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  pointer-events: none;
  z-index: 5;
}

.scroll-hint-right {
  right: 0;
  background: linear-gradient(90deg, transparent, rgba(242, 240, 235, 0.88));
}

/* ────────── Mobile Backgrounds ────────── */
.mobile-hero-bg {
  background-image: url("../assets/backgrounds/ningxia-final-bg-20260502.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.mobile-title-shadow {
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85),
    0 8px 20px rgba(0, 0, 0, 0.10);
}

/* ────────── Reduced Motion ────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ────────── Responsive ────────── */
@media (max-width: 520px) {
  .mobile-hero-bg {
    background-position: center center;
    background-size: auto 100%;
  }
}

@media (min-width: 1024px) {
  .back-to-top {
    right: 32px;
    bottom: 36px;
    width: 52px;
    height: 52px;
  }
}
