/* =========================================
   H5 公司信息页 — 独立移动端样式（Figma 604:1965）
   仅作用于 max-width: 768px，不修改 company.css / PC 结构
   ========================================= */

@media (max-width: 768px) {
  html {
    font-size: calc(100vw / 3.9);
    min-width: 0;
  }

  body.page--company {
    min-width: 0;
    background: var(--color-black);
  }

  /* 隐藏 PC 主内容与顶栏占位 */
  .page--company #header-placeholder,
  .page--company main.cp {
    display: none !important;
  }

  /* ---------- 图片占位 ---------- */
  .cp-m .img-ph {
    background-color: lightblue;
    display: block;
  }

  /* ---------- 页面容器（顶栏背景与 ct-m 一致） ---------- */
  .cp-m {
    width: 100%;
    background-color: var(--color-black);
    background-image: url('../images/mobile/h5_page_top_bg.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% auto;
    color: var(--color-white);
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
  }

  /* ---------- Banner 区（Figma 604:1994，高 1076px） ---------- */
  .cp-m-banner {
    width: 100%;
    box-sizing: border-box;
  }

  .cp-m-banner__inner {
    padding: 1.28rem 0.24rem 0.48rem;
  }

  /* Hero 标题（Figma 604:2011 — top 128px，gap 8px） */
  .cp-m-hero__heading {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
    padding: 0;
  }

  .cp-m-hero__title {
    margin: 0;
    font-family: var(--font-en);
    font-size: 0.48rem;
    font-weight: 800;
    line-height: normal;
    color: var(--color-white);
    white-space: nowrap;
  }

  .cp-m-hero__subtitle {
    margin: 0;
    font-family: var(--font-zh);
    font-size: 0.2rem;
    font-weight: 700;
    line-height: normal;
    color: var(--color-white);
    opacity: 0.4;
    white-space: nowrap;
  }

  /* Intro（Figma 604:2008 — top 298px，gap 32px） */
  .cp-m-intro {
    display: flex;
    flex-direction: column;
    gap: 0.32rem;
    margin-top: 0.8rem;
    max-width: 3.42rem;
    padding-left: 0.01rem;
  }

  .cp-m-intro__headline {
    margin: 0;
    font-family: var(--font-en);
    font-size: 0.36rem;
    font-weight: 500;
    line-height: normal;
    color: var(--color-white);
    overflow-wrap: break-word;
    word-break: normal;
  }

  .cp-m-intro__body {
    font-family: var(--font-zh);
    font-size: 0.16rem;
    font-weight: 500;
    line-height: 0.3rem;
    color: var(--color-white);
    overflow-wrap: break-word;
    word-break: normal;
  }

  .cp-m-intro__body p {
    margin: 0;
  }

  .cp-m-intro__body p + p {
    margin-top: 0;
  }

  /* 业务示意图（Figma 604:2014 — 342×340，top 688px） */
  .cp-m-diagram {
    width: 3.42rem;
    max-width: 100%;
    margin: 0.35rem auto 0;
  }

  .cp-m-diagram__img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
  }

  /* ---------- Vision（Figma 604:1968 — 390×650） ---------- */
  .cp-m-vision {
    position: relative;
    width: 100%;
    min-height: 6.5rem;
    background-color: #111111;
    background-image: url('../images/mobile/company_vision_bg.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% auto;
    overflow: hidden;
  }

  .cp-m-vision__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    min-height: 6.5rem;
    padding: 0.48rem 0.24rem;
  }

  /* VISION（Figma 604:1971 — top 48px，48px Bold） */
  .cp-m-vision__title {
    margin: 0;
    font-family: var(--font-en);
    font-size: 0.48rem;
    font-weight: 800;
    line-height: normal;
    color: var(--color-white);
    text-align: center;
    white-space: nowrap;
  }

  /* 描述（Figma 604:1972 — top 138px，342×120，16px/30px Medium） */
  .cp-m-vision__desc {
    margin: 0.32rem 0 0;
    width: 100%;
    max-width: 3.42rem;
    font-family: var(--font-zh);
    font-size: 0.16rem;
    font-weight: 500;
    line-height: 0.3rem;
    text-align: center;
    color: var(--color-white);
    overflow-wrap: break-word;
    word-break: normal;
  }

  /* 列表（Figma 604:1973 — left 24px，top 306px，342×296，gap 24px） */
  .cp-m-vision__list {
    align-self: stretch;
    margin: 0.48rem 0 0;
    padding: 0;
    list-style: none;
    width: 100%;
    max-width: 3.42rem;
    display: flex;
    flex-direction: column;
    gap: 0.24rem;
  }

  /* 单项（Figma 604:1974 — 342×56，行与分割线 gap 16px） */
  .cp-m-vision__item {
    display: flex;
    flex-direction: column;
    gap: 0.16rem;
    width: 100%;
  }

  /* 行（Figma 604:1975 — 高 40px，圆点 left 24px，gap 16px） */
  .cp-m-vision__item-row {
    display: flex;
    align-items: center;
    gap: 0.16rem;
    min-height: 0.4rem;
    padding: 0 0.24rem;
    box-sizing: border-box;
  }

  .cp-m-vision__item-dot {
    flex-shrink: 0;
    width: 0.16rem;
    height: 0.16rem;
    border-radius: 50%;
    border: 1px solid var(--color-white);
    background: transparent;
    box-sizing: border-box;
  }

  .cp-m-vision__item-text {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-family: var(--font-zh);
    font-size: 0.18rem;
    font-weight: 400;
    color: var(--color-white);
    overflow-wrap: break-word;
    word-break: normal;
  }

  .cp-m-vision__divider {
    display: block;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
  }

  /* ---------- 办公环境图（Figma 604:1967 — 390×320） ---------- */
  .cp-m-office {
    width: 100%;
  }

  .cp-m-office__img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
  }
}

@media (min-width: 769px) {
  .cp-m {
    display: none !important;
  }
}
