@charset "utf-8";

:root {
  --primary: #1e6bdc;
  --secondary: #2c3e50;
  --accent: #e74c3c;
  --light-bg: #f8f9fa;
  --border: #e9ecef;
}

body {
  font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
  color: #333;
  overflow-x: hidden;
}


    /* 返回顶部按钮 */
    .back-to-top {
      position: fixed;
      bottom: 30px;
      right: 30px;
      width: 50px;
      height: 50px;
      background: var(--primary);
      color: white;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      visibility: hidden;
      transition: all 0.4s;
      z-index: 999;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .back-to-top.show {
      opacity: 1;
      visibility: visible;
    }

    .back-to-top:hover {
      background: #1557b9;
      transform: translateY(-3px);
    }



/* 浮动导航 */
.floating-nav {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.floating-nav .nav-btn {
  width: 50px;
  height: 50px;
  /* border-radius: 50%; */
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  /* margin-bottom: 15px; */
  cursor: pointer;
  transition: all 0.3s;
  /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); */
  position: relative;
}

.floating-nav .nav-btn:hover {
  background: #1557b9;
  transform: translateY(-3px);
}

.floating-nav .nav-panel {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
  width: 250px;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.floating-nav .nav-panel.show {
  opacity: 1;
  color: var(--primary);
  visibility: visible;
}

.floating-nav .panel-title {
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.floating-nav .contact-info {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.floating-nav .contact-info i {
  color: var(--primary);
  /* color: var(--secondary); */
  margin-right: 10px;
  min-width: 20px;
}

.floating-nav .qrcode-container {
  text-align: center;
  padding: 15px 0;
}

.floating-nav .qrcode-container img {
  width: 120px;
  height: 120px;
  margin: 0 auto 10px;
}

.floating-nav .qrcode-label {
  font-size: 0.9rem;
  color: #777;
}

/* 页脚 */
footer {
  background: var(--secondary);
  color: #aaa;
  padding: 60px 0 30px;
}

.footer-title {
  color: white;
  margin-bottom: 20px;
  font-size: 1.2rem;
  font-weight: 600;
}

.footer-links a {
  display: block;
  color: #aaa;
  margin-bottom: 10px;
  transition: all 0.3s;
}

.footer-links a:hover {
  color: white;
  text-decoration: none;
  padding-left: 5px;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  color: white;
  margin-right: 10px;
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-5px);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 40px;
  text-align: center;
}
