/* 南宁蚪邀科技 — 品牌官网 */
:root {
  --ink: #07151a;
  --ink-soft: #1a333c;
  --mist: #e8f2f0;
  --paper: #f7faf9;
  --teal: #0f9a8a;
  --teal-deep: #087568;
  --sky: #1a7fb8;
  --sky-deep: #0d5f8c;
  --sun: #e6a23c;
  --line: rgba(7, 21, 26, 0.08);
  --text: #24363d;
  --muted: #5c737b;
  --white: #ffffff;
  --radius: 18px;
  --nav-h: 72px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
}

.site-nav.is-scrolled {
  background: rgba(7, 21, 26, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.site-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.brand-lockup img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand-lockup span {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(26, 127, 184, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 15% 80%, rgba(15, 154, 138, 0.4), transparent 50%),
    linear-gradient(165deg, #041416 0%, #0a2e34 42%, #0d3d4a 72%, #123a48 100%);
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-atmosphere::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.06) 0 1px, transparent 2px),
    radial-gradient(circle at 80% 60%, rgba(255, 255, 255, 0.05) 0 1px, transparent 2px);
  background-size: 48px 48px, 72px 72px;
  animation: drift 28s linear infinite;
  opacity: 0.5;
}

.hero-wave {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -8%;
  height: 42%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath fill='%23e8f2f0' fill-opacity='0.12' d='M0,192L48,176C96,160,192,128,288,133.3C384,139,480,181,576,186.7C672,192,768,160,864,144C960,128,1056,128,1152,149.3C1248,171,1344,213,1392,234.7L1440,256L1440,320L0,320Z'/%3E%3C/svg%3E")
    center bottom / 100% 100% no-repeat;
  animation: rise 8s ease-in-out infinite alternate;
}

.hero-grid {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: calc(var(--nav-h) + 48px) 0 72px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: end;
}

.hero-copy .brand-mark {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 5.6rem);
  line-height: 1.05;
  letter-spacing: 0.06em;
  margin: 0 0 20px;
  animation: fade-up 0.9s ease both;
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  max-width: 16em;
  animation: fade-up 0.9s 0.12s ease both;
}

.hero-copy p {
  margin: 0 0 32px;
  max-width: 28em;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.02rem;
  animation: fade-up 0.9s 0.22s ease both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: fade-up 0.9s 0.32s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--teal);
  color: #fff;
}

.btn-primary:hover {
  background: var(--teal-deep);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-sky {
  background: var(--sky);
  color: #fff;
}

.btn-sky:hover {
  background: var(--sky-deep);
}

.btn-ink {
  background: var(--ink);
  color: #fff;
}

.btn-ink:hover {
  background: var(--ink-soft);
}

/* Dual phone stage */
.hero-stage {
  position: relative;
  min-height: 420px;
  animation: fade-up 1s 0.2s ease both;
}

.phone {
  position: absolute;
  width: min(220px, 42vw);
  aspect-ratio: 9 / 19;
  border-radius: 28px;
  padding: 10px;
  background: linear-gradient(160deg, #1c2e34, #0b161a);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.phone::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2;
}

.phone-screen {
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #fff;
}

.phone-dy {
  left: 8%;
  bottom: 8%;
  transform: rotate(-8deg);
  z-index: 1;
  animation: float-a 5.5s ease-in-out infinite;
}

.phone-ly {
  right: 4%;
  bottom: 0;
  transform: rotate(7deg);
  z-index: 2;
  animation: float-b 6.2s ease-in-out infinite;
}

.screen-dy {
  background: linear-gradient(180deg, #0b3d38 0%, #0f9a8a 55%, #147a90 100%);
}

.screen-ly {
  background: linear-gradient(180deg, #0a3a55 0%, #1a7fb8 48%, #3a8aa0 100%);
}

.screen-top {
  padding: 28px 14px 10px;
}

.screen-top strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}

.screen-top span {
  font-size: 0.7rem;
  opacity: 0.8;
}

.screen-cards {
  flex: 1;
  padding: 8px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-card {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.72rem;
  backdrop-filter: blur(6px);
}

.mini-card b {
  display: block;
  margin-bottom: 2px;
  font-size: 0.8rem;
}

/* ---------- Section common ---------- */
.section {
  padding: 96px 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 48px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-deep);
  font-weight: 600;
}

.section-head h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--ink);
  letter-spacing: 0.04em;
  font-weight: 400;
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Products overview */
.products {
  background: var(--mist);
  position: relative;
}

.product-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.product-panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 36px 32px 40px;
  min-height: 360px;
  color: #fff;
  isolation: isolate;
}

.product-panel::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% 20%;
  height: 70%;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.35;
  z-index: -1;
}

