/* 全局重置与基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 10px 30px;
  background-color: #007bff;
  color: #fff;
  border-radius: 5px;
  transition: background-color 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background-color: #0056b3;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 10px;
}

.section-title p {
  color: #7f8c8d;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.bg-light {
  background-color: #ffffff;
}

/* 导航栏 */
.header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo h1 {
  font-size: 1.5rem;
  color: #007bff;
  display: inline-block;
}

.logo span {
  font-size: 0.9rem;
  color: #666;
  margin-left: 5px;
}

.nav ul {
  display: flex;
}

.nav ul li {
  margin-left: 30px;
}

.nav ul li a {
  font-weight: 500;
  color: #333;
  transition: color 0.3s;
}

.nav ul li a:hover {
  color: #007bff;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* 首页焦点图 */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding-top: 70px; /* 导航栏高度补偿 */
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 0;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h2 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease 0.2s;
  animation-fill-mode: both;
}

.hero-content .btn {
  animation: fadeInUp 1s ease 0.4s;
  animation-fill-mode: both;
}

/* 关于我们 */
.about-text p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: #555;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.features {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  gap: 40px;
  flex-wrap: wrap;
}

.feature-item {
  text-align: center;
}

.feature-item i {
  font-size: 2.5rem;
  color: #007bff;
  margin-bottom: 15px;
  display: block;
}

.feature-item span {
  font-weight: bold;
  color: #333;
}

/* 产品与服务 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.product-card {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  text-align: center;
  border: 1px solid #eee;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  background: #fff;
}

.icon-box {
  width: 60px;
  height: 60px;
  background: #e7f1ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.icon-box i {
  font-size: 1.5rem;
  color: #007bff;
}

.product-card h3 {
  margin-bottom: 15px;
  color: #333;
}

.product-card p {
  color: #666;
  font-size: 0.95rem;
}

/* 联系我们 */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: center;
}

.contact-info {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.info-item i {
  font-size: 1.5rem;
  color: #007bff;
  margin-right: 20px;
  margin-top: 5px;
}

.info-item h4 {
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.contact-form {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

.form-group textarea {
  resize: vertical;
}

.contact-form .btn {
  width: 100%;
}

/* 精彩瞬间 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.gallery-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.gallery-info {
  padding: 20px;
  text-align: center;
}

.gallery-info h3 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 10px;
}

.gallery-info p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

/* 页脚 */
.footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
}

.products-qr-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  width: 650px;
  margin: 0 auto;
}

.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.qr-container img {
  width: 300px;
  height: 300px;
  margin-bottom: 10px;
}

/* 动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式适配 */
@media (max-width: 768px) {
  .hero-content h2 {
    font-size: 2.5rem;
  }

  .nav {
    display: none; /* 移动端暂简略处理 */
  }

  .menu-toggle {
    display: block;
  }

  .contact-container {
    flex-direction: column;
    align-items: center;
  }

  .contact-info,
  .contact-form {
    width: 100%;
  }
}
