/* 原上文化 · 基础层 */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans SC Variable", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-locked { overflow: hidden; }

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
img, svg { display: block; }
img { max-width: 100%; }
::selection { background: #c9d67a; color: #102319; }

.wrap { width: min(1320px, calc(100% - 96px)); margin-inline: auto; }

.ico {
  width: 1em;
  height: 1em;
  flex: none;
  stroke-width: 3;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* 滚动显现 */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0s);
}
html:not(.js) [data-reveal] { opacity: 1; transform: none; transition: none; }
[data-reveal].is-in { opacity: 1; transform: none; }

/* 跑马灯 */
.marquee { overflow: hidden; }
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 轻提示 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 100px;
  background: #14251a;
  color: #f4f0e3;
  font-size: 13.5px;
  letter-spacing: .02em;
  box-shadow: 0 18px 50px rgba(10,22,15,.28);
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: .45s cubic-bezier(.2,.8,.2,1);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.toast__dot { width: 7px; height: 7px; border-radius: 50%; background: #c9d67a; box-shadow: 0 0 0 4px rgba(201,214,122,.18); }
.toast[data-type="warn"] .toast__dot { background: #e6c36a; }

@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
