.g-header,
.adv,
.m-side {
  display: block !important;
}

#esim_body {
  text-align: center;
  font-weight: bold;
  font-family: 'meiryo', sans-serif;
}



.floating-order-module {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  /* width: 100%; */
  position: relative;
  left: 20%;
  background: transparent;
  border-radius: 0 0 8px 8px;
  box-shadow: none;
  transition: all 0.3s ease;
  min-width: 130px;
  width: 339px;
  text-align: center;
  -webkit-align-items: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
}

.order-indicator {
  padding: 0px 16px;
  font-size: 16px;
  text-align: center;
  position: relative;
  min-width: -webkit-fit-content;
  min-width: -moz-fit-content;
  min-width: fit-content;
  white-space: nowrap;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  min-height: 45px;
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 0.61;
  /* 让两个元素平分空间 */
}

.left-module {
    background-color: white;
    color: #008856;
    border-bottom-left-radius: 20px;
    -webkit-flex: 0 1 auto;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
    /* Auto width based on content */
    max-width: 250px;
  /* 设置最大宽度 */
    word-wrap: break-word;
    white-space: normal;
    text-align: center;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    height: 100%;
    width: 207px;
}

.right-module {
    background-color: #008856;
    color: white;
    border-bottom-right-radius: 20px;
    -webkit-flex: 0 1 auto;
    -ms-flex: 0 1 auto;
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    cursor: pointer;
    width: 132px;
}

.right-module .order-text {
  text-decoration: underline;
  text-underline-offset: 9px; 
  /* Add underline to right module text */
}

.right-module .order-icon {
  text-decoration: underline;
  /* Add underline to right module text */
}

.order-text {
  color: inherit;
  font-weight: bold;
  display: block;
}

.order-icon {
  font-size: 16px;
}


/* Carousel container */
.carousel-container {
  /* position: relative;
overflow: hidden;
padding: 0 40px;
margin: 9px 0;
display: flex;
justify-content: center;
align-items: center; */
  position: relative;
  overflow: hidden;
  padding: 0 3vw;
  /* 替代固定 40px，iPhone/安卓边距自适应 */
  margin: 2vw 0;
  max-width: 100vw;
  box-sizing: border-box;
  -webkit-transform: translateZ(0);

}



/* Plan card wrapper for horizontal layout */
.plan-card-wrapper {
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  position: relative;
  margin: 20px 0px;
}

/* Base plan card styles */
.plan-card {
  background: #f6fdf2;
  border-radius: 28px;
  /* padding: 15px; */
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: relative;
  min-width: 280px;
  flex-shrink: 0;
  transition: all 0.3s ease;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Center card (active) styles - 当前选中产品样式 */
.plan-card.active {
  background: #e9fadf;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  /* transform: scale(1.05); */
  border-radius: 28px;
}


.plan-card.active .btn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.notice-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
  padding: 0px 0px 46px 0px;
}

.notice-content {
  text-align: left;
  /* 文字在75%内居左 */
  margin: 0;
}


.esim-content-margin {
  margin: 17px 6px;
  /* 左右边距 */
}


