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

body {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #333;
  background: #fafafa;
}

/* ===== 导航 ===== */
header {
  background: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  font-size: 22px;
  font-weight: 700;
  color: #2e7d32;
}
.logo span {
  color: #555;
  font-weight: 400;
  font-size: 14px;
  margin-left: 6px;
}

/* ===== 英雄区 ===== */
.hero {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  text-align: center;
  padding: 20px 10px 5px;
}
.hero h1 {
  font-size: 34px;
  color: #1b5e20;
  margin-bottom: 12px;
}
.hero p {
  font-size: 16px;
  color: #388e3c;
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ========== 中间内容（自动填满剩余空间） ========== */
main {
  flex: 1;  /* ← 关键！自动撑满剩余空间 */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ===== 服务卡片 ===== */
.services {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  max-width: 1000px;
  margin: 0 auto;
  /* 不设固定高度，让flex:1自动分配 */
}
.section-title {
  font-size: 22px;
}

.card {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 260px;
  padding: 20px 24px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.card .icon {
  font-size: clamp(36px, 10vw, 52px);
  margin-bottom: 10px;
}

.card h3 {
  font-size: clamp(16px, 5vw, 20px);
  color: #2e7d32;
  margin-bottom: 6px;
}

.card p {
  font-size: clamp(12px, 3.5vw, 14px);
  color: #777;
  line-height: 1.5;
}

/* ===== 底部绿色条 ===== */
footer {
  background: #2e7d32;
  color: #fff;
  text-align: center;
  padding: 22px 20px;
  position: sticky;
  bottom: 0;
  box-shadow: 0 -4px 14px rgba(46, 125, 50, 0.4);
  z-index: 99;
}
footer p {
  margin-bottom: 10px;
  font-size: 16px;
}
footer a.wechat-btn {
  display: inline-block;
  background: #fff;
  color: #2e7d32;
  padding: 14px 48px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  transition: 0.3s;
  cursor: pointer;
}
footer a.wechat-btn:hover {
  background: #c8e6c9;
  transform: scale(1.03);
}

/* ===== 弹窗 ===== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active {
  display: flex;
}
.modal-box {
  background: #fff;
  border-radius: 20px;
  padding: 40px 34px;
  text-align: center;
  max-width: 340px;
  width: 90%;
  position: relative;
  animation: pop 0.3s ease;
}
@keyframes pop {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.modal-box h2 {
  color: #2e7d32;
  font-size: 22px;
  margin-bottom: 8px;
}
.modal-box p {
  color: #777;
  font-size: 14px;
  margin-bottom: 18px;
}
.modal-box .qr-placeholder {
  width: 200px;
  height: 200px;
  margin: 0 auto 16px;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
}
.modal-box .qr-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.modal-box .copy-btn {
  display: inline-block;
  background: #2e7d32;
  color: #fff;
  padding: 10px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover {
  color: #333;
}

/* ===== 响应式 ===== */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 26px;
  }
}
