/* ===== 视频背景 ===== */
.bg-video {
  position: fixed;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: -2;
  object-fit: cover;
}

.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.03);
  z-index: -1;
  pointer-events: none;
}

/* ===== 基础样式 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  background-image: url('bg-poster.jpg');     /* 加这一行 */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  z-index: 1;
}

/* ===== 毛玻璃卡片 ===== */
.card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 28px 26px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;       /* ← 加这一行 */
  z-index: 10;              /* ← 加这一行 */
}

.card.alt {
  background: rgba(255, 240, 220, 0.08);
  border-color: rgba(255, 200, 130, 0.25);
}

.badge {
  display: inline-block;
  background: rgba(255, 77, 79, 0.18);
  color: #ff9a9c;
  border: 1px solid rgba(255, 77, 79, 0.35);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.badge.alt {
  background: rgba(250, 173, 20, 0.18);
  color: #ffd666;
  border-color: rgba(250, 173, 20, 0.35);
}

h1 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);   /* 加文字阴影,确保可读性 */
}

p {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);             /* 文字稍微提亮 */
  margin-bottom: 22px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 20px;
}

.btn {
  padding: 12px 22px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.btn.primary {
  background: linear-gradient(135deg, #1677ff 0%, #4096ff 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(22, 119, 255, 0.3);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(22, 119, 255, 0.5);
}

.btn.primary.alt {
  background: linear-gradient(135deg, #ff6b9d 0%, #ffa6c9 100%);
  box-shadow: 0 4px 14px rgba(255, 107, 157, 0.35);
}

.btn.primary.alt:hover {
  box-shadow: 0 8px 20px rgba(255, 107, 157, 0.55);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.05);        /* 加一点点底色,玻璃风更协调 */
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.95);
}

.footer-text {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0;
  letter-spacing: 0.05em;
}

@media (max-width: 480px) {
  .card { padding: 22px 20px; max-width: 340px; }
  h1 { font-size: 19px; }
  p { font-size: 12.5px; }
}

/* ===== 移动端流量友好:< 768px 隐藏视频,降级为静态背景 ===== */
@media (max-width: 768px) {
  .bg-video {
    display: none;
  }
}
/* ===== Slogan 图片 · 固定贴右侧 ===== */
.side-image {
  position: absolute;
  right: 20px;                /* 距离右侧屏幕边框 5% */
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  max-width: 40vw;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
  animation: float 3.5s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;     /* 防止图片遮挡到按钮点击 */
}

@keyframes float {
  0%, 100% { transform: translateY(-50%); }
  50%      { transform: translateY(calc(-50% - 12px)); }
}

/* 移动端:屏幕较窄时,图片显示在卡片上方 */
@media (max-width: 900px) {
  .side-image {
    position: static;
    transform: none;
    animation: floatMobile 3.5s ease-in-out infinite;
    width: 200px;
    max-width: 60vw;
    margin: 0 auto 20px;
    display: block;
  }
  @keyframes floatMobile {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
  }
  .page {
    flex-direction: column;
  }
}