/* ========================================
   品达环球 - 响应式布局
   Pinda Global - Responsive Styles
   ======================================== */

/* Tablet (992px and below) */
@media (max-width: 992px) {
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
  h3 { font-size: 26px; }
  
  .hero-title {
    font-size: 44px;
  }
  
  .hero-subtitle {
    font-size: 20px;
  }
  
  section {
    padding: 60px 0;
  }
  
  .section-title {
    margin-bottom: 40px;
  }
  
  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 60px;
    text-align: left !important;
  }
  
  .timeline-dot {
    left: 10px !important;
    right: auto !important;
  }
}

/* Mobile Landscape (768px and below) */
@media (max-width: 768px) {
  h1 { font-size: 32px; }
  h2 { font-size: 28px; }
  h3 { font-size: 22px; }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 70%;
    height: calc(100vh - 70px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 40px 20px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  section {
    padding: 50px 0;
  }
  
  .section-title h2 {
    font-size: 28px;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
  }
  
  .partner-logos {
    gap: 20px;
  }
  
  .partner-logo {
    width: 100px;
    height: 50px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Mobile Portrait (480px and below) */
@media (max-width: 480px) {
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
  h4 { font-size: 18px; }
  p { font-size: 14px; }
  
  .hero {
    min-height: 90vh;
    padding-top: 100px;
  }
  
  .hero-title {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 15px;
  }
  
  .hero-subtitle {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
  }
  
  .hero-cta {
    padding: 12px 30px;
    font-size: 15px;
  }
  
  .hero-cta-group {
    flex-direction: column;
    gap: 10px;
  }
  
  .hero-cta-group .btn {
    width: 100%;
    text-align: center;
  }
  
  .container {
    padding: 0 15px;
  }
  
  section {
    padding: 40px 0;
  }
  
  .section-title {
    margin-bottom: 30px;
  }
  
  .section-title h2 {
    font-size: 24px;
  }
  
  .card {
    padding: 20px;
    margin-bottom: 15px;
  }
  
  .card-icon {
    font-size: 36px;
  }
  
  .case-result {
    font-size: 24px;
  }
  
  .contact-info,
  .contact-form {
    padding: 20px;
  }
  
  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    padding: 12px;
    font-size: 14px;
  }
  
  .submit-btn {
    width: 100%;
    padding: 14px;
  }
  
  .lang-switcher {
    margin-left: 10px;
  }
  
  .lang-btn {
    padding: 4px 10px;
    font-size: 12px;
  }
  
  /* Navbar adjustments */
  .navbar {
    padding: 10px 15px;
  }
  
  .logo {
    font-size: 18px;
  }
  
  /* Footer adjustments */
  .footer {
    padding: 30px 0;
  }
  
  .footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
  }
  
  .footer-section p {
    font-size: 13px;
    line-height: 1.6;
  }
  
  /* Partner logos */
  .partner-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .partner-logo {
    width: 100%;
    height: 60px;
  }
  
  /* Timeline */
  .timeline::before {
    left: 15px;
  }
  
  .timeline-item {
    padding-left: 45px;
  }
  
  .timeline-dot {
    left: 5px;
  }
  
  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .stat-item {
    padding: 15px;
  }
  
  .stat-number {
    font-size: 28px;
  }
  
  .stat-label {
    font-size: 12px;
  }
  
  /* Video responsive */
  .video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
  }
  
  .video-wrapper iframe,
  .video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}

/* Large Desktop (1200px and above) */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
}

/* Extra Large Screens */
@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
  }
  
  .hero-title {
    font-size: 64px;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .hero-cta,
  #particles-canvas {
    display: none;
  }
  
  body {
    color: #000;
    background: #fff;
  }
  
  a {
    text-decoration: underline;
    color: #000;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimize images for retina displays */
  img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
  /* Can be enabled if needed */
  /*
  :root {
    --light-bg: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
  }
  */
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
