*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #07c160;
  --bg: #0f0f13;
  --text: #fff;
  --text-muted: #999;
  --float-bar-h: 68px;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-bottom: 20px;
}

body.has-float-bar {
  padding-bottom: calc(var(--float-bar-h) + 20px);
}

/* Hero */
.hero {
  text-align: center;
  padding: 56px 24px 40px;
  background: linear-gradient(180deg, #1a1040 0%, var(--bg) 100%);
}

.hero h1 {
  font-size: clamp(32px, 8vw, 48px);
  font-weight: 800;
  margin-bottom: 16px;
}

.highlight {
  background: linear-gradient(90deg, #4ade80, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(15px, 4vw, 17px);
  color: var(--text-muted);
  line-height: 1.7;
}

/* Services */
.services {
  max-width: 480px;
  margin: 0 auto;
  padding: 8px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.service-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.service-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}

.service-item p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Contact / QR */
.contact {
  text-align: center;
  padding: 0 24px 32px;
}

.contact-label {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.qr-wrapper {
  display: inline-block;
  background: #fff;
  padding: 16px;
  border-radius: 12px;
}

.qr-code {
  width: 180px;
  height: 180px;
  display: block;
  border-radius: 4px;
  object-fit: contain;
  background: #f0f0f0;
}

.contact-tip {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
}

.scan-steps {
  max-width: 260px;
  margin: 20px auto 0;
  padding-left: 20px;
  text-align: left;
  font-size: 14px;
  color: #ccc;
  line-height: 1.9;
}

.scan-steps li {
  padding-left: 4px;
}

.scan-steps li::marker {
  color: var(--primary);
  font-weight: 600;
}

/* Footer */
.footer {
  text-align: center;
  padding: 16px;
  font-size: 12px;
  color: #555;
}

/* Float bar */
.float-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 10px 16px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: rgba(15, 15, 19, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.float-bar.is-hidden {
  display: none;
}

.float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto;
  height: 48px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 100px;
  -webkit-tap-highlight-color: transparent;
}

.float-btn:active {
  opacity: 0.85;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: rgba(30, 30, 40, 0.95);
  color: #fff;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 100px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 101;
  white-space: nowrap;
}

body.has-float-bar .toast {
  bottom: calc(var(--float-bar-h) + 16px);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 768px) {
  .hero {
    padding: 80px 24px 48px;
  }

  .qr-code {
    width: 200px;
    height: 200px;
  }
}