.product-panel.dy {
  background:
    linear-gradient(145deg, rgba(7, 21, 26, 0.15), transparent 40%),
    linear-gradient(160deg, #065f56, #0f9a8a 55%, #126d7a);
}

.product-panel.dy::after {
  background: #7ff0d8;
}

.product-panel.ly {
  background:
    linear-gradient(145deg, rgba(7, 21, 26, 0.15), transparent 40%),
    linear-gradient(160deg, #0b4d6e, #1a7fb8 55%, #2a7a8c);
}

.product-panel.ly::after {
  background: #8fd0ff;
}

.product-panel .app-name {
  font-family: var(--font-display);
  font-size: 2.4rem;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
}

.product-panel .tagline {
  margin: 0 0 22px;
  opacity: 0.88;
  font-size: 1.02rem;
}

.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.feature-chips span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.82rem;
}

.product-panel .btn {
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
}

.product-panel.dy .btn:hover {
  background: #fff;
}

/* Detail blocks */
.detail {
  background: var(--paper);
}

.detail + .detail {
  padding-top: 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.detail-grid.reverse {
  grid-template-columns: 1.05fr 0.95fr;
}

.detail-grid.reverse .detail-visual {
  order: -1;
}

.detail-copy h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  color: var(--ink);
  letter-spacing: 0.05em;
  font-weight: 400;
}

.detail-copy > p {
  margin: 0 0 24px;
  color: var(--muted);
}

.capability-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.capability-list li {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 12px;
  align-items: start;
}

.capability-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.detail-ly .capability-list li::before {
  background: var(--sky);
}

.capability-list strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 2px;
}

.capability-list span {
  color: var(--muted);
  font-size: 0.95rem;
}

.detail-visual {
  position: relative;
  border-radius: 28px;
  min-height: 380px;
  overflow: hidden;
  background: #0d2a30;
}

.visual-dy {
  background:
    radial-gradient(circle at 70% 20%, rgba(127, 240, 216, 0.35), transparent 40%),
    linear-gradient(160deg, #0a3d38, #116f6a 50%, #0d4a55);
}

.visual-ly {
  background:
    radial-gradient(circle at 30% 80%, rgba(143, 208, 255, 0.35), transparent 45%),
    linear-gradient(160deg, #0a3550, #176a95 50%, #1a5f72);
}

.visual-map {
  position: absolute;
  inset: 0;
  padding: 28px;
  display: grid;
  gap: 12px;
  align-content: center;
}

.scene-tile {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 16px 18px;
  color: #fff;
  transform: translateY(12px);
  opacity: 0;
  animation: tile-in 0.7s ease forwards;
}

.scene-tile:nth-child(1) { animation-delay: 0.1s; }
.scene-tile:nth-child(2) { animation-delay: 0.2s; }
.scene-tile:nth-child(3) { animation-delay: 0.3s; }
.scene-tile:nth-child(4) { animation-delay: 0.4s; }

.scene-tile b {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.scene-tile span {
  font-size: 0.88rem;
  opacity: 0.82;
}

/* Trust strip */
.trust {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.88);
  padding: 64px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-item h4 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: #fff;
  font-weight: 600;
}

.trust-item p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.68);
}

/* About */
.about {
  background: var(--mist);
}

.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.about-layout p {
  color: var(--muted);
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.about-card {
  background: var(--white);
  border-radius: 24px;
  padding: 28px;
  border: 1px solid var(--line);
}

.about-card h4 {
  margin: 0 0 16px;
  font-size: 1.05rem;
  color: var(--ink);
}

.about-card dl {
  margin: 0;
  display: grid;
  gap: 14px;
}

.about-card dt {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 2px;
}

.about-card dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
}

/* Contact */
.contact {
  background: var(--paper);
}

.contact-box {
  border-radius: 28px;
  padding: 40px;
  background:
    radial-gradient(ellipse at 90% 10%, rgba(15, 154, 138, 0.18), transparent 40%),
    radial-gradient(ellipse at 10% 90%, rgba(26, 127, 184, 0.16), transparent 40%),
    linear-gradient(160deg, #fff, #f0f7f6);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

.contact-box h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  font-weight: 400;
}

.contact-box p {
  margin: 0;
  color: var(--muted);
}

.contact-meta {
  display: grid;
  gap: 12px;
}

.contact-meta a,
.contact-meta span {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(7, 21, 26, 0.04);
  font-size: 0.95rem;
  color: var(--ink);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 28px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: center;
  max-width: 420px;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.footer-brand p {
  margin: 0;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 40px;
}

.footer-links h5 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 0.9rem;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.68);
}

.footer-links a:hover {
  color: #fff;
}

.copyright {
  padding-top: 22px;
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}

.copyright img {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: -2px;
  margin-right: 4px;
}

.copyright a:hover {
  color: #fff;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Animations */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float-a {
  0%,
  100% {
    transform: rotate(-8deg) translateY(0);
  }
  50% {
    transform: rotate(-8deg) translateY(-12px);
  }
}

@keyframes float-b {
  0%,
  100% {
    transform: rotate(7deg) translateY(0);
  }
  50% {
    transform: rotate(7deg) translateY(-16px);
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-40px, 20px, 0);
  }
}

@keyframes rise {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-18px);
  }
}

@keyframes tile-in {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .product-pair,
  .detail-grid,
  .detail-grid.reverse,
  .about-layout,
  .contact-box,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid.reverse .detail-visual {
    order: 0;
  }

  .hero-stage {
    min-height: 360px;
    margin-top: 12px;
  }

  .phone {
    width: min(180px, 38vw);
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    right: 16px;
    left: 16px;
    flex-direction: column;
    gap: 0;
    background: rgba(7, 21, 26, 0.96);
    border-radius: 16px;
    padding: 8px;
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 16px;
  }

  .hero-grid {
    padding-bottom: 56px;
  }

  .section {
    padding: 72px 0;
  }

  .product-panel {
    min-height: auto;
    padding: 28px 24px 32px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .contact-box {
    padding: 28px 22px;
  }

  .footer-links {
    width: 100%;
    justify-content: space-between;
  }
}

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