/* 全局基础样式 */
body, html {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  background-color: #ffffff;
  color: #333;
}

canvas#bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
}

/* 顶部导航 */
header {
  position: relative;
  z-index: 2;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  flex-wrap: wrap;
}

header h1 {
  margin: 0;
  font-size: 24px;
  color: #333;
}

header h1 span {
  color: #f56c0c;
}

header .buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* 顶部链接为普通文字样式 */
.buttons a {
  padding: 0;
  font-size: 16px;
  color: #666;
  text-decoration: none;
}

.buttons a:hover {
  text-decoration: underline;
  color: #f56c0c;
}


/* 主体区域 */
main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  min-height: calc(100vh - 160px);
  text-align: center;
}

.robot {
  width: 80px;
  height: 80px;
  background: url("1f916.png") no-repeat center/contain;
  animation: float 3s ease-in-out infinite;
}

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

.slogan {
  margin-top: 16px;
  font-size: 20px;
  color: #333;
  font-weight: bold;
}

.sub-slogan {
  margin-top: 8px;
  font-size: 14px;
  color: #666;
}

/* 主按钮区域，普通链接 + 悬停变按钮 */
.main-buttons {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.main-buttons a {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid #007bff;
  background-color: white;
  color: #007bff;
  transition: 0.3s;
}

.main-buttons a:hover {
  background-color: #007bff;
  color: white;
}


/* 页脚 */
footer {
  text-align: center;
  padding: 16px 10px;
  background-color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  color: #888;
  position: relative;
  z-index: 2;
}

/* 移动端适配 */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  header h1 {
    font-size: 20px;
  }

  header .buttons {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 10px;
  }

  .buttons a {
    font-size: 14px;
    margin-left: 0;
  }

  .slogan {
    font-size: 18px;
  }

  .sub-slogan {
    font-size: 13px;
  }

  .main-buttons a {
    width: 100%;
    text-align: center;
    font-size: 14px;
  }
}
