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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  background: #f7f8fa;
  color: #222;
  overflow-x: hidden;
}

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

/* 加载动画 */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s;
}
.loader-circle {
  width: 50px;
  height: 50px;
  border: 4px solid #e6e6e6;
  border-top-color: #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* 导航 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  z-index: 100;
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}
.logo {
  font-size: 20px;
  font-weight: bold;
  color: #007bff;
}
.nav-menu {
  display: flex;
  list-style: none;
  gap: 28px;
}
.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}
.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* 首页 */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #fff;
  text-align: center;
}
.hero-title {
  font-size: 36px;
  margin-bottom: 16px;
  line-height: 1.3;
}
.hero-desc {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.95;
}
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: #fff;
  color: #007bff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s;
}
.btn:hover {
  transform: translateY(-3px);
}

/* 区块 */
.section {
  padding: 80px 0;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}
.section.visible {
  opacity: 1;
  transform: translateY(0);
}
.section-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 40px;
  color: #222;
}

/* 关于 */
.about-content {
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
  font-size: 16px;
  line-height: 1.8;
  color: #555;
}

/* 服务 */
.services {
  background: #fff;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: #f7f8fa;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s;
}
.service-card:hover {
  transform: translateY(-6px);
}
.service-card .icon {
  font-size: 36px;
  margin-bottom: 16px;
}
.service-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
}
.service-card p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

/* 联系 */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.contact-item {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.contact-item h4 {
  margin-bottom: 12px;
  color: #007bff;
}
.qr-placeholder {
  width: 100%;
  height: 140px;
  background: #f0f4ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

/* 底部 */
.footer {
  background: #111;
  color: #ccc;
  text-align: center;
  padding: 30px 0;
  font-size: 14px;
}

/* 手机适配 */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .hero-title {
    font-size: 26px;
  }
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}