:root {
  --primary: #212529;
  --primary-dark: #8A4BD0;
  --secondary: #3980ea;
  --accent: #FEE440;
  --dark: #333333;
  --light: #FFFFFF;
  --success: #00BBF9;
  --warning: #00F5D4;
  --info: #F15BB5;
  --danger: #FF5588;
  --grey: #666666;
  --light-grey: #F8F8F8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700&family=Varela+Round&display=swap');

body {
  font-family: 'Varela Round', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%239C92AC' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: all 0.3s ease;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header styles */
header {
  background-color: white;
  box-shadow: 0 4px 20px rgba(155, 93, 229, 0.2);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--secondary);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-family: 'Baloo 2', cursive;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  position: relative;
  padding-left: 40px;
}

.logo:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;

  background-repeat: no-repeat;
  background-size: contain;
}

.logo span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--dark);
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.nav-links a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 0; /* 原来是3px，改为0即可去掉下划线 */
  bottom: 0;
  left: 0;
  background-color: var(--secondary);
  border-radius: 5px;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover:after {
  width: 100%;
}

.btn {
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: 'Baloo 2', cursive;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  z-index: 1;
  letter-spacing: 0.5px;
}

.btn:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: rgba(255, 255, 255, 0.2);
  transition: height 0.3s ease;
  z-index: -1;
}

.btn:hover:after {
  height: 100%;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

.btn-light {
  background-color: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-light:hover {
  background-color: var(--light);
  transform: translateY(-3px);
}

.btn-secondary {
  background-color: var(--secondary);
  color: white;
}

.btn-secondary:hover {
  background-color: #e04aa3;
  transform: translateY(-3px);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  height: 20px;
  width: 26px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--primary);
  border-radius: 10px;
}

/* Hero section */
.hero {
  padding-top: 7rem;
  padding-bottom: 5rem;
  background-size: cover;
  background-position: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%239B5DE5' fill-opacity='0.15'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15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-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3Cpath d='M6 5V0H5v5H0v1h5v94h1V6h94V5H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-color: #798EF2; /* 统一背景颜色为#798EF2 */
  color: white;
  text-align: center;
  position: relative;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
}

.hero:after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 15px;
  background-color: var(--secondary);
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: 'Baloo 2', cursive;
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1);
  letter-spacing: 1px;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.small-card {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 1.5rem;
  width: 250px;
  backdrop-filter: blur(5px);
  border: 3px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.small-card:hover {
  transform: translateY(-10px) rotate(2deg);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.small-card-icon {
  background-color: white;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.small-card-icon svg {
  width: 35px;
  height: 35px;
  fill: var(--primary);
}

.small-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  font-family: 'Baloo 2', cursive;
  text-align: center;
}

.small-card p {
  text-align: center;
  font-size: 0.95rem;
}

/* Features section */
.features {
  padding: 5rem 0;
  background-color: white;
  position: relative;
}

.features:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background-repeat: no-repeat;
  background-size: cover;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: 'Baloo 2', cursive;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-header h2:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary);
  border-radius: 5px;
}

.section-header p {
  color: var(--grey);
  max-width: 700px;
  margin: 0 auto;
}

.feature-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.feature-card {
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  width: 100%;
  max-width: 350px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 3px solid #f0f0f0;
  position: relative;
}

.feature-card:hover {
  transform: translateY(-10px) rotate(1deg);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--light);
}

.feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon.primary {
  background-color: var(--primary);
  color: white;
}

.feature-icon.success {
  background-color: var(--success);
  color: white;
}

.feature-icon.warning {
  background-color: var(--secondary);
  color: white;
}

.feature-icon svg {
  width: 40px;
  height: 40px;
}

.feature-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  text-align: center;
  font-family: 'Baloo 2', cursive;
  color: var(--primary);
}