/* Mobile adjustment - 优先考虑移动端 */
@media (max-width: 768px) {
  .header-image {
    margin-top: 32px;
  }
  .g-con{
    padding-top: 0 !important;
  }
  .right-module .order-text {
  text-decoration: underline;
  text-underline-offset: 1vw; 
  /* Add underline to right module text */
  }
  .right-module{
    width: 24vw;
  }
  .section-title {
    text-align: center;
    font-size: 5.34vw;
    font-weight: bold;
    color: #008856;
    margin: 8.4vw 0 5.34vw;
    position: relative;
    padding-bottom: 1.48vw;
  }

  .section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0px;
    width: 30px;
    height: 5px;
    background-color: #008856;
    transform: translateX(-50%);
    border-radius: 28px;
  }

  .carousel-track {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    width: 100%;
    justify-content: center;
    /* 单卡居中；如需滑动露出两侧边缘可改为 flex-start */
    align-items: center;
    position: relative;
    margin: 0;
    gap: 3vw;
  }

  .carousel-container {
    position: relative;
    overflow: hidden;
    padding: 0 40px;
    margin: 1px 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .plan-card.active {
    border-radius: 5vw;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
  }

  .plan-card .main-box,
  .plan-card.active .main-box {
    width: 90%;
    /* 替代固定 478px */
    max-width: 100%;
    height: auto;
    /* 替代固定 301px */
    min-height: 180px;
    /* 加载前防塌陷 */
    margin: 3vw auto;
    border-radius: 20px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    position: relative;
    overflow: visible;
    padding-bottom: 40vw;
  }

  /* 图片自适应 */
  .main-box .esim-product-img {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    display: block;

  }

  /* 统一覆盖 left / center / right 三个 wrapper */
  .plan-card-wrapper,
  .plan-card-wrapper.center,
  .plan-card-wrapper.left,
  .plan-card-wrapper.right {
    width: 82vw;
    /* 核心：基于视口宽度自适应 */
    max-width: 528.34px;
    /* 上限保护，防止安卓大屏过度拉伸 */
    height: auto;
    /* 替代固定 654px，由内容撑开 */
    min-height: auto;
    margin: 1vw auto;
    /* 简化边距，替代原先分散的 margin */
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    /* 保持轮播滑动时不变形 */
  }



  .carousel-nav {
    position: absolute;
    top: 43%;
    width: 10vw;
    height: 10vw;
    max-width: 86px;
    max-height: 86px;
    min-width: 32px;
    min-height: 32px;
    background: #4caf50;
    border: none;
    border-radius: 50%;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    z-index: 2;
  }

  .carousel-prev {
    left: 1vw;
    /* 替代固定 10px，超窄屏不越界 */
  }

  .carousel-next {
    right: 1vw;
  }

  .btn-icon-tab {
    width: 100%;
    height: 100%;
    display: block;
  }

  /* 标题 */
  .plan-card .title,
  .plan-card.active .title {
    font-size: clamp(16px, 1vw, 28px);
    /* 流式字号 */
    margin: 2vw 0 0 2vw;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* 价格 */
  .plan-card .price,
  .plan-card.active .price {
    font-size: clamp(22px, 6.5vw, 40px);
    text-align: left;
    margin: 2vw 0 0 4vw;
  }

  /* 描述 */
  .plan-card .description,
  .plan-card.active .description {
    font-size: clamp(13px, 3.5vw, 20px);
    line-height: 1.4;
    text-align: left;
    margin: 1vw 4vw 0;
  }

  /* 按钮：统一改为自适应，避免固定 180px/226px 在小屏溢出 */
  .plan-card .btn,
  .plan-card.active .btn {
    width: auto;
    min-width: 120px;
    max-width: 80%;
    height: auto;
    min-height: 44px;
    /* iPhone 人机界面指南最小点击区域 44px */
    padding: 1vw 5vw;
    font-size: clamp(15px, 4vw, 23px);
    font-weight: bold;
    margin: 4vw auto 0;
    border-radius: 30px;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    /* 去除安卓点击高亮 */
  }

  .plan-card.active .btn {
    width: auto;
    /* 覆盖原固定 226.43px */
    max-width: 80%;
    background-color: #44b400;
    color: white;
    border: none;
  }

  /* 卡片本体去除固定下限 */
  .plan-card {
    min-width: auto;
    /* 覆盖原 210px，防止小屏溢出 */
    width: 100%;
    height: auto;
    border-radius: 5vw;
    /* 流式圆角，各机型比例一致 */
    box-sizing: border-box;
    padding-bottom: 7vw;
    overflow: hidden;
  }

  .esim-introduction {
    color: #555;
    text-align: left;
    display: flex;
    justify-content: center;
    margin: 0px 2.67vw 5.34vw;
    font-size: 3.2vw;
    line-height: 4vw;
  }

  .esim_image_width {
    max-width: 100%;
    /* 关键：限制不超过父容器宽度 */
    height: auto;
    /* 关键：保持原始宽高比 */
    display: block;
    /* 消除图片底部间隙，确保 margin 居中生效 */
  }


  /* 角标 */
  .badge-corner {
    position: absolute;
    top: -2.6vw;
    left: -9.33vw;
    background-color: #FB8C00;
    color: white;
    min-width: 18vw;
    height: 6vw;
    padding: 2.5vw 0 0 0;
    line-height: 3vw;
    font-size: clamp(1.73vw, 2vw, 3.33vw);
    text-align: center;
    z-index: 1;
    transform: rotate(-45deg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }


  .order-text {
    font-size: 3.2vw;
  }

  .order-text-a {
    font-size: 2.53vw;
  }


  .order-indicator {
    /* height: 60px; */
    width: 180px;
  }

  #esim_body {
    top: 55px;
  }

  .floating-order-module {
    top: 58px;
    left: 15px;
    max-width: 150px;
  }

  .header-image img {
    margin-top: -10px;
  }

  /* 移动端的左模块允许换行和设置最大宽度 */
  .left-module {
    min-width: 105px;
    /* 移动端更小的最大宽度 */
    word-wrap: break-word;
    white-space: normal;
    text-align: left;
  }
  .order-indicator{
    min-height: 36px;
  }

  .order-icon {
    width: 6px;
    height: 9px;
    margin: 0px 0px 0px 6px;
  }

  .notice-container {
    flex-direction: column;
    align-items: flex-start;
    /* 标题与内容左对齐；如需整体居中可改为 center */
  }

  .notice-title {
    width: 100%;
    margin: 2vw 0 0 0;
    /* 清除固定左外边距，增加下间距 */
    padding: 0;
    box-sizing: border-box;
    font-size: 3.2vw;
    /* 明确字号，防止 iPhone/安卓 继承渲染差异 */
    font-weight: bold;
    color: #333;
    text-align: left;
    word-wrap: break-word;
    /* 长标题自动换行，防文本溢出 */
    overflow-wrap: break-word;
  }

  .notice-content {
    width: 100%;
    /* 由容器 padding 控制边距，替代固定 94% */
    font-size: 2.67vw;
    line-height: 3.33vw;
    box-sizing: border-box;
  }

  .jp-body .jp-index-footer .other-link .link-a {
    white-space: normal;
  }
}

/* PC adjustment - PC端卡片尺寸略大于左右未选中商品 */
@media (min-width: 769px) {
  .header-image img {
    margin-top: -16px;
  }

  /* 中间卡片 */
  .plan-card-wrapper.center {
    height: 520px;
    width: 420px;
  }

  /* Card content styles */
  .plan-card .main-box {
    background-color: #44b400;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 338.58px;
    height: 213.84px;
    margin: 20px;
    border-radius: 28px;
  }

  /* Active card styles - 主图区域使用深绿色背景 */
  .plan-card.active .main-box {
    /*background-color: #44b400;*/
    /* 深绿色背景 */
    width: 380px;
    height: 240px;
    margin: 20px;
    border-radius: 26px;
  }

  /* 左侧卡片 */
  .plan-card-wrapper.left {
    height: 468px;
    width: 374.22px;
  }



  /* 右侧卡片 */
  .plan-card-wrapper.right {
    height: 468px;
    width: 374.22px;
  }



  /* PC端：按钮放在中间卡片的左右两侧 */
  .carousel-nav {
    position: absolute;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 52%;
    display: flex;
    top: 43%;
    align-items: center;
    justify-content: center;
  }

  /* 左箭头按钮 - 位于中心卡片左侧 */
  .carousel-prev {
    left: calc(33.00%);
    /* 中心卡片左侧 */
  }

  /* 右箭头按钮 - 位于中心卡片右侧 */
  .carousel-next {
    left: calc(64.00%)
    /* 中心卡片右侧 */
  }

  .plan-card .title {
    /* margin: 5px 0; */
    color: #333;
    font-size: 16px;
    margin: 22px 0px 0px 8px;
    text-align: left;
  }

  .plan-card .price {
    /* font-weight: bold; */
    color: #000000;
    /* margin: 10px 0; */
    font-size: 22px;
    text-align: left;
    margin: 10px 0px 0px 18px;
  }

  .plan-card .description {
    color: #333333;
    line-height: 1.4;
    margin: 5px 0;
    font-size: 13px;
    margin: 3px 0px 0px 18px;
    text-align: left;
  }


  .plan-card .btn {
    background-color: #44b400;
    padding-right: 30px;
    color: white;
    padding: 0px 42px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    position: relative;
    width: 160px;
    height: 35px;
    font-size: 19px;
    font-weight: bold;
    margin: 18px 0px 0px 0px;
  } 

  /* PC端：按钮覆盖在卡片上方 */
  .plan-card.active .btn {
    background-color: #44b400;
    cursor: pointer;
    width: 180px;
    height: 40px;
    font-size: 22px;
    font-weight: bold;
    margin: 19px 0px 0px 0px;
  }

  .plan-card.active .title {
    font-size: 18px;
    margin: 0px 0px 0px 10px;
    text-align: left;
  }

  .plan-card.active .price {
    font-size: 25px;
    text-align: left;
    margin: 14px 0px 0px 20px;
  }

  .plan-card.active .description {
    font-size: 15px;
    margin: 4px 0px 0px 20px;
    text-align: left;
  }

  .section-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #008856;
    margin: 80px 0 18px;
    position: relative;
    padding-bottom: 5px;
  }

  .section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 30px;
    height: 3px;
    background-color: #008856;
    transform: translateX(-50%);
    border-radius: 28px;
  }

  .carousel-track {
    gap: 30px;
    /* 卡片之间的间距 */
    display: flex;
    width: 100%;
    /* height: 380px; 固定高度确保布局稳定 */
    justify-content: center;
    align-items: center;
    position: relative;
    margin: -14px 0px;
  }


  .plan-card {
    min-width: 210px;
  }


  .esim_image_width {
    width: 56%;
    margin: 0px 0px 0px 0px;
  }

  .btn-icon-tab {
    width: 50px;
    height: 50px;
  }

  .badge-corner {
    position: absolute;
    top: -23px;
    left: -58px;
    color: white;
    width: 110px;
    height: 17px;
    padding: 21px 0 0 0;
    background-color: #FB8C00;
    text-align: center;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
    transform: rotate(-45deg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    user-select: none;
    z-index: 10;
  }

  .floating-order-module {
    position: absolute;
  }

  .order-icon {
    width: 6px;
    height: 9px;
    margin: 0px 0px 0px 6px;
  }

  .notice-title {
    width: 47%;
    font-size: 18px;
    color: #333333;
    font-weight: bold;
  }

  .notice-content {
    width: 57%;
    font-size: 15px;
    line-height: 21px;
  }

  .esim-introduction {
    font-size: 16px;
    /* 与产品描述字体大小一致 */
    line-height: 1.38;
    color: #555;
    text-align: left;
    display: flex;
    justify-content: center;
    margin: 0px 290px 37px;
  }
}

