:root {
  --wa: #25d366;
  --wa-dark: #1da851;
  --dark: #1a1a1a;
  --white: #fff;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body { background: #111; }

.page {
  position: relative;
  height: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 背景 */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.6) 0%,
    rgba(0,0,0,0.2) 30%,
    rgba(0,0,0,0.35) 55%,
    rgba(0,0,0,0.88) 100%
  );
}

/* 顶部栏 */
.top-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(14px + var(--safe-top)) 20px 10px;
}

.brand-name {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.brand-tag {
  display: block;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.65);
  margin-top: 2px;
}

.top-rating {
  padding: 6px 12px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffd700;
  border: 1px solid rgba(255,255,255,0.2);
}

/* 主内容 */
.content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 20px calc(80px + var(--safe-bottom));
  min-height: 0;
}

.top-block {
  padding-top: 4px;
}

.promo-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #ff4444, #cc0000);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 50px;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(255,60,60,0.4);
  animation: pulse-tag 2s ease-in-out infinite;
}

.promo-tag span:first-of-type {
  font-size: 1rem;
}

@keyframes pulse-tag {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.stats-row {
  display: flex;
  gap: 8px;
}

.stat-pill {
  flex: 1;
  text-align: center;
  padding: 10px 6px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
}

.stat-pill strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}

.stat-pill span {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.65);
  margin-top: 2px;
  display: block;
}

.bottom-block {
  padding-bottom: 4px;
}

.headline {
  font-size: clamp(1.6rem, 6.5vw, 2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 8px;
  white-space: pre-line;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 14px;
  line-height: 1.5;
}

.highlights {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.highlights li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.1);
  border-radius: 50px;
  color: rgba(255,255,255,0.9);
  font-size: 0.78rem;
  border: 1px solid rgba(255,255,255,0.12);
}

.highlights li::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: var(--wa);
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 700;
  flex-shrink: 0;
}

.hint {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}

/* WhatsApp 按钮 */
.btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  background: var(--wa);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.15s, background 0.15s;
  -webkit-user-select: none;
  user-select: none;
}

.btn-wa:active {
  transform: scale(0.97);
  background: var(--wa-dark);
}

/* 底部固定栏 */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 10px 16px calc(10px + var(--safe-bottom));
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.bottom-cta {
  font-size: 1rem;
  padding: 14px 20px;
}

/* 弹窗 */
.popup-mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.popup-mask.show {
  opacity: 1;
  visibility: visible;
}

.popup-sheet {
  width: 100%;
  background: var(--white);
  border-radius: 20px 20px 0 0;
  padding: 12px 24px calc(28px + var(--safe-bottom));
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.popup-mask.show .popup-sheet {
  transform: translateY(0);
}

.popup-handle {
  width: 40px;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  margin: 0 auto 20px;
}

.popup-icon {
  text-align: center;
  margin-bottom: 16px;
}

.popup-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
  text-align: center;
  margin-bottom: 10px;
}

.popup-msg {
  font-size: 0.95rem;
  color: #666;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 24px;
}

.popup-btn {
  margin-bottom: 12px;
  animation: pulse-btn 1.5s ease-in-out infinite;
}

@keyframes pulse-btn {
  0%, 100% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 6px 32px rgba(37, 211, 102, 0.7); }
}

.popup-dismiss {
  display: block;
  width: 100%;
  padding: 12px;
  background: none;
  border: none;
  color: #999;
  font-size: 0.9rem;
  cursor: pointer;
}

.hidden { display: none !important; }
