/* --- 基础变量与全局重置 --- */
:root {
  --primary: #10b981; /* 翡翠绿核心色 */
  --primary-dark: #059669;
  --primary-light: #d1fae5;
  --secondary: #3b82f6;
  --dark: #1f2937;
  --text-main: #374151;
  --text-muted: #6b7280;
  --bg-main: #ffffff;
  --bg-light: #f3f4f6;
  --border-color: #e5e7eb;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-main);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-white {
  color: #fff;
}
.bg-light {
  background-color: var(--bg-light);
}
.bg-primary {
  background-color: var(--primary);
}

/* --- 按钮样式 --- */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-large {
  padding: 14px 32px;
  font-size: 1.1rem;
}

/* --- 导航栏 --- */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  padding: 20px 0;
  transition: var(--transition);
}

#navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  padding: 15px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

#navbar.scrolled .logo {
  color: var(--primary-dark);
}
#navbar.scrolled .nav-links li a {
  color: var(--dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links li a {
  color: #fff;
  font-weight: 500;
}

.nav-links li a:hover {
  color: var(--primary);
}

#navbar.scrolled .nav-links li a.btn-primary {
  color: #fff;
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
}
#navbar.scrolled .hamburger {
  color: var(--dark);
}

/* --- 首页 Hero 区 --- */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  /* 你可以替换为真实的环保回收大图背景 */
  background: url("https://images.unsplash.com/photo-1542601906990-b4d3fb778b09?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80")
    center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(31, 41, 55, 0.8) 0%,
    rgba(16, 185, 129, 0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}
.hero-buttons .btn-outline {
  color: #fff;
  border-color: #fff;
}
.hero-buttons .btn-outline:hover {
  color: var(--primary);
  background-color: #fff;
}

/* --- 公共 Section --- */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--dark);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--primary);
  border-radius: 2px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* --- 网格布局 --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* --- 卡片样式 --- */
.card {
  background-color: #fff;
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: var(--transition);
}

.card:hover .icon-wrapper {
  background-color: var(--primary);
  color: #fff;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--dark);
}

.card p {
  color: var(--text-muted);
}

/* --- 流程说明 --- */
.process-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.process-steps::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background-color: var(--border-color);
  z-index: 1;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 2;
}

.step-num {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background-color: var(--bg-main);
  border: 4px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  transition: var(--transition);
}

.step:hover .step-num {
  background-color: var(--primary);
  color: var(--bg-main);
  transform: scale(1.1);
}

.step-content h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.step-content p {
  color: var(--text-muted);
  padding: 0 20px;
}

/* --- 统计数字 --- */
.stats-section {
  padding: 60px 0;
}

.stat-item {
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.stat-item span {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* --- 下载区 --- */
.download-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  background-color: #fff;
  padding: 60px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.download-text {
  flex: 1;
}

.download-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--dark);
  line-height: 1.3;
}

.download-text p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.badges {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.badge {
  background-color: var(--bg-light);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge i {
  font-size: 1.2rem;
  color: var(--primary);
}

.qrcode-wrapper {
  flex-shrink: 0;
}

.qrcode-placeholder {
  width: 200px;
  height: 200px;
  border: 2px dashed var(--primary);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background-color: var(--primary-light);
}

.qrcode-placeholder i {
  font-size: 4rem;
  margin-bottom: 10px;
}

/* --- Footer --- */
footer {
  background-color: var(--dark);
  color: #e5e7eb;
  padding: 80px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 40px;
}

.footer-logo {
  color: #fff;
  margin-bottom: 20px;
}

.footer-desc {
  color: #9ca3af;
  line-height: 1.8;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: #9ca3af;
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  color: #9ca3af;
}

.contact-info i {
  color: var(--primary);
  margin-top: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  font-size: 0.9rem;
}

/* --- 响应式 --- */
@media (max-width: 992px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero h1 {
    font-size: 2.8rem;
  }
  .process-steps::before {
    display: none;
  }
  .process-steps {
    flex-direction: column;
    gap: 40px;
  }
  .download-container {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }
  .badges {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* 简化：移动端隐藏，实际可做下拉菜单 */
  }
  .hamburger {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero-buttons {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}
