@font-face {
  font-family: "Noto Serif SC";
  src: url("./fonts/NotoSerifSC-113.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #f4efe7;
  --bg-deep: #0f1720;
  --surface: rgba(255, 255, 255, 0.6);
  --surface-strong: #fffdf9;
  --line: rgba(15, 23, 32, 0.12);
  --text: #16191d;
  --muted: #5f646d;
  --accent: #d97b2d;
  --accent-soft: #ffe4c8;
  --accent-deep: #9f4d14;
  --green: #25483d;
  --shadow: 0 24px 60px rgba(35, 29, 18, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Outfit", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(217, 123, 45, 0.14), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(37, 72, 61, 0.18), transparent 22%),
    linear-gradient(180deg, #f7f1e8 0%, #f3eee6 45%, #efe7dc 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 70%);
}

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding-bottom: 48px;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(250, 245, 237, 0.75);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(32, 24, 15, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 18px rgba(32, 24, 15, 0.12);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1rem;
}

.brand-text span {
  font-size: 0.82rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 24px;
}

.site-nav a,
.nav-cta,
.button {
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  transform: translateY(-1px);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.nav-cta {
  padding: 12px 18px;
  background: var(--bg-deep);
  color: #fff;
}

.nav-cta-secondary {
  color: var(--bg-deep);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.nav-cta:hover,
.button-primary:hover {
  transform: translateY(-2px);
  background: #1c2734;
}

.nav-cta-secondary:hover,
.nav-cta-secondary:focus-visible {
  background: var(--accent-soft);
}

.nav-cta-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-deep);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button {
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
}

.button-primary {
  background: var(--bg-deep);
  color: #fff;
}

.button-secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.button-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 23, 32, 0.22);
}

.site-footer {
  padding: 8px 0 18px;
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  text-align: center;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--text);
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(15, 23, 32, 0.12);
  border-radius: 999px;
  background: rgba(250, 245, 237, 0.92);
  color: var(--bg-deep);
  box-shadow: 0 14px 34px rgba(32, 24, 15, 0.14);
  backdrop-filter: blur(12px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease, background-color 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: rgba(255, 252, 247, 0.98);
  transform: translateY(-2px);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
  transition: opacity 700ms ease, transform 700ms ease, filter 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
    border-radius: 28px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .site-header {
    gap: 14px;
    padding: 14px;
  }

  .brand {
    width: 100%;
  }

  .nav-cta-group {
    width: 100%;
    flex-wrap: wrap;
  }

  .nav-cta {
    width: 100%;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    filter: none;
    transition: opacity 300ms ease, transform 300ms ease;
  }

  .back-to-top {
    transition: opacity 180ms ease;
    transform: none;
  }

  .back-to-top:hover,
  .back-to-top:focus-visible {
    transform: none;
  }
}
