/* ===== 视频背景：完整显示1920×1080画面 ===== */
.bg-video {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  object-fit: contain;
  object-position: center center;
  background: #000;
}

.bg-overlay {
  position: fixed;
  inset: 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;
}

html,
body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  color: #fff;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;

  background-color: #000;
  background-image: url("bg-poster.jpg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;

  -webkit-font-smoothing: antialiased;
}

.page {
  position: relative;
  z-index: 1;

  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;

  padding: 20px;
}

/* ===== 淡紫色渐变确认框 ===== */
.card {
  position: relative;
  z-index: 10;
  isolation: isolate;
  overflow: hidden;

  width: 100%;
  max-width: 400px;
  padding: 32px 28px;

  text-align: center;

  /* 第一层：卡片主体 */
  /* 第二层：渐变描边 */
  background:
    linear-gradient(
      to bottom,
      rgba(218, 202, 250, 0.88) 0%,
      rgba(184, 151, 232, 0.9) 48%,
      rgba(118, 79, 177, 0.93) 100%
    ) padding-box,
    linear-gradient(
      135deg,
      rgba(255, 228, 152, 0.95),
      rgba(255, 140, 188, 0.95),
      rgba(184, 139, 255, 0.9),
      rgba(255, 228, 152, 0.95)
    ) border-box;

  border: 1.5px solid transparent;
  border-radius: 22px;

  box-shadow:
    0 25px 70px rgba(27, 13, 54, 0.5),
    0 0 40px rgba(184, 139, 255, 0.25),
    0 0 22px rgba(255, 140, 188, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);

  backdrop-filter: blur(12px) saturate(135%);
  -webkit-backdrop-filter: blur(12px) saturate(135%);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

/* 卡片顶部浅紫色柔光 */
.card::before {
  content: "";

  position: absolute;
  top: -160px;
  left: 50%;
  z-index: 0;

  width: 340px;
  height: 340px;

  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.34) 0%,
    rgba(237, 221, 255, 0.2) 35%,
    rgba(207, 174, 255, 0.08) 52%,
    transparent 72%
  );

  transform: translateX(-50%);
  pointer-events: none;
}

/* 卡片内部斜向高光 */
.card::after {
  content: "";

  position: absolute;
  inset: 1px;
  z-index: 0;

  border-radius: 20px;

  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.2),
    transparent 32%,
    transparent 68%,
    rgba(255, 180, 220, 0.08)
  );

  pointer-events: none;
}

/* 让文字、域名和按钮显示在光效上层 */
.card > * {
  position: relative;
  z-index: 1;
}

/* HTML中的card alt使用相同渐变 */
.card.alt {
  background:
    linear-gradient(
      to bottom,
      rgba(218, 202, 250, 0.88) 0%,
      rgba(184, 151, 232, 0.9) 48%,
      rgba(118, 79, 177, 0.93) 100%
    ) padding-box,
    linear-gradient(
      135deg,
      rgba(255, 228, 152, 0.95),
      rgba(255, 140, 188, 0.95),
      rgba(184, 139, 255, 0.9),
      rgba(255, 228, 152, 0.95)
    ) border-box;
}

/* 桌面端卡片悬浮效果 */
@media (hover: hover) {
  .card:hover {
    transform: translateY(-5px) scale(1.01);

    box-shadow:
      0 32px 90px rgba(27, 13, 54, 0.58),
      0 0 55px rgba(184, 139, 255, 0.35),
      0 0 25px rgba(255, 140, 188, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.48);
  }
}

