/* 项目帮客官网 — 布局参照 xiangmubb.com，主色为企谈蓝系 */
:root {
  --blue-50: #e8f4ff;
  --blue-100: #cce6ff;
  --blue-400: #4da3ff;
  --blue-500: #1890ff;
  --blue-600: #1677d9;
  --blue-700: #0f5fb8;
  --blue-900: #123a6b;
  --ink: #1a2332;
  --muted: #5a6a7a;
  --line: #e6eef6;
  --white: #ffffff;
  --footer: #121820;
  --footer-2: #1c2430;
  --radius: 16px;
  --max: 1120px;
  --font-display: "Outfit", "Noto Sans SC", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  background: var(--white);
}

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

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

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

/* Nav */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

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

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

.nav-links a {
  padding: 8px 16px;
  font-size: 1rem;
  color: var(--ink);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--blue-600);
  background: var(--blue-50);
}

.nav-links a.active {
  color: var(--blue-600);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--blue-500);
  border-radius: 0;
  background: transparent;
}

.nav-cta {
  margin-left: 8px;
  padding: 10px 18px !important;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: #fff !important;
  font-weight: 600;
  border-radius: 999px !important;
  box-shadow: none !important;
}

.nav-cta:hover {
  filter: brightness(1.05);
  color: #fff !important;
  background: linear-gradient(135deg, var(--blue-400), var(--blue-600)) !important;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(72vh, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(77, 163, 255, 0.45), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(15, 95, 184, 0.5), transparent 50%),
    linear-gradient(160deg, #0d47a1 0%, #1890ff 48%, #4da3ff 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 64px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,32 C240,64 480,0 720,24 C960,48 1200,64 1440,24 L1440,64 L0,64 Z'/%3E%3C/svg%3E")
    center bottom / 100% 100% no-repeat;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 72px 20px 96px;
  animation: rise 0.8s ease both;
}

.hero-icon {
  width: 132px;
  height: 132px;
  margin: 0 auto 20px;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(0, 40, 100, 0.35);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.hero p {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  opacity: 0.95;
  max-width: 28em;
  margin: 0 auto 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

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

.btn-light {
  background: #fff;
  color: var(--blue-700);
  box-shadow: 0 8px 24px rgba(0, 40, 100, 0.18);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

/* Sections */
.section {
  padding: 88px 0;
}

.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.section-label {
  color: var(--blue-600);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-kicker {
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.section-copy {
  color: var(--muted);
  max-width: 28em;
}

.visual-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  background: linear-gradient(145deg, var(--blue-50), #fff 40%, var(--blue-100));
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(22, 119, 217, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  animation: float-in 0.9s ease both;
}

.visual-card img.app-preview {
  width: min(220px, 70%);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(18, 58, 107, 0.25);
}

.visual-card .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.55;
}

.visual-card .orb-a {
  width: 160px;
  height: 160px;
  background: var(--blue-400);
  top: -40px;
  right: -30px;
}

.visual-card .orb-b {
  width: 120px;
  height: 120px;
  background: var(--blue-100);
  bottom: 20px;
  left: -20px;
}

.band {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(13, 71, 161, 0.88), rgba(24, 144, 255, 0.82)),
    url("../images/app-icon.png") center / cover;
  background-blend-mode: multiply;
}

.band-inner {
  width: min(100% - 40px, 720px);
  padding: 64px 0;
}

.band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}

.band p {
  opacity: 0.92;
}

/* About */
.page-hero {
  padding: 72px 0 40px;
  background: linear-gradient(180deg, var(--blue-50), #fff);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--blue-900);
}

.prose {
  padding: 24px 0 88px;
  max-width: 720px;
}

.prose p {
  margin-bottom: 1em;
  color: var(--muted);
}

.prose h3 {
  margin: 1.2em 0 0.5em;
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 600;
}

.prose ol,
.prose ul {
  margin: 0 0 1em 1.25em;
  color: var(--muted);
}

.prose li {
  margin-bottom: 0.4em;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0 1.5em;
  font-size: 0.88rem;
  color: var(--muted);
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--blue-50);
  color: var(--ink);
  font-weight: 600;
}

.prose .meta {
  color: var(--ink);
  font-weight: 500;
}

.prose .note {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Footer */
.footer {
  background: var(--footer);
  color: #fff;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  padding: 48px 0;
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.footer h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}

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

.qr-box {
  width: 120px;
  height: 120px;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-700);
  font-size: 12px;
  text-align: center;
  line-height: 1.35;
}

.footer-bottom {
  background: var(--footer-2);
  text-align: center;
  padding: 16px;
  font-size: 0.9rem;
  color: #9ca3af;
}

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

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

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .section-split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-split.reverse-mobile .visual-card {
    order: -1;
  }

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

  .nav-cta {
    display: none;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* —— Download / WeChat open-in-browser —— */
.btn-primary {
  background: var(--blue-500);
  color: #fff;
  box-shadow: 0 8px 24px rgba(24, 144, 255, 0.28);
  border: none;
  cursor: pointer;
  font: inherit;
}

.btn-primary:hover {
  background: var(--blue-600);
  color: #fff;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.download-page .download-main {
  width: min(100% - 40px, 420px);
  margin: 48px auto 80px;
  text-align: center;
}

.download-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(18, 58, 107, 0.2);
}

.download-main h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.download-sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.download-actions {
  margin-bottom: 24px;
}

.download-hint {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.download-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.download-meta a {
  color: var(--blue-600);
  text-decoration: underline;
}

.wechat-tip {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  padding: 20px 20px 40px;
}

.wechat-tip-arrow {
  position: absolute;
  top: 8px;
  right: 18px;
  font-size: 42px;
  line-height: 1;
  color: #fff;
  animation: wechat-bounce 1.2s ease-in-out infinite;
}

.wechat-tip-card {
  margin: 72px auto 0;
  max-width: 340px;
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.wechat-tip-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.wechat-tip-desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.wechat-tip-steps {
  text-align: left;
  margin: 0 auto 20px;
  padding-left: 1.4em;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.7;
}

.wechat-tip-note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--blue-600);
}

.qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-caption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 8px;
}

@keyframes wechat-bounce {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(4px, -6px);
  }
}
