/* ==========================================================================
   ALWEW (M) SDN. BHD. - 响应式断点适配
   遵循移动端高品质交互标准：
   1. 手机端重新组织排版，非简单缩小
   2. 保证触摸靶心不低于 44px
   3. WhatsApp 悬浮按钮在移动端适度微调，不遮挡操作区
   4. 表格提供水平横滑容器保护
   ========================================================================== */

/* 中屏电脑与小屏笔记本 (<= 1199px) */
@media (max-width: 1199px) {
  .hero-content h1 {
    font-size: 2.3rem;
  }
  
  .top-info-service {
    display: none !important;
  }
  
  .category-entry-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .selling-points-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

/* 导航折叠断点：屏幕 <= 1366px 时启用汉堡抽屉，确保多语言长菜单与 WhatsApp 按钮在任何笔记本/显示器下绝不重叠 (针对图 1 修复) */
@media (max-width: 1366px) {
  .nav-menu {
    display: none !important;
  }
  
  .mobile-toggle {
    display: flex !important;
  }
}

/* 平板设备 (<= 991px) */
@media (max-width: 991px) {
  .hero-grand-stage {
    min-height: auto;
    padding: 70px 0 50px 0;
  }
  
  .hero-stage-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .hero-stage-scrim {
    background: linear-gradient(
      180deg,
      rgba(8, 14, 24, 0.94) 0%,
      rgba(8, 14, 24, 0.88) 55%,
      rgba(8, 14, 24, 0.96) 100%
    );
  }
  
  .hero-stage-aside {
    justify-content: flex-start;
  }
  
  .hero-glass-card {
    max-width: 100%;
  }

  .hero-bottom-stats-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px 24px;
  }

  .stage-stat-divider {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .hero-content h1 {
    font-size: 2.1rem;
  }
  
  .hero-image-card img {
    height: 360px;
  }
  
  .grid-2,
  .grid-3,
  .grid-4,
  .contact-page-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .category-entry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* 落地页排版调整 */
  .detail-layout {
    grid-template-columns: 1fr;
  }
  
  .gallery-main-view {
    height: 360px;
  }
  
  .product-inquiry-box {
    position: static;
  }
  
  .specs-table th {
    width: 35%;
  }
}

/* 手机设备 (<= 767px) */
@media (max-width: 767px) {
  .hero-grand-stage {
    padding: 55px 0 35px 0;
  }

  .hero-stage-title {
    font-size: 1.85rem !important;
    line-height: 1.25;
  }

  .hero-stage-lead {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }

  .hero-stage-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-stage-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-bottom-stats-bar {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px 18px;
  }

  .stage-stat-item .stat-main {
    font-size: 1.4rem;
  }

  .top-bar-left .top-info-item:not(:first-child) {
    display: none !important;
  }
  
  .brand-logo img {
    height: 34px !important;
    max-width: 140px !important;
  }

  .container,
  .container-wide {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-subtitle {
    font-size: 0.95rem;
  }
  
  .hero-section {
    padding: 60px 0 50px 0;
  }
  
  .hero-content h1 {
    font-size: 1.85rem;
    line-height: 1.25;
  }
  
  .hero-content .hero-lead {
    font-size: 1rem;
    margin-bottom: 24px;
  }
  
  .hero-badges-bar {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .hero-image-card img {
    height: 280px;
  }
  
  .hero-floating-pill {
    position: static;
    margin-top: 12px;
    background: var(--color-dark);
  }
  
  .dual-core-card {
    padding: 24px 20px;
  }
  
  .dual-core-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .category-entry-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .category-entry-card {
    flex-direction: row;
    text-align: left;
    padding: 16px;
    gap: 16px;
  }
  
  .category-entry-card .cat-icon {
    margin-bottom: 0;
  }
  
  .selling-points-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .gallery-main-view {
    height: 260px;
  }
  
  .thumb-item {
    width: 70px;
    height: 56px;
  }
  
  .product-footer-actions {
    grid-template-columns: 1fr;
  }
  
  .product-inquiry-box {
    padding: 20px 16px;
  }
  
  .detail-product-title {
    font-size: 1.5rem;
  }
  
  /* 表格在移动端支持横向滑动，防止页面溢出破版 */
  .specs-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .specs-table {
    min-width: 520px;
  }
  
  .specs-table th,
  .specs-table td {
    padding: 12px 14px;
    font-size: 0.88rem;
  }
  
  .faq-trigger {
    padding: 16px 18px;
    font-size: 0.95rem;
  }
  
  .faq-content {
    padding: 0 18px;
  }
  
  .faq-item.active .faq-content {
    padding: 12px 18px 18px 18px;
  }
  
  /* WhatsApp 悬浮窗在小屏手机上的尺寸与间距适配 */
  .wa-widget-container {
    bottom: 20px;
    right: 20px;
  }
  
  .wa-trigger-btn {
    width: 56px;
    height: 56px;
  }
  
  .wa-trigger-btn svg {
    width: 28px;
    height: 28px;
  }
  
  .wa-popup {
    width: calc(100vw - 40px);
    right: 0;
    bottom: 74px;
  }
  
  .back-to-top-btn {
    bottom: 86px;
    right: 26px;
    width: 40px;
    height: 40px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}
