﻿body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #0e0e2c;
  color: #fff;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

header.header {
  padding: 2rem 1rem;
  text-align: center;
  background: linear-gradient(135deg, #1e90ff, #00bcd4);
  color: #fff;
}

header.header h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

header.header p {
  font-size: 1.2rem;
}

main {
  flex: 1;
  padding: 2rem 1rem;
  max-width: 800px;
  margin: 0 auto;
}

section {
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #00d8ff;
}

ul {
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

button {
  background: linear-gradient(to right, #00c6ff, #0072ff);
  border: none;
  color: white;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: linear-gradient(to right, #0072ff, #00c6ff);
}

.signal-card {
  background: #1a1a40;
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.examples ul {
  list-style: square inside;
  padding: 0;
}

footer.footer {
  text-align: center;
  padding: 1rem;
  background: #111;
  font-size: 0.9rem;
  margin-top: auto;
}

footer.footer a {
  color: #00d8ff;
  text-decoration: none;
}

.floating-chat {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  margin-left: 40px;
}

/* .floating-chat a {
  display: flex;
  align-items: center;
  background: #25d366;
  padding: 0.6rem 1rem;
  border-radius: 30px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
} */

.floating-chat a {
  display: flex;
  align-items: center;
  background: linear-gradient(to right, #25d366, #7e0c1b); /* 初始背景颜色 */
  background-size: 200% 100%; /* 扩展背景的尺寸以便动画 */
  animation: gradientAnimation 3s ease infinite; /* 动画效果 */
  padding: 0.6rem 1rem;
  border-radius: 30px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
}

/* 定义动画 */
@keyframes gradientAnimation {
  0% {
    background-position: 100% 0;
  }
  50% {
    background-position: 0 0;
  }
  100% {
    background-position: 100% 0;
  }
}



.floating-chat img {
  margin-right: 0.5rem;
}

.joined-count {
  text-align: center;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.07);
  padding: 1rem;
  border-radius: 10px;
}

/* 背景粒子动画容器（可选） */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 提高内容层级 */
header, main, footer, .floating-chat {
  position: relative;
  z-index: 1;
}
