/* ============================================
   i-services 页面样式
   仅作用于 .i-services 容器内的元素，避免污染全局
   ============================================ */

/* ---------- 通用页面容器 ---------- */
.i-services .page_conten_main {
  padding: 0.8rem 2.38rem;
  max-width: 14.40rem;
  margin: 0 auto;
  background: #ffffff;
}

/* ============================================
   Quality Assurance Phase 原有样式
   ============================================ */
.i-services .quality_assurance_phase {
  padding: 1.66rem 2.38rem;
  background: #ffffff;
}

.i-services .page_0 {
  background-color: var(--bg-light-blue);
}
.i-services .row-reverse.page_1 {
  background-color: #ffffff;
}

.i-services .quality-header {
  text-align: center;
  margin-bottom: 0.6rem;
}

.i-services .quality-title {
  font-size: var(--font-size-30);
  font-weight: bolder;
  color: var(--primary-color);
  line-height: 1.6;
  margin-bottom: 0.24rem;
}

.i-services .quality-subtitle {
  font-size: var(--font-size-22);
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 0.6rem;
}

.i-services .quality-content {
  display: flex;
  gap: 0.67rem;
  margin-top: 0.8rem;
}

.i-services .quality-left {
  flex: 1;
}

.i-services .quality-left img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
}

.i-services .quality-right {
  flex: 1;
}

.i-services .quality-intro {
  font-size: var(--font-size-22);
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 0.4rem;
}

.i-services .row-reverse {
  background-color: var(--bg-light-blue);
}

.i-services .row-reverse .quality-content {
  flex-direction: row-reverse;
}

/* 通用 feature-item 样式（供 quality 与 subscription 共用） */
.i-services .feature-item {
  border-bottom: 1px solid #bbbbbb;
  padding-top: 0.36rem;
  padding-bottom: 0.36rem;
  padding-left: 0.05rem;
  padding-right: 0.17rem;
}

.i-services .feature-item.active {
  border-top: 1px solid #bbbbbb;
}

.i-services .feature-item:first-child {
  border-top: 1px solid #bbbbbb;
}

.i-services .feature-item:last-of-type {
  border-bottom: none;
  margin-bottom: 0.3rem;
}

.i-services .feature-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.i-services .feature-title {
  font-size: var(--font-size-22);
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.1rem;
  line-height: 1.4;
}

.i-services .feature-header .digg-icon {
  width: 0.08rem;
  height: 0.08rem;
  background: var(--primary-color);
  border-radius: 50%;
  margin-right: 0.1rem;
}

.i-services .feature-icon {
  font-size: var(--font-size-30);
  color: var(--primary-color);
  margin-left: 0.15rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.i-services .feature-item.active .feature-icon {
  color: var(--lightblue-color);
}

.i-services .feature-content {
  margin-top: 0.26rem;
  will-change: max-height, opacity;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.i-services .feature-content p {
  font-size: var(--font-size-16);
  color: var(--text-light-gray);
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   新增：Video Phase 视频播放模块
   ============================================ */
.i-services .video-phase {
  background: #ffffff;
  width: 100%;
  height: 100vh;
}

.i-services .video-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 0.12rem 0.4rem rgba(6, 29, 89, 0.12);
}

.i-services .video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 2;
  transition: opacity 0.4s ease;
}

.i-services .video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.i-services .video-poster.hide {
  opacity: 0;
  pointer-events: none;
}

.i-services .video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  z-index: 3;
  outline: none;
  transition: all .2s;
}

.i-services .video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.i-services .video-play-btn:active {
  transform: translate(-50%, -50%) scale(0.96);
}

.i-services .video-play-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  position: relative;
  z-index: 2;
}

.i-services .video-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 1;
  background: #000;
  object-fit: cover;
}

.i-services .video-player.active {
  display: block;
}

.i-services .video-player.active + .video-poster,
.i-services .video-wrap.playing .video-poster {
  display: none;
}

/* ============================================
   新增：AI Intelligent Scheduling 模块
   ============================================ */
.i-services .ai-scheduling-phase {
  background-color: #eef4fb;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  aspect-ratio: 2 / 1;
}

.i-services .ai-scheduling-main {
  position: absolute;
  z-index: 1;
  width: 100%;
  left: 2.3rem;
  top: 1.5rem;
}
.i-services .ai-bg{
  width: 100%;
}
.i-services .ai-scheduling-header {
  text-align: left;
  max-width: 6.6rem;
  margin-bottom: 0.36rem;
}

.i-services .ai-scheduling-title {
  font-size: var(--font-size-30);
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.4;
  margin-bottom: 0.14rem;
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.1rem;
}

.i-services .ai-scheduling-subtitle {
  font-size: var(--font-size-22);
  color: var(--text-gray);
  line-height: 1.6;
  margin: 0;
}

