/* 重置默认样式 */
.server-rule-card {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  transition: transform 0.3s ease;
  border: 1px solid #ddd;
}

.server-rule-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.server-rule-card h3 {
  color: #333;
  margin-top: 0;
  font-size: 24px;
  margin-bottom: 10px;
}

.server-rule-card p {
  color: #666;
  margin-bottom: 10px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Comic Sans MS", cursive, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f7f7f7;
  background-image: url('img/bj.jpg');
  background-size: cover;
  background-repeat: no-repeat;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
}

h1 {
  color: #333;
  text-align: center;
  margin-top: 0;
  padding-top: 20px;
  font-size: 36px;
}

nav {
  background-color: rgba(255, 255, 255, 0.8); /* 设置导航栏为半透明白色背景 */
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 10px;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

nav ul li {
  margin: 0 10px;
}

nav ul li a {
  text-decoration: none;
  color: #fff;
  font-size: 18px;
  padding: 10px;
  transition: background-color 0.3s ease;
  border-radius: 10px;
}

nav ul li a:hover {
  background-color: #ffbf00;
}

.server-card {
  background-color: rgba(255, 255, 255, 0.8); /* 设置服务器卡片为半透明白色背景 */
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 10px;
}

.server-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.server-card h3 {
  color: #333;
  margin-top: 0;
  font-size: 24px;
  margin-bottom: 10px;
  border-radius: 10px;
}

.server-card p {
  color: #666;
  margin-bottom: 10px;
  border-radius: 10px;
}

.visitor-info {
  margin-top: 20px;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.8); /* 设置访客信息为半透明白色背景 */
  color: #fff;
  border-radius: 10px;
  text-align: center;
}

.visitor-info p {
  margin: 0;
  font-size: 18px;
}

section {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ddd;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.8); /* 设置栏目为半透明白色背景 */
}

footer {
  text-align: center;
  color: #666;
  padding: 10px;
  background-color: rgba(51, 51, 51, 0.8); /* 设置页脚为半透明黑色背景 */
  border-radius: 10px;
}

footer p {
  margin: 0;
}

footer a {
  color: #666;
  text-decoration: none;
}

footer a:hover {
  color: #fff;
}
