/* ==================================================
   控天智能拓客官网 - 响应式样式
   Responsive Styles
   ================================================== */

/* ==================================================
   平板适配 (768px - 1023px)
   ================================================== */

@media (max-width: 1023px) {
  /* 导航栏 */
  .navbar-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    flex-direction: column;
    padding: var(--space-6);
    gap: var(--space-4);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
  }

  .navbar-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    padding: var(--space-3) 0;
    font-size: 1.125rem;
  }

  .nav-link::after {
    display: none;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: calc(72px + var(--space-12)) 0 var(--space-16);
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-floating {
    display: none;
  }

  /* 功能卡片 */
  .feature-card {
    padding: var(--space-6);
  }

  /* 价格卡片 */
  .pricing-card {
    padding: var(--space-6);
  }

  .price-value {
    font-size: 2.5rem;
  }
}

/* ==================================================
   手机适配 (< 768px)
   ================================================== */

@media (max-width: 767px) {
  /* 基础调整 */
  :root {
    --space-20: 4rem;
    --space-16: 3rem;
    --space-12: 2.5rem;
  }

  /* Hero */
  .hero-title {
    font-size: 1.75rem;
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
  }

  /* 信任区域 */
  .trust-stats {
    grid-template-columns: 1fr;
  }

  .trust-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5) var(--space-6);
  }

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

  /* 功能区域 */
  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    text-align: center;
  }

  .feature-icon {
    margin: 0 auto var(--space-6);
  }

  /* 平台支持 */
  .platforms-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
  }

  .platform-item {
    padding: var(--space-4) var(--space-3);
  }

  .platform-icon {
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
  }

  .platform-name {
    font-size: 0.75rem;
  }

  /* 价格区域 */
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    order: -1;
  }

  /* 用户评价 */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    padding: var(--space-6);
  }

  /* CTA */
  .cta-title {
    font-size: 1.5rem;
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-actions .btn {
    width: 100%;
  }

  /* 页脚 */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    max-width: none;
  }

  .footer-brand img {
    margin: 0 auto var(--space-4);
  }

  .footer-social {
    justify-content: center;
  }

  .contact-item {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ==================================================
   小屏手机适配 (< 480px)
   ================================================== */

@media (max-width: 479px) {
  .container {
    padding: 0 var(--space-4);
  }

  .navbar .container {
    height: 64px;
  }

  .navbar-brand img {
    height: 28px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .platforms-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .price-value {
    font-size: 2rem;
  }

  .invite-code-box {
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
  }
}

/* ==================================================
   横屏手机适配
   ================================================== */

@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: calc(64px + var(--space-8)) 0 var(--space-12);
  }

  .hero .container {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .hero-title {
    font-size: 1.75rem;
  }
}

/* ==================================================
   大屏适配 (> 1536px)
   ================================================== */

@media (min-width: 1536px) {
  .container {
    max-width: 1400px;
  }

  .hero-title {
    font-size: 4.5rem;
  }

  .section-title {
    font-size: 3rem;
  }
}

/* ==================================================
   打印样式
   ================================================== */

@media print {
  .navbar,
  .hero-visual,
  .cta-section,
  .footer-social,
  .theme-toggle,
  .lang-switcher,
  .menu-toggle {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .section-title,
  .hero-title {
    color: black !important;
  }
}
