﻿/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
a {
  text-decoration: none;  /* 去除下划线 */
  color: #727272;      /* 设置颜色 */
}
body {
  font-family: 'Arial', sans-serif;
  color: #111;
  background-color: #fff;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 40px;
  background-color: white;
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid #eee;
}

.logo {
  font-weight: bold;
  font-size: 1.5em;
}

.nav-links a {
  margin: 0 15px;
  text-decoration: none;
  color: #111;
  font-weight: 500;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* Hero */
.hero {
  height: 100vh;
  background: url('https://www.airwheel.net/images/se3s/airwheel-se3s-electric-luggage-09.jpg') center center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn {
  padding: 12px 28px;
  background-color: #000;
  color: white;
  border-radius: 4px;
  text-decoration: none;
}

/* Section Title */
.section-title {
  text-align: center;
  font-size: 2em;
  margin: 60px 0 20px;
}

/* Products Section */
.products-section {
  padding: 40px 20px;
  background-color: #fafafa;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.product-card {
  max-width: 300px;
  text-align: center;
}

.product-card img {
  width: 100%;
  border-radius: 8px;
}

/* News Section */
.news-section {
  padding: 40px 20px;
}

.news-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.news-item {
  max-width: 300px;
  background-color: #f1f1f1;
  padding: 20px;
  border-radius: 8px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 30px;
  background-color: #eee;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px;
  }

  .nav-links.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .product-grid, .news-grid {
    flex-direction: column;
    align-items: center;
  }

  .hero-text h1 {
    font-size: 2em;
  }
}
