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

body {
  font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: #FF6B9D;
}

.nav-logo i {
  margin-right: 0.5rem;
  font-size: 1.8rem;
}

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

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: #FF6B9D;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
}

/* 首页横幅 */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #FF6B9D 0%, #FFB6C1 50%, #FFC0CB 100%);
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: bold;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary {
  background: white;
  color: #FF6B9D;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: #FF6B9D;
}

/* 手机模拟器 */
.phone-mockup {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-screen {
  width: 280px;
  height: 560px;
  background: #1a1a1a;
  border-radius: 30px;
  padding: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
}

.phone-screen::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 14px;
  background: #000000;
  border-radius: 0 0 10px 10px;
}

.app-preview {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #FF6B9D, #FFB6C1);
  border-radius: 20px;
  padding: 30px 14px;
  display: flex;
  flex-direction: column;
}

.app-header {
  display: flex;
  align-items: center;
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 2rem;
}

.app-header i {
  margin-right: 0.5rem;
  font-size: 1.5rem;
}

.app-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-item {
  background: rgba(255, 255, 255, 0.2);
  padding: 1rem;
  border-radius: 15px;
  display: flex;
  align-items: center;
  color: white;
  backdrop-filter: blur(10px);
}

.feature-item i {
  margin-right: 0.8rem;
  font-size: 1.2rem;
}

/* 功能特色 */
.features {
  padding: 5rem 0;
  background: #f8f9fa;
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #333;
}

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

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #FF6B9D, #FFB6C1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.feature-icon i {
  font-size: 2rem;
  color: white;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.feature-card p {
  color: #666;
  line-height: 1.6;
}

/* 应用截图 */
.screenshots {
  padding: 5rem 0;
  background: white;
}

.screenshots h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #333;
}

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

.screenshot-item {
  text-align: center;
}

.screenshot-frame {
  width: 250px;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

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

.screenshot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screenshot-item h4 {
  font-size: 1.2rem;
  color: #333;
  margin-top: 1rem;
}

/* 下载区域 */
.download {
  padding: 5rem 0;
  background: linear-gradient(135deg, #FF6B9D 0%, #FFB6C1 100%);
  color: white;
}

.download h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.download>.container>p {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 3rem;
  opacity: 0.9;
}

.download-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
}

.qr-code {
  display: flex;
  justify-content: center;
}

.qr-placeholder {
  width: 200px;
  height: 200px;
  background: white;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #FF6B9D;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.qr-placeholder i {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.qr-placeholder p {
  font-size: 1rem;
  color: #666;
}

.download-info h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.download-features {
  list-style: none;
  margin-bottom: 2rem;
}

.download-features li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.download-features i {
  color: #4CAF50;
  margin-right: 1rem;
  font-size: 1.2rem;
}

.download-steps h4 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.download-steps ol {
  padding-left: 1.5rem;
}

.download-steps li {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

/* 页脚 */
.footer {
  background: #333;
  color: white;
  padding: 3rem 0 1rem;
}

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

.footer-section h4 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #FF6B9D;
}

.footer-section p {
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.footer-section i {
  margin-right: 0.5rem;
  color: #FF6B9D;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-item {
  position: relative;
}

.social-link {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s ease;
  overflow: hidden;
}

.social-link:hover {
  transform: scale(1.1);
}

.qr-popup {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  min-width: 180px;
  text-align: center;
}

.qr-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: white;
}

.qr-popup img {
  width: 150px;
  height: 150px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.qr-popup i {
  font-size: 8rem;
  margin-bottom: 0.5rem;
}

.qr-popup p {
  color: #333;
  font-size: 0.9rem;
  margin: 0;
  font-weight: 500;
}

.social-item:hover .qr-popup {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #555;
  opacity: 0.7;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    display: none;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

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

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .phone-screen {
    width: 240px;
    height: 480px;
  }

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

  .screenshots-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .screenshot-frame {
    width: 200px;
    height: 400px;
  }

  .download-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  .features h2,
  .screenshots h2,
  .download h2 {
    font-size: 2rem;
  }

  .phone-screen {
    width: 200px;
    height: 400px;
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card,
.screenshot-item {
  animation: fadeInUp 0.6s ease forwards;
}

.feature-card:nth-child(1) {
  animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
  animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
  animation-delay: 0.3s;
}

.feature-card:nth-child(4) {
  animation-delay: 0.4s;
}

.feature-card:nth-child(5) {
  animation-delay: 0.5s;
}

.feature-card:nth-child(6) {
  animation-delay: 0.6s;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .qr-popup {
    left: 0;
    transform: translateX(0);
    min-width: 160px;
  }

  .qr-popup::after {
    left: 20px;
    transform: translateX(0);
  }

  .social-item:hover .qr-popup {
    transform: translateX(0) translateY(-5px);
  }
}