/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f5f3f0;
  --card-bg: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #6b6b6b;
  --text-tertiary: #999999;
  --accent: #1a1a1a;
  --accent-light: #e8e6e3;
  --border: #ebebeb;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.08);
  --radius: 20px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Noto Sans SC", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* ===== Layout ===== */
#app {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.main-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  padding: 2rem 1.25rem;
  position: relative;
}

/* ===== Background Orbs ===== */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  will-change: transform;
}

.bg-orb--1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #d4c9b8 0%, transparent 70%);
  top: -10%;
  right: -5%;
  animation: orbFloat1 20s ease-in-out infinite;
}

.bg-orb--2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #c9c2b8 0%, transparent 70%);
  bottom: -8%;
  left: -5%;
  animation: orbFloat2 24s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 20px) scale(1.05); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -25px) scale(1.08); }
}

/* ===== Card ===== */
.card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: cardEnter 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card-accent {
  height: 4px;
  background: linear-gradient(90deg, #1a1a1a 0%, #555555 50%, #1a1a1a 100%);
  background-size: 200% 100%;
  animation: accentSlide 3s ease-in-out infinite;
}

@keyframes accentSlide {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 2rem 2rem;
}

/* ===== Icon ===== */
.icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent);
  color: #ffffff;
  margin-bottom: 1.25rem;
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(26, 26, 26, 0.15); }
  50% { box-shadow: 0 0 0 8px rgba(26, 26, 26, 0); }
}

.icon-headset {
  width: 26px;
  height: 26px;
}

/* ===== Typography ===== */
.title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}

.subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  text-align: center;
}

/* ===== QR Code ===== */
.qrcode-wrap {
  position: relative;
  padding: 16px;
  background: #ffffff;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  margin-bottom: 1.25rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.qrcode-wrap:hover {
  border-color: #d0d0d0;
  box-shadow: var(--shadow-md);
}

.qrcode-img {
  display: block;
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: 4px;
}

/* ===== Hint ===== */
.hint {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.hint::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z'/%3E%3Cpath d='M19 10v2a7 7 0 0 1-14 0v-2'/%3E%3Cline x1='12' y1='19' x2='12' y2='22'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

/* ===== Tags ===== */
.tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--accent-light);
  border-radius: 999px;
  letter-spacing: 0.02em;
  transition: background var(--transition), color var(--transition);
}

.tag:hover {
  background: var(--accent);
  color: #ffffff;
}

/* ===== Footer ===== */
.footer {
  margin-top: 2rem;
  text-align: center;
}

.footer p {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .card-body {
    padding: 2rem 1.5rem 1.5rem;
  }

  .qrcode-img {
    width: 180px;
    height: 180px;
  }

  .title {
    font-size: 1.375rem;
  }
}

@media (min-width: 768px) {
  .card {
    max-width: 400px;
  }

  .qrcode-img {
    width: 220px;
    height: 220px;
  }
}
