/* 杏吧 xbs.lat — nectar lattice design system */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&family=ZCOOL+QingKe+HuangYou&display=swap");

:root {
  --nx-ink: #13252b;
  --nx-ink-soft: #3a525a;
  --nx-mist: #eef5f4;
  --nx-paper: #f7fbfa;
  --nx-line: rgba(19, 37, 43, 0.1);
  --nx-teal: #1f6f6a;
  --nx-teal-deep: #0f4542;
  --nx-apricot: #e86f3c;
  --nx-apricot-soft: #ffb089;
  --nx-mint: #7ec8b8;
  --nx-glass: rgba(247, 251, 250, 0.72);
  --nx-shadow: 0 18px 48px rgba(15, 69, 66, 0.12);
  --nx-radius: 22px;
  --nx-wrap: min(1120px, calc(100% - 2rem));
  --nx-nav-h: 64px;
  --nx-dock-gap: 8px;
  --nx-font-display: "ZCOOL QingKe HuangYou", "Noto Sans SC", sans-serif;
  --nx-font-body: "Noto Sans SC", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--nx-font-body);
  color: var(--nx-ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(126, 200, 184, 0.35), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(232, 111, 60, 0.18), transparent 50%),
    linear-gradient(180deg, #e8f3f1 0%, var(--nx-paper) 28%, #f3f8f7 100%);
  line-height: 1.85;
  font-size: 16px;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--nx-teal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--nx-apricot);
}

.nx-wrap {
  width: var(--nx-wrap);
  margin-inline: auto;
}

/* —— top promo —— */
.nx-promo {
  background: linear-gradient(90deg, rgba(31, 111, 106, 0.08), rgba(232, 111, 60, 0.08));
  border-bottom: 1px solid var(--nx-line);
  overflow: hidden;
}

.nx-promo iframe {
  display: block;
  width: 100%;
  min-height: 120px;
  border: 0;
  background: transparent;
}

/* —— nav —— */
.nx-topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--nx-glass);
  border-bottom: 1px solid var(--nx-line);
}

.nx-topbar__row {
  height: var(--nx-nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nx-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--nx-ink);
}

.nx-brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(15, 69, 66, 0.18);
}

.nx-brand__word {
  font-family: var(--nx-font-display);
  font-size: 1.55rem;
  letter-spacing: 0.04em;
}

.nx-burger {
  width: 44px;
  height: 44px;
  border: 1px solid var(--nx-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

.nx-burger span {
  width: 18px;
  height: 2px;
  background: var(--nx-ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nx-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nx-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nx-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nx-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: rgba(247, 251, 250, 0.96);
  border-bottom: 1px solid var(--nx-line);
  padding: 0.75rem 1rem 1.1rem;
  box-shadow: var(--nx-shadow);
}

.nx-menu.is-open {
  display: block;
  animation: nx-fade-down 0.28s ease;
}

.nx-menu a {
  display: block;
  padding: 0.7rem 0.85rem;
  text-decoration: none;
  color: var(--nx-ink);
  border-radius: 12px;
  font-weight: 500;
}

.nx-menu a:hover,
.nx-menu a[aria-current="page"] {
  background: rgba(31, 111, 106, 0.1);
  color: var(--nx-teal-deep);
}

@media (min-width: 900px) {
  .nx-burger {
    display: none;
  }

  .nx-menu {
    display: flex !important;
    position: static;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    gap: 0.25rem;
  }

  .nx-menu a {
    padding: 0.45rem 0.85rem;
  }
}

/* —— sticky download dock —— */
.nx-dock {
  position: sticky;
  top: var(--nx-nav-h);
  z-index: 70;
  display: none;
  background: rgba(19, 37, 43, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.55rem 0.75rem;
}

.nx-dock.is-visible {
  display: block;
  animation: nx-fade-down 0.25s ease;
}

.nx-dock__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--nx-dock-gap);
  width: var(--nx-wrap);
  margin-inline: auto;
  justify-items: center;
}

@media (min-width: 900px) {
  .nx-dock__grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

.nx-dock__item {
  width: 100%;
  max-width: 68px;
  text-decoration: none;
  color: #d7e8e5;
  text-align: center;
  font-size: 10px;
  line-height: 1.2;
}

.nx-dock__item img {
  width: 48px;
  height: 48px;
  margin: 0 auto 4px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.nx-dock__item:hover img {
  transform: translateY(-3px) scale(1.04);
}

.nx-dock__item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* —— hero —— */
.nx-hero {
  position: relative;
  overflow: hidden;
  padding: 2.4rem 0 2.8rem;
  isolation: isolate;
}

.nx-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(15, 69, 66, 0.92), rgba(31, 111, 106, 0.78) 48%, rgba(232, 111, 60, 0.55)),
    url("logo-mark.png") right 8% center / min(42vw, 320px) no-repeat;
  z-index: -2;
}

.nx-hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% 20%;
  height: 70%;
  background: radial-gradient(circle, rgba(255, 176, 137, 0.45), transparent 65%);
  filter: blur(10px);
  z-index: -1;
  animation: nx-pulse 6s ease-in-out infinite;
}

.nx-hero__panel {
  color: #f7fbfa;
  max-width: 38rem;
}

.nx-hero__brand {
  font-family: var(--nx-font-display);
  font-size: clamp(2.8rem, 10vw, 4.6rem);
  line-height: 1.05;
  margin: 0 0 0.85rem;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  animation: nx-rise 0.7s ease both;
}

.nx-hero h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.2rem, 3.6vw, 1.65rem);
  font-weight: 700;
  line-height: 1.45;
  animation: nx-rise 0.7s ease 0.08s both;
}