/* ===== 顶部标签 ===== */
.badge {
  display: inline-block;

  padding: 5px 12px;
  margin-bottom: 16px;

  color: #fff3bd;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;

  background: rgba(93, 52, 153, 0.28);
  border: 1px solid rgba(255, 228, 152, 0.6);
  border-radius: 20px;

  box-shadow: 0 4px 14px rgba(75, 37, 130, 0.16);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.badge.alt {
  color: #fff3bd;
  background: rgba(93, 52, 153, 0.28);
  border-color: rgba(255, 228, 152, 0.6);
}

/* ===== 标题文字 ===== */
h1 {
  margin-bottom: 14px;

  color: #fff;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;

  text-shadow:
    0 2px 7px rgba(51, 20, 93, 0.75),
    0 0 16px rgba(96, 45, 156, 0.28);
}

/* ===== 提示文字 ===== */
p {
  margin-bottom: 22px;

  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  line-height: 1.65;

  text-shadow:
    0 1px 4px rgba(45, 16, 86, 0.75),
    0 0 10px rgba(45, 16, 86, 0.2);
}

/* ===== 永久域名区域 ===== */
.domain-box {
  position: relative;
  z-index: 1;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;

  margin: -4px 0 20px;
  padding: 12px 16px;

  background: linear-gradient(
    to bottom,
    rgba(91, 50, 150, 0.32),
    rgba(72, 36, 128, 0.24)
  );

  border: 1px solid rgba(255, 232, 168, 0.5);
  border-radius: 12px;

  box-shadow:
    0 8px 20px rgba(48, 20, 91, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* 永久域名标签 */
.domain-label {
  color: rgba(255, 244, 205, 0.9);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
}

/* 永久域名链接 */
.domain-link {
  color: #fff3bd;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.03em;
  text-decoration: none;

  text-shadow:
    0 2px 6px rgba(52, 20, 94, 0.6),
    0 0 14px rgba(255, 228, 152, 0.22);

  transition:
    color 0.2s,
    transform 0.2s,
    text-shadow 0.2s;
}

.domain-link:hover {
  color: #fff;
  transform: translateY(-1px);

  text-shadow:
    0 2px 8px rgba(52, 20, 94, 0.7),
    0 0 18px rgba(255, 228, 152, 0.45);
}

/* 收藏提示 */
.domain-tip {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  letter-spacing: 0.04em;
}

/* ===== 按钮区域 ===== */
.actions {
  display: flex;
  flex-direction: column;
  gap: 9px;

  margin-bottom: 20px;
}

.btn {
  padding: 12px 22px;

  border: none;
  border-radius: 10px;

  font-family: inherit;
  font-size: 14px;
  font-weight: 500;

  cursor: pointer;

  transition:
    transform 0.2s,
    color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}

/* 主要按钮 */
.btn.primary {
  color: #fff;

  background: linear-gradient(
    135deg,
    #9b6bdb 0%,
    #c281e8 48%,
    #e69ac8 100%
  );

  box-shadow:
    0 5px 16px rgba(99, 50, 161, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn.primary:hover {
  transform: translateY(-1px);

  box-shadow:
    0 9px 24px rgba(99, 50, 161, 0.46),
    0 0 18px rgba(230, 154, 200, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.btn.primary.alt {
  color: #fff;

  background: linear-gradient(
    135deg,
    #9b6bdb 0%,
    #c281e8 48%,
    #e69ac8 100%
  );

  box-shadow:
    0 5px 16px rgba(99, 50, 161, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn.primary.alt:hover {
  transform: translateY(-1px);

  box-shadow:
    0 9px 24px rgba(99, 50, 161, 0.46),
    0 0 18px rgba(230, 154, 200, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

/* 次要按钮 */
.btn.ghost {
  color: rgba(255, 255, 255, 0.88);

  background: rgba(75, 38, 126, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.3);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn.ghost:hover {
  color: #fff;
  background: rgba(75, 38, 126, 0.36);
}

/* ===== 底部文字 ===== */
.footer-text {
  margin-bottom: 0;

  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  letter-spacing: 0.05em;
}

/* ===== Slogan图片：固定在右侧 ===== */
.side-image {
  position: absolute;
  top: 50%;
  right: 20px;
  z-index: 1;

  width: 420px;
  max-width: 40vw;
  height: auto;

  filter: drop-shadow(
    0 8px 24px rgba(0, 0, 0, 0.35)
  );

  transform: translateY(-50%);

  animation:
    float 3.5s ease-in-out infinite;

  pointer-events: none;
}

/* Slogan浮动动画 */
@keyframes float {
  0%,
  100% {
    transform: translateY(-50%);
  }

  50% {
    transform: translateY(
      calc(-50% - 12px)
    );
  }
}

/* ===== 平板及窄屏适配 ===== */
@media (max-width: 900px) {
  .page {
    flex-direction: column;
  }

  .side-image {
    position: static;

    display: block;

    width: 200px;
    max-width: 60vw;
    height: auto;

    margin: 0 auto 20px;

    transform: none;

    animation:
      floatMobile 3.5s
      ease-in-out infinite;
  }

  @keyframes floatMobile {
    0%,
    100% {
      transform: translateY(0);
    }

    50% {
      transform: translateY(-8px);
    }
  }
}

/* ===== 移动端：隐藏视频，使用静态封面 ===== */
@media (max-width: 768px) {
  .bg-video {
    display: none;
  }

  body {
    background-color: #000;
    background-size: contain;
    background-position: center;
  }
}

/* ===== 小屏手机适配 ===== */
@media (max-width: 480px) {
  .card {
    max-width: 340px;
    padding: 26px 22px;
    border-radius: 18px;
  }

  .card::after {
    border-radius: 16px;
  }

  .domain-box {
    padding: 11px 14px;
    margin-bottom: 17px;
  }

  .domain-link {
    font-size: 18px;
  }

  h1 {
    font-size: 19px;
  }

  p {
    font-size: 12.5px;
  }
}

/* ===== 减少动画偏好 ===== */
@media (prefers-reduced-motion: reduce) {
  .card,
  .side-image,
  .btn,
  .domain-link {
    animation: none;
    transition: none;
  }
}