/* 基础重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
  line-height: 1.6;
  color: #333;
}

/* 颜色变量 */
:root {
  /* --primary-green: #2E7D32;
    --accent-green: #43A047;
    --hover-green: #66BB6A;
    --light-bg: #f1f8e9; */

  --primary-green: #1A222B;
  --accent-green: #4CAF50;
  --hover-green: #303f9f;
  --light-bg: #f5f6fa;
}

/* 导航栏 */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: var(--primary-green);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.logo img {
  height: 40px;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #C8E6C9;
}

/* 首屏展示 */
#home {
  padding-top: 80px;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-green) 0%, #81C784 100%);
  color: white;
  text-align: center;
}

.hero {
  padding: 4rem 5%;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.app-screenshots img {
  width: 300px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: perspective(1000px) rotateY(-10deg);
  margin: 2rem auto;
}

/* 核心功能模块 */
#features {
  padding: 5rem 5%;
  background: var(--light-bg);
}

h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-green);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background-image: url(../img/feature-card-bg.png);
  background-size: cover;
  background-repeat: no-repeat;
  padding: 2.75rem 3.13rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(76, 175, 80, 0.2);
}

.feature-card img {
  width: 7rem;
  height: 7rem;
  margin: 0 auto 1.56rem;
  display: block;
}

.feature-card h3 {
  font-weight: bold;
  font-size: 1.5rem;
  color: #000000;
}

.feature-card ul {
  padding: 0 1.3rem;
  margin-top: 1.88rem;
}

.feature-card ul li::marker {
  color: #279D61;
}

.mall-type {
  margin: 1rem 0;
  border-radius: 8px;
}

.mall-type h4 {
  width: max-content;
  background: #279D61;
  padding: 0.19rem 0.5rem;
  font-weight: bold;
  font-size: 1rem;
  color: #FFFFFF;
  border-radius: 0.94rem;
  margin-bottom: 0.5rem;
}

.mall-type:nth-child(1) {
  background: #e8f5e9;
  border: 2px solid var(--accent-green);
}

.mall-type:nth-child(2) {
  background: #f1f8e9;
  border: 2px solid #689F38;
}

/* 应用截图 */
#screenshots {
  padding: 5rem 5%;
}

.screenshot-gallery {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.screenshot-gallery img {
  width: 280px;
  border-radius: 10px;
  border: 3px solid #E8F5E9;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

.screenshot-gallery img:hover {
  transform: scale(1.05);
}

figcaption {
  text-align: center;
  margin-top: 1rem;
  color: #666;
}

/* 下载引导 */
#download {
  padding: 4rem 5% 2rem;
  background: var(--primary-green);
  color: white;
  text-align: center;
}

#download h2 {
  color: white;
}

.download-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.download-badges img {
  height: 50px;
  transition: transform 0.3s;
}

.download-badges img:hover {
  transform: scale(1.05);
}

.qr-code {
  display: flex;
}

.qrcode {
  background: rgba(22, 108, 64, 0.35);
  padding: 0.8rem;
  border-radius: 12px;
  margin-top: 1rem;
}

.qrcode img {
  width: 100px;
  height: 100px;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
  nav ul {
    display: none;
  }

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

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-gallery {
    flex-direction: column;
    align-items: center;
  }
}

/* 动画效果 */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

.app-screenshots img {
  animation: float 4s ease-in-out infinite;
}

/* 页脚 */
footer {
  background: var(--primary-green);
  color: white;
  text-align: center;
  padding: 2rem;
}