.nx-hero__lead {
  margin: 0;
  font-size: 0.98rem;
  opacity: 0.92;
  max-width: 34rem;
  animation: nx-rise 0.7s ease 0.16s both;
}

/* —— crumbs —— */
.nx-crumb {
  padding: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--nx-ink-soft);
}

.nx-crumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.nx-crumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  opacity: 0.5;
}

.nx-crumb a {
  text-decoration: none;
}

/* —— sections —— */
.nx-section {
  padding: 2.4rem 0;
}

.nx-section h2 {
  font-family: var(--nx-font-display);
  font-size: clamp(1.55rem, 4vw, 2rem);
  margin: 0 0 0.85rem;
  line-height: 1.3;
  color: var(--nx-teal-deep);
}

.nx-section h3 {
  font-size: 1.12rem;
  margin: 1.4rem 0 0.55rem;
  color: var(--nx-ink);
}

.nx-section p {
  margin: 0 0 1rem;
  color: var(--nx-ink-soft);
}

.nx-section p:last-child {
  margin-bottom: 0;
}

.nx-lede {
  font-size: 1.02rem;
  color: var(--nx-ink);
}

/* text block */
.nx-prose {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  padding: 1.35rem 1.25rem;
  box-shadow: 0 10px 30px rgba(15, 69, 66, 0.05);
}

/* media rows */
.nx-split {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 860px) {
  .nx-split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
  }

  .nx-split--flip {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .nx-split--flip .nx-split__media {
    order: 2;
  }
}

.nx-phone {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--nx-shadow);
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: #0f4542;
  transform: translateY(0);
  transition: transform 0.35s ease;
}

.nx-phone:hover {
  transform: translateY(-6px);
}

.nx-phone img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
}

.nx-caption {
  margin-top: 0.55rem;
  font-size: 0.85rem;
  color: var(--nx-ink-soft);
  text-align: center;
}

/* card grids */
.nx-cards {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .nx-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .nx-cards.nx-cards--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.nx-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.85), rgba(238, 245, 244, 0.9));
  border: 1px solid var(--nx-line);
  border-radius: 20px;
  padding: 1.15rem 1.1rem 1.25rem;
  box-shadow: 0 12px 28px rgba(15, 69, 66, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nx-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--nx-shadow);
}

.nx-card h3 {
  margin-top: 0;
  font-family: var(--nx-font-display);
  font-size: 1.25rem;
  color: var(--nx-teal-deep);
}