.i-services .ai-scheduling-intro {
  font-size: var(--font-size-22);
  color: var(--text-gray);
  line-height: 1.7;
  margin: 0 0 0.3rem;
}

.i-services .ai-scheduling-note {
  font-size: var(--font-size-14);
  color: var(--text-light-gray);
  line-height: 1.6;
  margin: 0;
  max-width: 4.6rem;
}

/* ============================================
   新增：Subscription Management 模块
   ============================================ */
.i-services .subscription-phase {
  background: url('../images/i-services/usage_bg.jpg') center/cover no-repeat;
  padding: 1.52rem 1.8rem .6rem;

}

.i-services .subscription-main {
  position: relative;
  z-index: 1;

}

.i-services .subscription-header {
  text-align: center;
  margin-bottom: 0.4rem;
}

.i-services .subscription-title {
  font-size: var(--font-size-30);
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.4;
  margin-bottom: 0.14rem;
}

.i-services .subscription-subtitle {
  font-size: var(--font-size-22);
  color: var(--text-gray);
  line-height: 1.6;
  margin: 0;
}

.i-services .subscription-content {
  margin-top: 0.1rem;
}

.i-services .subscription-intro {
  font-size: var(--font-size-18);
  color: var(--text-gray);
  line-height: 1.7;
  margin: 0 0 0.36rem;
  font-weight: 500;
}

.i-services .subscription-section-title {
  font-size: var(--font-size-22);
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.5;
  margin: 0 0 0.22rem;
  display: flex;
  align-items: baseline;
  gap: 0.1rem;
}

.i-services .subscription-bullet {
  color: var(--primary-color);
  font-size: var(--font-size-22);
  line-height: 1;
}

.i-services .subscription-desc {
  font-size: var(--font-size-18);
  color: var(--text-gray);
  line-height: 1.7;
  margin: 0 0 0.22rem;
  font-weight: 400;
  padding-left: .2rem;
}

.i-services .subscription-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.18rem;
  margin: 0.32rem 0;
}

