/* 通用样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Arial', sans-serif;
  width: 100%;
  overflow-x: hidden;
  /* 防止页面宽度超出 */
}

body {
  background-color: #f0f4f8;
  color: #333;
  line-height: 1.6;
  font-family: 'Noto Sans', sans-serif;
}

/* 导航栏样式 */
header {
  background-color: #007bff;
  position: fixed;
  /* 固定在顶部 */
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 15px 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header nav {
  display: flex;
  justify-content: space-between;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin-right: 20px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  padding: 10px 15px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.nav-links a:hover {
  background-color: #0056b3;
}

.language-toggle {
  display: flex;
  align-items: center;
}

.language-toggle button {
  background-color: transparent;
  border: none;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  margin-left: 10px;
  padding: 5px 10px;
  transition: background-color 0.3s ease;
}

.language-toggle button:hover {
  background-color: #0056b3;
  border-radius: 4px;
}

/* 页面内容样式 */
.content {
  /* 调整顶部间距，确保内容不被导航栏遮挡 */
  overflow:hidden;
}

.content section {
  padding: 120px 40px;
  background-color: #FFFFFF;
  text-align: center;
  position: relative;
}

.content section .text {
  position: relative;
  z-index: 10;
  margin: 0 auto;
  max-width: 920px;
  text-align: left;
}

.content h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  color: #007bff;
}

.content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #007bff;
}

.content h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: #007bff;
}


.content p {
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.content ul {
  padding-left: 20px;
  display: flex;
}

.content ul li {
  list-style: none;
  padding: 20px;
  flex: 1;
  background-color: #007bff;
  margin: 20px;
  font-size: 16px;
  color: #FFF;
}

/* 页脚样式 */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  z-index:10;
  position:relative;
}

footer p {
  margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .content {
    padding: 15px;
  }

  .nav-links li {
    margin-right: 10px;
  }

  .nav-links a {
    font-size: 0.9rem;
  }
}

.circle, .square, .arc {
  position: absolute;
  background: none;
  z-index: 1;
  /* 确保在内容后面 */
}

.circle {
  border-radius: 50%;
}

.square {
  transform: rotate(45deg);
}

.arc {
  border-radius: 50%;
  border-style: solid;
}

/* Section 1 (home) 背景样式 */
#home .circle1 {
  width: 300px;
  height: 300px;
  top: -150px;
  left: -150px;
  background: rgba(0, 123, 255, 0.1);
}

#home .square1 {
  width: 200px;
  height: 200px;
  bottom: -100px;
  right: -100px;
  background: rgba(0, 123, 255, 0.2);
}

#home .arc1 {
  width: 400px;
  height: 400px;
  top: 100px;
  left: -200px;
  border-width: 2px;
  border-color: rgba(0, 123, 255, 0.15);
}

/* Section 2 (about) 背景样式 */
#about .circle2 {
  width: 250px;
  height: 250px;
  top: -125px;
  right: -125px;
  background: rgba(0, 123, 255, 0.05);
}

#about .square2 {
  width: 150px;
  height: 150px;
  bottom: -75px;
  left: -75px;
  background: rgba(0, 123, 255, 0.25);
}

#about .arc2 {
  width: 300px;
  height: 300px;
  bottom: 50px;
  right: -150px;
  border-width: 2px;
  border-color: rgba(0, 123, 255, 0.2);
}

/* Section 3 (services) 背景样式 */
#services .circle3 {
  width: 350px;
  height: 350px;
  top: -175px;
  left: -175px;
  background: rgba(0, 123, 255, 0.08);
}

#services .square3 {
  width: 180px;
  height: 180px;
  bottom: -90px;
  right: -90px;
  background: rgba(0, 123, 255, 0.3);
}

#services .arc3 {
  width: 450px;
  height: 450px;
  top: 50px;
  right: -225px;
  border-width: 2px;
  border-color: rgba(0, 123, 255, 0.12);
}

/* Section 4 (contact) 背景样式 */
#contact .circle4 {
  width: 200px;
  height: 200px;
  top: -100px;
  left: -100px;
  background: rgba(0, 123, 255, 0.07);
}

#contact .square4 {
  width: 120px;
  height: 120px;
  bottom: -60px;
  right: -60px;
  background: rgba(0, 123, 255, 0.18);
}

#contact .arc4 {
  width: 300px;
  height: 300px;
  bottom: 30px;
  left: -150px;
  border-width: 2px;
  border-color: rgba(0, 123, 255, 0.22);
}