.feature-card p {
  color: var(--grey);
  margin-bottom: 1.5rem;
  text-align: center;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.tag {
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
}

.tag.primary {
  background-color: #EFE7FC;
  color: var(--primary);
}

.tag.success {
  background-color: #E7F9FF;
  color: var(--success);
}

.tag.warning {
  background-color: #FFF0F8;
  color: var(--secondary);
}

/* Statistics section */
.statistics {
  padding: 5rem 0;
  background-color: var(--light);
  text-align: center;
  position: relative;
}

.statistics:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23FFFFFF' fill-opacity='1' d='M0,160L48,170.7C96,181,192,203,288,202.7C384,203,480,181,576,154.7C672,128,768,96,864,101.3C960,107,1056,149,1152,165.3C1248,181,1344,171,1392,165.3L1440,160L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: cover;
}

.stat-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  margin: 2rem 0;
}

.stat-item {
  width: 200px;
  background-color: white;
  padding: 2rem 1rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  border: 3px dashed var(--primary);
}

.stat-item:hover {
  transform: scale(1.05);
}

.stat-number {
  font-family: 'Baloo 2', cursive;
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.stat-number:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--secondary);
  border-radius: 5px;
}

.stat-label {
  color: var(--grey);
  font-size: 1.1rem;
  font-weight: 500;
}

/* Footer */
footer {
  background-color: var(--primary);
  color: white;
  padding: 4rem 0 2rem;
  position: relative;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
}

footer:before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%239B5DE5' fill-opacity='1' d='M0,96L48,112C96,128,192,160,288,192C384,224,480,256,576,261.3C672,267,768,245,864,224C960,203,1056,181,1152,186.7C1248,192,1344,224,1392,240L1440,256L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: cover;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-family: 'Baloo 2', cursive;
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-about {
  max-width: 300px;
}

.footer-about p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.footer-links h3 {
  font-family: 'Baloo 2', cursive;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  position: relative;
  display: inline-block;
  color: white; /* 原来是var(--accent)，改为白色 */
}

.footer-links h3:after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--secondary);
  border-radius: 5px;
}

.footer-links h3:after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--secondary);
  border-radius: 5px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 1rem;
  position: relative;
  padding-left: 20px;
}

.footer-links li:before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.2rem;
  color: var(--secondary);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 2px dashed rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* 线路选择弹窗 */
#lineModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

#lineModal div {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 30px;
  border-radius: 20px;
  width: 320px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 3px solid var(--primary);
}

#lineModal h3 {
  font-family: 'Baloo 2', cursive;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary);
  font-size: 1.5rem;
}

#lineModal button {
  width: 100%;
  margin-bottom: 15px;
  padding: 12px;
  border-radius: 50px;
  font-family: 'Baloo 2', cursive;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

#lineModal button:last-child {
  margin-bottom: 0;
}

/* Responsive styles */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .feature-cards {
    gap: 1.5rem;
  }

  .stat-item {
    width: 180px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-wrapper {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 1.5rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
  }

  .nav-wrapper.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .nav-links a:after {
    bottom: -5px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .small-card {
    width: 100%;
    max-width: 300px;
  }

  .feature-card {
    max-width: 100%;
  }

  .footer-content {
    flex-direction: column;
    gap: 3rem;
  }
}

/* 添加额外的响应式支持 */
@media (max-width: 576px) {
  .hero {
    padding-top: 6rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .stat-item {
    width: 150px;
    padding: 1.5rem 1rem;
  }

  .feature-card {
    padding: 1.5rem;
  }
}

/* 添加动画效果 */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.small-card-icon {
  animation: float 3s ease-in-out infinite;
}

.small-card:nth-child(1) .small-card-icon {
  animation-delay: 0s;
}

.small-card:nth-child(2) .small-card-icon {
  animation-delay: 0.5s;
}

.small-card:nth-child(3) .small-card-icon {
  animation-delay: 1s;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(241, 91, 181, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(241, 91, 181, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(241, 91, 181, 0);
  }
}

.btn-primary {
  animation: pulse 2s infinite;
}