/* ===== 基础重置 ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Inter, sans-serif;
  color: #ffffff;
  background: #050b18;
  background-image: radial-gradient(
      ellipse at 20% 10%,
      rgba(99, 102, 241, 0.25) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 90%,
      rgba(0, 212, 255, 0.18) 0%,
      transparent 50%
    ),
    linear-gradient(180deg, #050b18 0%, #0a1628 50%, #0a1628 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.02em;
}

/* ===== 背景装饰 ===== */
.particles-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
  animation: glowFloat 12s ease-in-out infinite;
}

.bg-glow-1 {
  width: 500px;
  height: 500px;
  top: -150px;
  left: -150px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.5), transparent 70%);
}

.bg-glow-2 {
  width: 600px;
  height: 600px;
  bottom: -200px;
  right: -200px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.35), transparent 70%);
  animation-delay: -6s;
}

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

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  z-index: 0;
  pointer-events: none;
}

/* ===== 海报主体 ===== */
.poster {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 48px 32px 40px;
}

/* 顶部品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.5));
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, #00d4ff 0%, #6366f1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.1em;
}

.brand-sub {
  font-size: 14px;
  color: #94a3b8;
  font-weight: 400;
  letter-spacing: 0.3em;
  padding-left: 12px;
  border-left: 1px solid rgba(148, 163, 184, 0.3);
}

/* 主视觉区 */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 36px;
  margin-top: -20px;
}

.hero-icon-wrap {
  position: relative;
  width: 260px;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-glow {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.3) 0%,
    transparent 65%
  );
  filter: blur(20px);
  animation: breathe 4s ease-in-out infinite;
  z-index: -1;
}

.hero-glow-2 {
  width: 180px;
  height: 180px;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.35) 0%,
    transparent 65%
  );
  animation-delay: -2s;
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.hero-icon {
  width: 220px;
  height: auto;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 10px 30px rgba(0, 212, 255, 0.2));
}

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

/* 浮动小邮件 */
.floating-mail {
  position: absolute;
  width: 40px;
  height: 30px;
  opacity: 0.7;
}

.floating-mail svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.5));
}

.mail-1 {
  top: 10%;
  left: -20px;
  animation: mailFloat1 7s ease-in-out infinite;
}

.mail-2 {
  top: 60%;
  right: -10px;
  animation: mailFloat2 8s ease-in-out infinite;
  animation-delay: -1s;
}

.mail-3 {
  bottom: 5%;
  left: 20%;
  width: 32px;
  height: 24px;
  animation: mailFloat3 6s ease-in-out infinite;
  animation-delay: -3s;
}

@keyframes mailFloat1 {
  0%,
  100% {
    transform: translate(0, 0) rotate(-8deg);
    opacity: 0.5;
  }
  50% {
    transform: translate(15px, -10px) rotate(5deg);
    opacity: 0.9;
  }
}

@keyframes mailFloat2 {
  0%,
  100% {
    transform: translate(0, 0) rotate(10deg);
    opacity: 0.4;
  }
  50% {
    transform: translate(-10px, -15px) rotate(-5deg);
    opacity: 0.8;
  }
}

@keyframes mailFloat3 {
  0%,
  100% {
    transform: translate(0, 0) rotate(-3deg);
    opacity: 0.6;
  }
  50% {
    transform: translate(8px, -12px) rotate(6deg);
    opacity: 0.95;
  }
}

/* 大标题 */
.hero-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.06em;
}

.title-line {
  display: block;
  color: #ffffff;
}

.title-accent {
  background: linear-gradient(135deg, #00d4ff 0%, #6366f1 50%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 6s ease infinite;
}

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

.hero-sub {
  font-size: clamp(13px, 1.4vw, 16px);
  color: #94a3b8;
  letter-spacing: 0.4em;
  margin-top: -8px;
}

/* CTA 按钮 */
.cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.15em;
  border: 1px solid rgba(0, 212, 255, 0.5);
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.15) 0%,
    rgba(99, 102, 241, 0.15) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cta-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.4) 0%,
    rgba(99, 102, 241, 0.4) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cta-btn span,
.cta-arrow {
  position: relative;
  z-index: 1;
}

.cta-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(0, 212, 255, 0.8);
}

.cta-btn:hover::before {
  opacity: 1;
}

.cta-btn:hover .cta-arrow {
  transform: translateX(4px);
}

/* 底部特性 */
.features {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #cbd5e1;
  letter-spacing: 0.15em;
}

.feature-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00d4ff;
  box-shadow: 0 0 8px #00d4ff;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}

.feature-divider {
  width: 1px;
  height: 16px;
  background: rgba(148, 163, 184, 0.3);
}

/* 域名 */
.domain {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  letter-spacing: 0.12em;
  font-family: "SF Mono", "JetBrains Mono", Consolas, Monaco, monospace;
  opacity: 0.9;
}

.domain-accent {
  font-weight: 700;
  background: linear-gradient(135deg, #00d4ff 0%, #6366f1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.02em;
}

/* ===== 弹窗 ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 11, 24, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 40px 32px 32px;
  text-align: center;
  background: linear-gradient(180deg, rgba(17, 34, 64, 0.95) 0%, rgba(10, 22, 40, 0.98) 100%);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
              0 0 40px rgba(0, 212, 255, 0.1);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.is-open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

.modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.3));
}

.modal-icon svg {
  width: 36px;
  height: 36px;
}

.modal-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.modal-desc {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

.modal-contact {
  padding: 16px 20px;
  margin-bottom: 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.modal-contact-label {
  display: block;
  font-size: 11px;
  color: #64748b;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.modal-email {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #00d4ff;
  text-decoration: none;
  font-family: "SF Mono", "JetBrains Mono", Consolas, monospace;
  transition: opacity 0.2s ease;
}

.modal-email:hover {
  opacity: 0.8;
}

.modal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.1em;
  border: 1px solid rgba(0, 212, 255, 0.5);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%);
  transition: all 0.3s ease;
}

.modal-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.modal-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
  border-color: rgba(0, 212, 255, 0.8);
}

.modal-btn:hover svg {
  transform: translateX(3px);
}

/* ===== 响应式 ===== */
@media (max-width: 640px) {
  .poster {
    padding: 32px 20px 28px;
  }

  .brand-sub {
    font-size: 12px;
    letter-spacing: 0.2em;
  }

  .hero {
    gap: 28px;
  }

  .hero-icon-wrap {
    width: 200px;
    height: 160px;
  }

  .hero-icon {
    width: 170px;
  }

  .hero-glow {
    width: 180px;
    height: 180px;
  }

  .hero-title {
    font-size: 28px;
    letter-spacing: 0.04em;
  }

  .hero-sub {
    font-size: 12px;
    letter-spacing: 0.3em;
  }

  .cta-btn {
    padding: 12px 28px;
    font-size: 14px;
  }

  .features {
    gap: 16px;
  }

  .feature-item {
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .feature-divider {
    height: 12px;
  }
}

@media (max-height: 600px) {
  .hero {
    gap: 20px;
    margin-top: 0;
  }

  .hero-icon-wrap {
    width: 160px;
    height: 130px;
  }

  .hero-icon {
    width: 140px;
  }
}
