/* 万事通找房 · 官网样式 */
:root {
  --blue-950: #0c1f4a;
  --blue-900: #122a5c;
  --blue-800: #163896;
  --blue-700: #1a45b0;
  --blue-600: #3275fa;
  --orange: #f5a623;
  --orange-light: #fdc830;
  --ink: #0f172a;
  --ink-muted: #475569;
  --surface: #f8fafc;
  --surface-2: #eef2f7;
  --white: #ffffff;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-soft: 0 24px 60px rgba(12, 31, 74, 0.12);
  --shadow-card: 0 12px 40px rgba(12, 31, 74, 0.08);
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --header-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(50, 117, 250, 0.35);
}
.btn-primary:hover { background: var(--blue-700); }
.btn-accent {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: var(--blue-950);
  box-shadow: 0 10px 28px rgba(245, 166, 35, 0.35);
}
.btn-accent:hover { filter: brightness(1.05); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.site-header.scrolled {
  background: rgba(12, 31, 74, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 700;
  font-size: 17px;
}
.brand-mark { border-radius: 10px; }
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav a:hover { color: var(--white); }
.header-cta { margin-left: 8px; }
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto;
  background: var(--blue-950);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a { color: var(--white); font-size: 16px; padding: 8px 0; }

/* Hero */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
  background: linear-gradient(145deg, var(--blue-950) 0%, var(--blue-800) 48%, var(--blue-700) 100%);
  color: var(--white);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 22%, rgba(245, 166, 35, 0.18), transparent 42%),
    radial-gradient(circle at 12% 88%, rgba(50, 117, 250, 0.22), transparent 40%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-block: 64px 80px;
}
.hero-kicker {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 10ch;
}
.hero-lead {
  margin-top: 24px;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* Phone mockup */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone-frame {
  width: min(280px, 78vw);
  aspect-ratio: 9 / 18.5;
  background: #0a1020;
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-soft), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  position: relative;
}
.phone-notch {
  width: 96px;
  height: 24px;
  background: #0a1020;
  border-radius: 0 0 16px 16px;
  margin: 0 auto 8px;
}
.phone-screen {
  height: calc(100% - 32px);
  border-radius: 28px;
  background: linear-gradient(180deg, var(--blue-800), var(--blue-950));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}
.phone-logo {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}
.phone-title {
  margin-top: 16px;
  font-size: 20px;
  font-weight: 700;
}
.phone-tagline {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}
.phone-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.phone-chips span {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-float-card {
  position: absolute;
  right: -8px;
  bottom: 18%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  max-width: 180px;
}
.hero-float-card strong { display: block; font-size: 15px; margin-bottom: 4px; }
.hero-float-card span { font-size: 13px; color: var(--ink-muted); }

/* Metrics */
.metrics {
  background: var(--white);
  border-bottom: 1px solid var(--surface-2);
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-block: 48px;
}
.metric {
  padding: 8px 0;
  border-left: 3px solid var(--blue-600);
  padding-left: 20px;
}
.metric-value {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--blue-800);
  letter-spacing: -0.02em;
}
.metric-label {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-muted);
}

/* Sections */
.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.section-head p {
  margin-top: 16px;
  color: var(--ink-muted);
  font-size: 17px;
  max-width: 52ch;
}
.services { padding: 96px 0; background: var(--surface); }
.about { padding: 96px 0; }
.app-download {
  padding: 96px 0;
  background: linear-gradient(180deg, var(--white), var(--surface));
}

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 16px;
}
.bento-cell {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 220px;
  background: var(--blue-800) center / cover no-repeat;
  background-image: var(--bg-image);
}
.bento-large { grid-row: span 2; }
.bento-wide { grid-column: span 2; }
.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(12, 31, 74, 0.88) 100%);
}
.bento-content {
  position: absolute;
  inset: auto 0 0;
  padding: 28px;
  color: var(--white);
}
.bento-content h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
}
.bento-content p {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 36ch;
}

/* App download */
.app-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.app-copy h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
}
.app-copy > p {
  margin-top: 16px;
  color: var(--ink-muted);
  max-width: 48ch;
}
.app-features {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}
.app-features li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
  font-size: 15px;
}
.app-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
}
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--blue-950);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s, background 0.2s;
}
.store-btn:hover { background: var(--blue-800); transform: translateY(-1px); }
.store-btn-outline {
  background: transparent;
  color: var(--blue-800);
  border: 1.5px solid var(--surface-2);
}
.store-btn-outline:hover { background: var(--surface); border-color: var(--blue-600); color: var(--blue-800); }
.app-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-muted);
}
.download-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.qr-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--surface-2);
  position: relative;
}
.qr-card-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: rgba(50, 117, 250, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.qr-card-wechat .qr-card-tag {
  color: #07c160;
  background: rgba(7, 193, 96, 0.12);
}
.qr-card img { margin: 12px auto 0; border-radius: 18px; }
.qr-card > p { margin-top: 16px; font-weight: 600; color: var(--ink); font-size: 15px; }
#qr-canvas {
  display: block;
  margin: 16px auto 0;
  border-radius: var(--radius-sm);
  background: var(--white);
}
.qr-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--blue-600);
  word-break: break-all;
}
.qr-card-wechat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mini-qrcode {
  display: block;
  width: 160px;
  height: 160px;
  margin: 16px auto 0;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--surface-2);
}
.mini-name {
  margin-top: 12px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  letter-spacing: 0.02em;
}
.mini-hint {
  margin-top: 8px !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  color: var(--ink-muted) !important;
  line-height: 1.5;
  max-width: 18ch;
  margin-inline: auto;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: center;
}
.about-image img {
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: var(--shadow-card);
}
.about-copy h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
}
.about-lead {
  margin-top: 16px;
  font-size: 18px;
  color: var(--ink);
  font-weight: 500;
  max-width: 48ch;
}
.about-copy > p:not(.about-lead) {
  margin-top: 16px;
  color: var(--ink-muted);
  max-width: 52ch;
}
.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.value-item {
  padding: 20px;
  background: var(--surface);
  border-radius: var(--radius-md);
}
.value-item h4 {
  font-size: 15px;
  color: var(--blue-800);
}
.value-item p {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* CTA band */
.cta-band {
  padding: 72px 0;
  background: var(--blue-950);
  color: var(--white);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}
.cta-inner p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
}

/* Footer */
.site-footer {
  background: #070f24;
  color: rgba(255, 255, 255, 0.72);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.footer-brand img { border-radius: 12px; }
.footer-brand strong {
  display: block;
  color: var(--white);
  font-size: 17px;
}
.footer-brand span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
}
.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.footer-links h4 {
  color: var(--white);
  font-size: 14px;
  margin-bottom: 12px;
}
.footer-links a {
  display: block;
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
}
.footer-bottom a { color: rgba(255, 255, 255, 0.62); }
.footer-bottom a:hover { color: var(--white); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay { transition-delay: 0.12s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .store-btn { transition: none; }
}

@media (max-width: 1024px) {
  .hero-grid,
  .app-grid,
  .about-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero h1 { max-width: none; }
  .hero-float-card { right: 8%; bottom: 8%; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-large { grid-row: auto; }
  .bento-wide { grid-column: span 2; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .download-cards { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .container { width: min(100% - 32px, 1200px); }
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid { padding-block: 40px 56px; }
  .hero-lead { font-size: 16px; }
  .metrics-grid { grid-template-columns: 1fr; gap: 20px; }
  .bento { grid-template-columns: 1fr; }
  .bento-wide { grid-column: auto; }
  .services, .about, .app-download { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
