﻿/* 基本重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f5f5f5;
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  min-height: 100vh;
  padding: 2rem;
}

/* 主内容区域 */
main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.hero-image {
  max-width: 100%;
  height: auto;
}

/* 按钮样式 */
.cta {
  margin: 2rem 0;
}

.pulse-button {
  padding: 1rem 2rem;
  font-size: 1.6rem; /* 增加字体大小 */
  font-weight: bold;
  color: white;
  background-color: #25d366; /* WhatsApp绿色 */
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: pulse 2s infinite;
}

.pulse-button:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* 全宽按钮相关样式 */
.fullwidth-cta {
  width: 100%;
  max-width: 500px; /* 可根据需要调整最大宽度 */
  position: fixed; /* 固定定位使按钮跟随页面滚动 */
  bottom: 88px; /* 距离页面底部的距离 */
  left: 50%; /* 水平居中 */
  transform: translateX(-50%); /* 水平居中微调 */
  z-index: 100; /* 确保按钮在其他内容上方 */
}

.fullwidth-button {
  width: 100%;
  display: block;
  text-align: center;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* 增加阴影以便更明显 */
}

/* 确保在小屏幕上按钮也能很好地显示 */
@media (max-width: 480px) {
  .fullwidth-cta {
    max-width: 100%;
    padding: 0 1rem;
  }
}

/* 底部样式 */
footer {
  width: 100%;
  padding: 1rem 0;
  text-align: center;
}

.legal-links {
  font-size: 0.9rem;
  color: #666;
}

.legal-links a {
  color: #666;
  text-decoration: none;
  margin: 0 0.5rem;
}

.legal-links a:hover {
  text-decoration: underline;
}

.divider {
  color: #ddd;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .pulse-button {
    padding: 0.8rem 1.5rem;
    font-size: 1.3rem; /* 小屏幕上的字体大小调整 */
  }

  .hero-image {
    max-width: 90%;
  }
}
