/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: #2d2d2d;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(20, 122, 239, 0.8) 100%
  );
  min-height: 100vh;
}

/* 自定义滚动条样式 */
::-webkit-scrollbar {
  width: 6px; /* 滚动条宽度 */
}

::-webkit-scrollbar-track {
  background: transparent; /* 滚动条轨道背景 */
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2); /* 滚动条滑块颜色 */
  border-radius: 3px; /* 滑块圆角 */
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3); /* 鼠标悬停时的滑块颜色 */
}

/* 导航栏样式 */
.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(15px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand img {
  height: 40px;
  width: auto;
}

.download-btn {
  background: #24c3e1;
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(36, 195, 225, 0.3);
}

/* 主容器样式 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px 40px;
}

/* 英雄区域样式 */
.hero-section {
  text-align: center;
  padding: 4rem 0;
}

.hero-section .content {
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 2rem;
}

.hero-section h1 {
  font-size: 32px;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #f05205, #ff9600, #ffd000);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-section p {
  background: linear-gradient(
    90deg,
    rgb(65, 64, 64),
    rgb(61, 61, 61),
    rgb(0, 0, 0)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.preview-grid {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 3rem;
  padding: 1rem 0;
}

.preview-grid .preview-container {
  display: flex;
  gap: 2rem;
  width: max-content;
}

.preview-container {
  display: flex;
  transition: transform 0.5s ease;
}

.preview-container > div {
  flex-shrink: 0;
}

.preview-item {
  flex: 0 0 300px;
  /* border-radius: 15px; */
  overflow: hidden;
  transition: transform 0.3s ease;
  /* box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); */
}

.preview-item:hover {
  transform: scale(1.05);
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 二维码区域样式 */
.qrcode-section {
  padding: calc(50vh - 200px) 0;
  text-align: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qrcode-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.qrcode-card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(36, 195, 225, 0.4);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    box-shadow: 0 0 10px rgba(36, 195, 225, 0.4);
  }
  to {
    box-shadow: 0 0 20px rgba(36, 195, 225, 0.8);
  }
}

.qrcode-card img {
  width: 250px;
  height: 250px;
  margin-bottom: 1rem;
}

.tips p {
  margin: 0.5rem 0;
  color: #2d2d2d;
}

.platform-tips {
  font-size: 14px;
  color: #666;
}

.url {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #f5f5f5;
  border-radius: 5px;
  margin-top: 0.5rem;
}

/* 特性区域样式 */
.features-section {
  padding: 4rem 0;
  text-align: center;
}

.features-section h2 {
  font-size: 28px;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-item {
  padding: 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-item h3 {
  margin-bottom: 1rem;
  color: #2d2d2d;
}

/* 页脚样式 */
.main-footer {
  padding: 1.5rem 0;
  text-align: center;
  background: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.main-footer p {
  margin: 0.5rem 0;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

.main-footer a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.main-footer a::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: #333;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.main-footer a:hover {
  color: #000;
}

.main-footer a:hover::after {
  transform: scaleX(1);
}

/* 响应式样式 */
@media (min-width: 768px) {
  .qrcode-container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .hero-section h1 {
    font-size: 48px;
  }
}

@media (max-width: 767px) {
  .brand span {
    display: none;
  }

  .qrcode-card img {
    width: 200px;
    height: 200px;
  }

  .hero-section h1 {
    font-size: 24px;
  }

  body {
    font-size: 14px;
  }
}
