/* ========================================
   明和阳光社区服务 - 官网样式
   ======================================== */

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #20c064;
  --primary-dark: #16a34a;
  --primary-light: #f1fbf4;
  --bg: #f0f2f5;
  --white: #ffffff;
  --text: #1e2938;
  --text-secondary: #4a5664;
  --text-muted: #9aa1ae;
  --red: #f53344;
  --orange: #f34c01;
  --blue: #1e63f8;
  --border: #e8eaed;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.10);
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.section-desc {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ========== Nav ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.nav-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}
.nav-logo-text {
  letter-spacing: 1px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 15px;
  color: var(--text-secondary);
  transition: color 0.2s;
  font-weight: 500;
}
.nav-link:hover {
  color: var(--primary);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 100px 0 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #f1fbf4 0%, #ffffff 40%, #f0f9f3 100%);
  z-index: 0;
}
.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.25;
  pointer-events: none;
}
.hero-shape-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(32,192,100,0.15) 0%, transparent 70%);
  top: -150px;
  right: -100px;
}
.hero-shape-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(30,99,248,0.10) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
}
.hero-shape-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(32,192,100,0.10) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid rgba(32,192,100,0.2);
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 28px;
  box-shadow: 0 2px 12px rgba(32,192,100,0.08);
}
.hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 24px;
  letter-spacing: -1px;
}
.hero-highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 640px;
  margin: 0 auto 40px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 64px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(32,192,100,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(32,192,100,0.45);
}
.btn-outline {
  background: var(--white);
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}
/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 64px;
}
.hero-stat {
  text-align: center;
}
.hero-stat-num {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.hero-stat-num .plus {
  color: var(--primary);
}
.hero-stat-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ========== Features ========== */
.features {
  padding: 100px 0;
  background: var(--white);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  background: #f9fafb;
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid transparent;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--border);
  background: var(--white);
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}
.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ========== Advantages ========== */
.advantages {
  padding: 100px 0;
  background: #f9fafb;
}
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.advantage-item {
  text-align: center;
  padding: 40px 24px;
  background: var(--white);
  border-radius: var(--radius);
  transition: transform 0.3s, box-shadow 0.3s;
}
.advantage-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.advantage-num {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.2;
  margin-bottom: 16px;
  line-height: 1;
}
.advantage-item h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}
.advantage-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ========== How ========== */
.how {
  padding: 100px 0;
  background: var(--white);
}
.how-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}
.how-step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 8px;
}
.how-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
}
.how-step-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.how-step h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}
.how-step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.how-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 54px;
  flex-shrink: 0;
}

/* ========== Download ========== */
.download {
  padding: 100px 0;
  background: #f9fafb;
}
.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  background: var(--white);
  border-radius: 24px;
  padding: 60px 64px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.download-card::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(32,192,100,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.download-left {
  flex: 1;
  position: relative;
  z-index: 1;
}
.download-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.download-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
}
.download-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.download-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 500;
  border-radius: 50px;
}
.download-right {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.qr-wrapper {
  text-align: center;
}
.qr-img {
  width: 140px;
  height: 140px;
  border-radius: 16px;
  margin: 0 auto 16px;
  display: block;
  border: 2px solid rgba(32,192,100,0.15);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.qr-tip {
  font-size: 14px;
  color: var(--text-muted);
}

/* ========== Footer ========== */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.footer-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}
.footer-tagline {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}
.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-col a,
.footer-col span {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--primary);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}
.footer-bottom a {
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}
.footer-bottom a:hover {
  color: rgba(255,255,255,0.6);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 28px;
  }
  .section-desc {
    font-size: 16px;
  }

  /* Nav mobile */
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 16px 0;
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 999;
  }
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
  }
  .nav-link {
    padding: 14px 32px;
    font-size: 16px;
    width: 100%;
  }
  .nav-toggle {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 120px 0 60px;
  }
  .hero-stats {
    gap: 32px;
  }
  .hero-stat-num {
    font-size: 28px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  /* Features */
  .features {
    padding: 64px 0;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Advantages */
  .advantages {
    padding: 64px 0;
  }
  .advantages-grid {
    grid-template-columns: 1fr;
  }

  /* How */
  .how {
    padding: 64px 0;
  }
  .how-steps {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .how-arrow {
    transform: rotate(90deg);
    padding-top: 0;
  }

  /* Download */
  .download {
    padding: 64px 0;
  }
  .download-card {
    flex-direction: column;
    padding: 40px 28px;
    text-align: center;
  }
  .download-features {
    justify-content: center;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    gap: 20px;
  }
  .hero-stat-num {
    font-size: 24px;
  }
  .hero-stat-label {
    font-size: 12px;
  }
}