.nx-card--media img {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 0.85rem;
  aspect-ratio: 9 / 14;
  object-fit: cover;
  object-position: top;
}

/* mosaic tags */
.nx-mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

@media (min-width: 800px) {
  .nx-mosaic {
    grid-template-columns: repeat(4, 1fr);
  }
}

.nx-tile {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
  min-height: 160px;
  box-shadow: 0 10px 24px rgba(15, 69, 66, 0.1);
}

.nx-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  position: absolute;
  inset: 0;
  z-index: -1;
  transition: transform 0.4s ease;
}

.nx-tile:hover img {
  transform: scale(1.06);
}

.nx-tile__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 0.75rem 0.75rem;
  background: linear-gradient(transparent, rgba(15, 69, 66, 0.88));
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

/* ribbon / band */
.nx-band {
  margin: 0.5rem 0;
  padding: 1.6rem 1.25rem;
  border-radius: var(--nx-radius);
  background:
    linear-gradient(120deg, rgba(31, 111, 106, 0.12), rgba(232, 111, 60, 0.12)),
    rgba(255, 255, 255, 0.45);
  border: 1px solid var(--nx-line);
}

.nx-band h2 {
  margin-bottom: 0.5rem;
}

/* timeline */
.nx-steps {
  display: grid;
  gap: 1rem;
  counter-reset: nxstep;
}

.nx-step {
  position: relative;
  padding: 1rem 1rem 1rem 3.2rem;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 16px;
  border: 1px solid var(--nx-line);
}

.nx-step::before {
  counter-increment: nxstep;
  content: counter(nxstep);
  position: absolute;
  left: 0.85rem;
  top: 1rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nx-teal), var(--nx-apricot));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.nx-step h3 {
  margin-top: 0;
}

/* CTA strip (not in hero/nav) */
.nx-cta {
  margin: 1.5rem 0;
  padding: 1.4rem 1.2rem;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--nx-teal-deep), var(--nx-teal) 55%, #c85a2f);
  color: #fff;
  text-align: center;
  box-shadow: var(--nx-shadow);
}

.nx-cta p {
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 1rem;
}

.nx-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: #fff;
  color: var(--nx-teal-deep);
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease;
}

.nx-cta__btn:hover {
  transform: translateY(-2px);
  color: var(--nx-apricot);
}

/* legal pages */
.nx-legal {
  padding-bottom: 3rem;
}

.nx-legal .nx-prose h2 {
  margin-top: 1.6rem;
}

.nx-legal .nx-prose h2:first-child {
  margin-top: 0;
}

.nx-legal ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--nx-ink-soft);
}

.nx-legal li {
  margin-bottom: 0.4rem;
}

/* status pages */
.nx-status {
  min-height: 55vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.nx-status__box {
  max-width: 28rem;
}

.nx-status__code {
  font-family: var(--nx-font-display);
  font-size: clamp(4rem, 18vw, 7rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--nx-teal), var(--nx-apricot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}

.nx-status h1 {
  font-size: 1.35rem;
  margin: 0.5rem 0 0.75rem;
}

.nx-status p {
  color: var(--nx-ink-soft);
  margin: 0 0 1.25rem;
}

.nx-status__link {
  display: inline-flex;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  background: var(--nx-teal);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

/* footer */
.nx-foot {
  margin-top: 2rem;
  border-top: 1px solid var(--nx-line);
  background: rgba(15, 69, 66, 0.94);
  color: #d7e8e5;
  padding: 2rem 0 2.4rem;
}

.nx-foot a {
  color: #d7e8e5;
  text-decoration: none;
}

.nx-foot a:hover {
  color: var(--nx-apricot-soft);
}

.nx-foot__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-family: var(--nx-font-display);
  font-size: 1.35rem;
}

.nx-foot__brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nx-foot__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin-bottom: 1.1rem;
}

.nx-foot__copy {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.75;
}

/* animations */
@keyframes nx-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes nx-fade-down {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes nx-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
