/* 响应式布局样式 */

/* 平板电脑 (768px - 1023px) */
@media screen and (max-width: 1023px) {
  .container {
    padding: 0 30px;
  }

  .section-header h2 {
    font-size: 2.2rem;
  }

  /* 导航栏 */
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-menu.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-menu li {
    margin: 10px 0;
    text-align: center;
  }

  .mobile-menu-toggle {
    display: block;
  }

  /* 首页 */
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    padding-right: 0;
    margin-bottom: 40px;
  }

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

  /* 功能特点 */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 截图 */
  .screenshot-carousel {
    flex-wrap: wrap;
  }

  .screenshot-item {
    min-width: 300px;
  }

  /* 评价 */
  .testimonial-carousel {
    flex-direction: column;
  }

  /* 下载 */
  .download-options {
    flex-wrap: wrap;
  }

  .download-option {
    min-width: 200px;
  }

  /* 联系 */
  .contact-container {
    flex-direction: column;
  }
}

/* 手机端 (低于 767px) */
@media screen and (max-width: 767px) {
  .section-header h2 {
    font-size: 1.8rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .logo h1 {
    font-size: 1.8rem;
  }

  .cta-button {
    display: none;
  }

  /* 首页 */
  .hero {
    padding: 120px 0 50px;
  }

  .hero h2 {
    font-size: 2.2rem;
  }

  .hero h3 {
    font-size: 1.6rem;
  }

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

  .hero-image img {
    max-width: 80%;
    margin: 0 auto;
  }

  /* 统计数据 */
  .stat-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stat-item {
    padding: 10px;
  }

  .stat-number {
    font-size: 2rem;
  }

  /* 功能特点 */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-item {
    padding: 20px;
  }

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

  .feature-item h3 {
    font-size: 1.3rem;
  }

  /* 截图 */
  .screenshot-carousel {
    flex-direction: column;
    align-items: center;
  }

  .screenshot-item {
    width: 100%;
    max-width: 400px;
    margin-bottom: 20px;
  }

  /* 评价 */
  .testimonial-item {
    padding: 20px;
  }

  /* 下载 */
  .download-options {
    flex-direction: column;
    align-items: center;
  }

  .download-option {
    width: 100%;
    max-width: 280px;
    margin-bottom: 20px;
  }

  /* FAQ */
  .faq-question h3 {
    font-size: 1rem;
  }

  /* 联系 */
  .contact-form,
  .contact-info {
    width: 100%;
  }

  /* 页脚 */
  .footer-content {
    flex-direction: column;
  }

  .footer-logo,
  .footer-links {
    width: 100%;
  }
  
  .footer-links {
    margin-top: 30px;
  }
  
  .footer-links-column {
    min-width: 140px;
  }
}

/* 小型手机 (低于 480px) */
@media screen and (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  .section-header p {
    font-size: 0.9rem;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .hero h3 {
    font-size: 1.3rem;
  }

  .stat-container {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-direction: column;
  }

  .footer-links-column {
    margin-bottom: 30px;
    width: 100%;
  }

  .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .contact-text h3 {
    font-size: 1.1rem;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    right: 20px;
    bottom: 20px;
  }
}