.i-services .subscription-card {
  background: #ffffff;
  border-radius: 0.08rem;
  padding: 0.26rem 0.18rem 0.22rem;
  text-align: center;
  box-shadow: 0 0.06rem 0.18rem rgba(6, 29, 89, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #d8ebf5;

}

.i-services .subscription-card-icon {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 0.08rem;
  margin-bottom: 0.16rem;
  box-shadow: 0 0.04rem 0.14rem rgba(105, 199, 236, 0.4);
}
.i-services .subscription-card-icon .ic{
  width: 100%;
  height: 100%;
}
.i-services .subscription-card-desc {
  font-size: var(--font-size-18);
  color: var(--text-gray);
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
}

.i-services .subscription-footer-note {
  font-size: var(--font-size-14);
  color: var(--text-light-gray);
  line-height: 1.7;
  margin: 0.3rem 0 0;
}

/* ============================================
   Footnote 注释弹框样式
   ============================================ */
.i-services .footnote-modal-content {
  position: absolute;
  background: #ffffff;
  border-radius: 8px;
  padding: 0.2rem 0.2rem;
  width: max-content;
  max-width: 8rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  pointer-events: auto;
  bottom: calc(100% + var(--font-size-14));
  left: 0;
  white-space: normal;
  z-index: 1000;
  word-wrap: break-word;
  overflow-wrap: break-word;
  display: none;
}

.i-services .footnote-modal-content.show-top {
  bottom: calc(100% + var(--font-size-14));
  top: auto;
}

.i-services .footnote-modal-content.show-bottom {
  top: calc(100% + var(--font-size-14));
  bottom: auto;
}

.i-services .footnote-modal-content.show-left {
  left: 0;
  right: auto;
}

.i-services .footnote-modal-content.show-right {
  right: 0;
  left: auto;
  transform: translateX(0);
}

.i-services .footnote-modal-content.show-center {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

.i-services .footnote-text {
  font-size: var(--font-size-16);
  color: var(--text-gray);
  line-height: 1.5;
  margin: 0;
}

.i-services .footnote-trigger {
  cursor: pointer;
  color: var(--primary-color);
  font-size: var(--font-size-18);
  margin-left: 0.05rem;
  transition: color 0.3s ease;
  display: inline-block;
  position: relative;
  vertical-align: super;
  line-height: 0;
  z-index: 99999;
}

.i-services .footnote-trigger::before {
  content: '*';
}

.i-services .footnote-trigger:hover {
  color: var(--lightblue-color);
}

.i-services .disclaimer{
  font-size: var(--font-size-14);;
  color: #666666;
  margin-top: .48rem;
}

@media (min-width: 768px) {
  .i-services .footnote-trigger:hover .footnote-modal-content {
    display: inline-block;
  }
}

/* ============================================
   移动端适配 (<= 768px)
   ============================================ */
@media (max-width: 768px) {
  .i-services .page_conten_main,
  .i-services .quality_assurance_phase,
  .i-services .subscription-phase {
    padding: 1rem 0.3rem;
    max-width: 100%;
  }

  /* 视频 */
  .i-services .video-wrap {
    max-width: 100%;
    aspect-ratio: 16 / 9;
  }


  /* quality 区块 */
  .i-services .quality-header {
    margin-bottom: 0.4rem;
  }

  .i-services .quality-title {
    font-size: var(--font-size-22);
    margin-bottom: 0.2rem;
    line-height: 1.5;
  }

  .i-services .quality-subtitle {
    font-size: var(--font-size-18);
    margin-bottom: 0.4rem;
    line-height: 1.5;
  }

  .i-services .quality-content {
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.5rem;
  }

  .i-services .row-reverse .quality-content {
    flex-direction: column;
  }

  .i-services .quality-left,
  .i-services .quality-right {
    width: 100%;
  }

  .i-services .quality-left {
    order: 1;
  }

  .i-services .quality-right {
    order: 2;
  }

  .i-services .quality-left img {
    width: 100%;
    height: auto;
  }

  .i-services .quality-intro {
    font-size: var(--font-size-16);
    margin-bottom: 0.3rem;
    line-height: 1.6;
  }

  .i-services .feature-item {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    padding-left: 0.05rem;
    padding-right: 0.1rem;
  }

  .i-services .feature-title {
    font-size: var(--font-size-18);
    line-height: 1.4;
  }

  .i-services .feature-content {
    margin-top: 0.2rem;
  }

  .i-services .feature-content p {
    font-size: var(--font-size-14);
    line-height: 1.5;
  }

  .i-services .feature-icon {
    font-size: var(--font-size-24);
  }

  .i-services .feature-header .digg-icon {
    width: 0.1rem;
    height: 0.1rem;
    margin-right: 0.08rem;
  }

  /* AI 调度 */
  .i-services .ai-scheduling-phase {
    display: block;
    aspect-ratio: auto;
  }
  .i-services .ai-scheduling-main{
    left: 0;
    top: 1rem;
    padding: 0 .3rem;
    box-sizing: border-box;
  }
  .i-services .ai-scheduling-header {
    max-width: 100%;
    margin-bottom: 0.28rem;
  }

  .i-services .ai-scheduling-title {
    font-size: var(--font-size-26);
    gap: 0.05rem;
    line-height: 1.3;
  }

  .i-services .ai-scheduling-tag {
    font-size: var(--font-size-16);
  }

  .i-services .ai-scheduling-subtitle {
    font-size: var(--font-size-16);
    max-width: 100%;
    line-height: 1.5;
  }

  .i-services .ai-scheduling-intro {
    font-size: var(--font-size-16);
    max-width: 100%;
    margin-bottom: 0.24rem;
  }

  .i-services .ai-scheduling-note {
    font-size: var(--font-size-14);
    max-width: 100%;
  }

  /* 订阅管理 */
  .i-services .subscription-header {
    margin-bottom: 0.3rem;
  }

  .i-services .subscription-title {
    font-size: var(--font-size-30);
    line-height: 1.3;
  }

  .i-services .subscription-subtitle {
    font-size: var(--font-size-16);
    line-height: 1.5;
  }

  .i-services .subscription-content {
    margin-top: 0.04rem;
  }

  .i-services .subscription-intro {
    font-size: var(--font-size-16);
    line-height: 1.7;
    margin-bottom: 0.28rem;
  }

  .i-services .subscription-section-title {
    font-size: var(--font-size-20);
    margin-bottom: 0.18rem;
    line-height: 1.5;
  }

  .i-services .subscription-bullet {
    font-size: var(--font-size-24);
  }

  .i-services .subscription-desc {
    font-size: var(--font-size-16);
    line-height: 1.7;
    margin-bottom: 0.18rem;
  }

  .i-services .subscription-cards {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    margin: 0.24rem 0;
  }

  .i-services .subscription-card {
    flex-direction: row;
    text-align: left;
    padding: 0.22rem 0.2rem;
    align-items: center;
  }

  .i-services .subscription-card-icon {
    width: 0.6rem;
    height: 0.6rem;
    min-width: 0.6rem;
    margin-bottom: 0;
    margin-right: 0.2rem;
    font-size: var(--font-size-30);
  }

  .i-services .subscription-card-desc {
    font-size: var(--font-size-16);
    flex: 1;
  }

  .i-services .subscription-footer-note {
    font-size: var(--font-size-14);
    line-height: 1.6;
    margin-top: 0.24rem;
  }

  /* footnote 移动端 */
  .i-services .footnote-modal-content {
    max-width: calc(80svw - 2rem);
  }

  .i-services .footnote-trigger {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .i-services .footnote-modal-content.active {
    display: inline-block !important;
  }
}