/* Adjacent card styles - 未选中产品样式 */
.plan-card:not(.active) .main-box {
  background-color: #b4e199;
  /* 浅绿色背景 */

}

.main-box .esim-product-img {
  height: 103%;
  border-radius: 26px;
}


/* Adjacent card text styles - 文本与价格颜色变浅 */
.plan-card:not(.active) .title,
.plan-card:not(.active) .price,
.plan-card:not(.active) .description {
  color: #888;
  /* 变浅的颜色 */
}

/* Adjacent card button styles - 可显示购买按钮，但不可点击 */
.plan-card:not(.active) .btn {
  background-color: #b4e199;
  cursor: not-allowed;
}



.plan-card .icon {
  width: 60px;
  height: 60px;
  background-color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: #4caf50;
  position: relative;
  z-index: 1;
}

.plan-card .icon::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 0;
  width: 10px;
  height: 60px;
  background: linear-gradient(to right, transparent, white);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transform: rotate(15deg);
}


.btn-with-icon {
  padding-right: 35px;
  /* 给图标留出空间 */
  padding-left: 15px;
}

.btn-icon {
  position: absolute;
  right: 12px;
  /* Distance from right edge - adjust as needed */
  top: 50%;
  transform: translateY(-50%);
  margin-left: 8px;
  display: block;
}

.btn.disabled .btn-icon {
  color: #888;
}

.plan-card .btn:hover:not(:disabled) {
  background-color: #388e3c;
}

.plan-card .btn:disabled {
  opacity: 0.6;
}