/* 响应式适配：在 index.css 固定 1920 稿基础上覆盖 */

html,
body {
  overflow-x: hidden;
}

/* ---------- 桌面缩放区间（1200~1919）----------
   1920 固定稿在比设计稿窄的桌面端会出现内容偏左、手机图贴右边缘的问题。
   在此区间把画布锁定为 1920 宽，再由 flexible.js 通过 zoom 等比缩放铺满视口，
   保证排版与 1920 稿完全一致、整体居中。 */
@media (min-width: 1200px) and (max-width: 1919px) {
  .page,
  .box_1 {
    width: 1920px;
    max-width: 1920px;
  }

  .page {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ---------- 平板 ---------- */
@media (max-width: 1199px) {
  .page,
  .box_1,
  .box_2,
  .section_20 {
    width: 100%;
    max-width: 1920px;
  }

  .page {
    height: auto;
    margin: 0 auto;
    padding-top: 72px;
  }

  .box_2 {
    height: auto;
  }

  .group_1 {
    margin-left: 40px;
  }

  .lang_switcher {
    margin-left: auto;
    margin-right: 40px;
  }

  .text_2,
  .text_3,
  .section_1 {
    margin-left: 40px;
  }

  .section_20 {
    background-size: 100% auto;
  }

  .group_14 {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
  }

  .group_15 {
    width: 100%;
  }
}

/* ---------- 手机 ---------- */
@media (max-width: 768px) {
  .page {
    height: auto;
    overflow-x: hidden;
    padding-top: 56px;
  }

  /* 页头 */
  .box_1 {
    position: fixed;
    top: 0;
    left: 0;
    transform: none;
    z-index: 100;
    width: 100%;
    max-width: 100%;
    height: 56px;
    padding: 0 16px;
    align-items: center;
    box-sizing: border-box;
  }

  .group_1 {
    width: 40px;
    height: 40px;
    margin: 0;
    flex-shrink: 0;
  }

  .logo_img {
    width: 40px;
    height: 40px;
  }

  .image_2 {
    width: 56px;
    height: auto;
    margin: 0 0 0 8px;
  }

  .lang_switcher {
    margin: 0 16px 0 auto;
  }

  .lang_switcher_menu {
    right: 0;
  }

  /* 首屏 Hero */
  .box_2 {
    padding-bottom: 48px;
  }

  .text_2 {
    width: auto;
    max-width: calc(100% - 32px);
    height: auto;
    margin: 32px 16px 0;
    font-size: 28px;
    line-height: 1.3;
    white-space: normal;
  }

  .text_3 {
    width: auto;
    max-width: calc(100% - 32px);
    height: auto;
    margin: 12px 16px 0;
    line-height: 1.6;
  }

  .section_1 {
    width: auto;
    height: auto;
    margin: 24px 16px 0;
    justify-content: center;
    gap: 12px;
  }

  .btn_download {
    width: 148px;
    height: 48px;
    object-fit: contain;
  }

  /* 首屏手机展示图 */
  .hero_phone {
    display: block;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 200px;
    height: 420px;
    object-fit: contain;
    margin: 32px auto 0;
  }

  .text-wrapper_3 {
    height: auto !important;
    margin-top: 40px !important;
    padding-bottom: 8px;
  }

  .image-text_1 {
    margin-top: 48px !important;
  }

  /* 隐藏 PC 端装饰，移动端用 hero_phone */
  .section_2,
  .image_26,
  .phone_demo_food,
  .thumbnail_12,
  .btn_ios_bottom,
  .btn_android_bottom {
    display: none !important;
  }

  /* 内容区块通用 */
  .text-wrapper_3,
  .text-group_4,
  .text-group_8,
  .text-wrapper_4 {
    width: auto !important;
    max-width: calc(100% - 32px);
    margin-left: 16px !important;
    margin-right: 16px;
    white-space: normal;
  }

  .text_8,
  .text_9,
  .text_10,
  .text_17,
  .text_25,
  .text_35 {
    width: auto !important;
    white-space: normal;
  }

  .image-text_1,
  .image-text_2,
  .image-text_3 {
    width: calc(100% - 32px) !important;
    height: auto !important;
    margin: 32px 16px !important;
    align-items: flex-start;
    gap: 12px;
  }

  .text-group_1,
  .text-group_2,
  .text-group_3,
  .text-group_5,
  .text-group_6,
  .text-group_7 {
    width: auto !important;
    flex: 1;
    height: auto !important;
  }

  .text_12,
  .text_14,
  .text_16,
  .text_18,
  .text_20,
  .text_22,
  .text_24,
  .text_26 {
    width: auto !important;
    height: auto !important;
    line-height: 1.6;
  }

  .section_11,
  .section_12,
  .section_18,
  .section_19 {
    width: calc(100% - 32px) !important;
    margin-left: 16px !important;
    margin-right: 16px;
    flex-wrap: wrap;
    height: auto !important;
  }

  .section_19 {
    align-items: center !important;
    background-size: cover !important;
    padding-bottom: 40px;
  }

  .text-wrapper_4 {
    width: 100% !important;
    margin-top: 60px !important;
    justify-content: center !important;
  }

  .text_35 {
    width: auto !important;
    white-space: normal !important;
    text-align: center;
    padding: 0 16px;
  }

  .box_9 {
    width: 100% !important;
    max-width: 320px;
    height: auto !important;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0 0 0 !important;
    margin-left: 0 !important;
    align-items: center;
    align-self: center !important;
  }

  .box_9_col_left,
  .box_9_col_mid,
  .box_9_col_right {
    width: 100% !important;
  }

  .box_9_col_mid {
    display: none;
  }

  .text-wrapper_5,
  .text-wrapper_6 {
    width: 100% !important;
    max-width: 280px;
    height: auto !important;
    min-height: 90px;
  }

  .section_11 {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-top: 40px !important;
  }

  .group_5,
  .group_6,
  .group_7 {
    width: 100% !important;
    max-width: 320px;
  }

  .image_11 {
    margin-top: 0 !important;
  }

  .image_15,
  .image_16,
  .image_18,
  .image_19,
  .image_21,
  .image_23 {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    margin: 16px auto !important;
    display: block;
  }

  .image_17,
  .image_20 {
    display: none;
  }

  .box_10 {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 360px;
    height: auto !important;
    margin: 24px 0 0 0 !important;
    margin-left: 0 !important;
    align-self: center !important;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .box_11,
  .box_14 {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
  }

  .box_12,
  .box_14 {
    transform: none !important;
    margin-top: 0 !important;
  }

  .image_22 {
    margin: 0 !important;
    transform: rotate(90deg);
  }

  /* 页脚 */
  .section_20 {
    width: 100%;
    height: auto;
    min-height: 280px;
    margin-top: 60px;
    background-size: 100% auto;
    background-position: center bottom;
  }

  .group_14 {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 24px 16px 0;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .image_24 {
    width: 80px;
    height: auto;
  }

  .text_38,
  .text_39 {
    width: auto;
    margin: 8px 0 0;
    white-space: normal;
    text-align: center;
  }

  .lang_switcher_footer {
    margin: 8px 0 0;
    z-index: 20;
  }

  .lang_switcher_footer .lang_switcher_menu {
    top: auto;
    bottom: calc(100% + 8px);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .image_25 {
    width: 120px;
    height: auto;
    margin: 16px 0 0;
  }

  .group_15 {
    width: 100%;
    height: auto;
    margin-top: 0;
    padding-bottom: 24px;
    z-index: 1;
  }

  .box_17 {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 16px;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .text_41 {
    margin: 0;
    text-align: center;
  }

  /* ===== H5 适配补漏：清除 1920 固定稿遗留的偏移/不换行，消除横向溢出 ===== */

  /* 纯装饰空块 / 固定稿里错位的小装饰，移动端隐藏 */
  .section_10,
  .image_11 {
    display: none !important;
  }

  /* 特性卡片区（No ads / data support / Data protection）整体居中 */
  .group_5,
  .group_6,
  .group_7 {
    margin-left: 0 !important;
    margin-right: 0 !important;
    align-items: center;
    height: auto !important;
  }

  .image-wrapper_8,
  .image-wrapper_9,
  .image-wrapper_10 {
    margin: 0 auto !important;
  }

  .text-group_5,
  .text-group_6,
  .text-group_7 {
    align-items: center;
    text-align: center;
    margin-top: 12px !important;
  }

  .text_19,
  .text_21,
  .text_23 {
    width: auto !important;
    height: auto !important;
    margin-left: 0 !important;
    white-space: normal !important;
    text-align: center;
  }

  .text_20,
  .text_22,
  .text_24 {
    max-width: 300px;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
  }

  /* “Evaluate the quality of your foods” 标题去掉左偏移 */
  .text_25 {
    margin-left: 0 !important;
    text-align: center;
  }

  /* 食品 / 饮料对比区改为纵向居中堆叠 */
  .section_12,
  .section_18 {
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px;
  }

  .group_8,
  .block_5 {
    position: relative !important;
    width: 100% !important;
    max-width: calc(100% - 32px) !important;
    height: auto !important;
    margin: 0 auto !important;
  }

  .text_27,
  .text_33 {
    width: 100% !important;
    height: auto !important;
    margin-top: 8px !important;
    text-align: center;
    line-height: 1.6;
  }

  .text_28,
  .text_34 {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    margin-left: 0 !important;
    white-space: normal !important;
    text-align: center;
    line-height: 1.6;
  }

  /* 标签药丸堆居中 */
  .group_9,
  .block_1 {
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    align-items: center;
  }

  /* “Avoid / Poor” 标签行居中、去掉左偏移 */
  .section_17 {
    width: 100% !important;
    margin: 24px auto 0 !important;
    justify-content: center;
  }

  /* “Get recommendations” 标题约束在视口内 */
  .text_35 {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
}
