/* 社区营销页 */
/* 站点全局行高是 1.5，设计稿为 1.7，仅在本页作用域内对齐 */
.m-cm-page {
  line-height: 1.7;
}
.m-cm-wrap {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 32px;
}

/* 首屏：与关于我们页统一（500px 高、50% 遮罩、42/24 字号） */
.m-cm-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background: #f0f5fb;
  text-align: center;
}
.u-cm-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.m-cm-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.u-cm-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 88%;
  margin: 0 auto;
}
.u-cm-hero-title {
  font-size: 42px;
  font-weight: 700;
  font-family: "Microsoft YaHei";
  line-height: normal;
  color: #fff;
  margin-bottom: 12px;
}
.u-cm-hero-desc {
  font-size: 24px;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", SimHei, Arial, Helvetica, sans-serif;
  line-height: 28px;
  color: #fff;
  margin: 0 auto;
}

/* 通用区块 */
.m-cm-section {
  padding: 90px 0;
}
.m-cm-section-soft {
  background: #f7f8fa;
}
.m-cm-head {
  margin-bottom: 40px;
}
.u-cm-title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.5px;
  color: #262626;
  margin-bottom: 0;
}
.u-cm-desc {
  font-size: 15px;
  line-height: 1.9;
  color: #8a8f98;
  margin-top: 12px;
  max-width: 820px;
}

/* 关于 */
.m-cm-about p {
  font-size: 16px;
  line-height: 2.1;
  color: #4a4a4a;
  max-width: 980px;
  margin-bottom: 0;
}
.m-cm-about strong {
  color: #fb4747;
  font-weight: 600;
}

/* 数据条 */
.m-cm-stats {
  background: #fb4747;
  color: #fff;
  padding: 42px 0;
}
.u-cm-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}
.u-cm-stat-item + .u-cm-stat-item {
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}
.u-cm-stat-num {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
}
.u-cm-stat-num small {
  font-size: 17px;
  font-weight: 600;
  margin-left: 2px;
}
.u-cm-stat-label {
  font-size: 14px;
  opacity: 0.9;
  margin-top: 8px;
}

/* 图文板块：把社区装进APP / 回家路上的相遇 */
.m-cm-split {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 28px;
  align-items: center;
}
.m-cm-split-offline {
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 56px;
}
.u-cm-feature-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.5px;
  color: #262626;
  text-align: left;
  margin-bottom: 14px;
}
.u-cm-feature-lead {
  font-size: 15px;
  line-height: 2;
  color: #6a6f78;
  margin-bottom: 0;
  max-width: 540px;
}

/* 板块列表 + 红色箭头 */
.m-cm-feed-list {
  position: relative;
  /* 与右侧 APP 截图中的手机屏幕对齐（新图 1348/1805 屏幕区占 1.6%~76.3%，旧图占 4.9%~88%） */
  margin-top: 42px;
}
.m-cm-split .m-cm-feed-list-offline {
  margin-top: 22px;
}
.u-cm-feed-item {
  position: relative;
  padding-right: 26px;
}
.u-cm-feed-item strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: #262626;
  transition: transform 0.5s cubic-bezier(0.22, 0.68, 0.3, 1);
}
.u-cm-feed-item p {
  font-size: 14px;
  line-height: 1.95;
  color: #6a6f78;
  margin: 3px 0 0;
  transition: transform 0.5s cubic-bezier(0.22, 0.68, 0.3, 1);
}
.u-cm-feed-item.is-on strong,
.u-cm-feed-item.is-on p {
  transform: translateX(26px);
}
.u-cm-feed-item + .u-cm-feed-item {
  margin-top: 15px;
}
.m-cm-feed-list .u-cm-feed-item {
  cursor: pointer;
}
.m-cm-feed-list .u-cm-feed-item:focus {
  outline: none;
}
/* 不依赖 :focus-visible 的支持度，同时保留可见焦点环 */
.m-cm-feed-list .u-cm-feed-item:focus-visible {
  outline: 2px solid #fb4747;
  outline-offset: 6px;
  border-radius: 2px;
}
.m-cm-feed-list .u-cm-feed-item:hover strong,
.m-cm-feed-list .u-cm-feed-item:focus-visible strong {
  color: #fb4747;
}

.u-cm-feed-arrow {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 12px;
  height: 14px;
  transition: transform 0.5s cubic-bezier(0.22, 0.68, 0.3, 1);
  will-change: transform;
  pointer-events: none;
}
.u-cm-feed-arrow-in {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
}
.u-cm-feed-arrow svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: #fb4747;
}
.u-cm-feed-arrow-in.is-pop {
  animation: cmArrowPop 0.5s cubic-bezier(0.22, 0.68, 0.3, 1);
}
@keyframes cmArrowPop {
  0% {
    opacity: 0;
    transform: translateX(-8px) scale(0.5);
  }
  55% {
    opacity: 1;
    transform: translateX(2px) scale(1.12);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* 手持手机整图轮播 */
.u-cm-app-scene {
  position: relative;
  width: 100%;
  max-width: 505px;
  margin: 0 auto;
  justify-self: center;
  aspect-ratio: 1348 / 1805;
}
.u-cm-app-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.55s ease, transform 0.9s ease;
}
.u-cm-app-slide.is-on {
  opacity: 1;
  transform: scale(1);
}
.u-cm-app-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}


@media (prefers-reduced-motion: reduce) {
  .u-cm-app-slide,
  .u-cm-offline-slide,
  .u-cm-feed-item strong,
  .u-cm-feed-item p,
  .u-cm-feed-arrow,
  .u-cm-feed-arrow-in {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* 回家路上的相遇：实景轮播 */
.u-cm-offline-scene {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 3 / 2;
  background: #f4f5f7;
  box-shadow: 0 12px 32px rgba(24, 30, 48, 0.08);
}
.u-cm-offline-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.55s ease, transform 0.9s ease;
}
.u-cm-offline-slide.is-on {
  opacity: 1;
  transform: scale(1);
}
.u-cm-offline-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 案例轮播 */
.m-cm-cases .m-cm-head {
  text-align: center;
  margin-bottom: 36px;
}
.m-cm-cases .u-cm-desc {
  margin-left: auto;
  margin-right: auto;
}
.m-cm-carousel {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
}
.u-cm-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}
.u-cm-tab {
  font-size: 14px;
  color: #4a4a4a;
  background: #fff;
  border: 1px solid #ededed;
  padding: 9px 20px;
  border-radius: 22px;
  cursor: pointer;
  transition: all 0.25s;
  user-select: none;
}
.u-cm-tab:hover {
  border-color: #ffc9c7;
  color: #fb4747;
}
.u-cm-tab.on {
  background: #fb4747;
  border-color: #fb4747;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(251, 71, 71, 0.25);
}
.m-cm-stage {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.1);
}
.m-cm-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.u-cm-slide {
  min-width: 100%;
}
.u-cm-slide img {
  width: 100%;
  /* 与 img 的 width/height 属性配合，避免固定高度拉伸 */
  height: auto;
  display: block;
}
.u-cm-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  color: #262626;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: all 0.2s;
}
.u-cm-arrow:hover,
.u-cm-arrow:focus {
  background: #fb4747;
  color: #fff;
  outline: none;
}
.u-cm-prev {
  left: 18px;
}
.u-cm-next {
  right: 18px;
}
.u-cm-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 22px;
}
.u-cm-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d5d5d5;
  cursor: pointer;
  transition: all 0.3s;
}
.u-cm-dot.on {
  width: 28px;
  border-radius: 5px;
  background: #fb4747;
}

@media (max-width: 1280px) {
  .m-cm-wrap {
    padding: 0 40px;
  }
  .m-cm-split-offline {
    gap: 36px;
  }
  .u-cm-app-scene {
    max-width: 480px;
  }
  .m-cm-feed-list {
    margin-top: 24px;
  }
}

@media (max-width: 980px) {
  .m-cm-split,
  .m-cm-split-offline {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .u-cm-app-scene {
    max-width: 430px;
  }
  .u-cm-feature-title {
    font-size: 25px;
  }
  .u-cm-hero-title {
    font-size: 34px;
  }
  .u-cm-hero-desc {
    font-size: 20px;
    line-height: 26px;
  }
  /* 用带 .m-cm-split 前缀的选择器覆盖桌面端的 22px，避免同断点下线上下两块间距不一致 */
  .m-cm-split .m-cm-feed-list,
  .m-cm-split .m-cm-feed-list-offline {
    margin-top: 32px;
  }
  .m-cm-section {
    padding: 62px 0;
  }
  .u-cm-title {
    font-size: 27px;
  }
  .u-cm-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 0;
  }
  .u-cm-stat-item:nth-child(3) {
    border-left: 0;
  }
  .u-cm-arrow {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }
  .u-cm-prev {
    left: 8px;
  }
  .u-cm-next {
    right: 8px;
  }
  .u-cm-tab {
    font-size: 12px;
    padding: 8px 14px;
  }
}

@media (max-width: 640px) {
  .u-cm-hero-content {
    max-width: 90%;
  }
  .u-cm-hero-title {
    font-size: 28px;
  }
  .u-cm-hero-desc {
    font-size: 16px;
    line-height: 1.6;
  }
  .u-cm-feature-title {
    font-size: 22px;
  }
  .u-cm-feature-lead {
    font-size: 14px;
  }
  .u-cm-feed-item strong {
    font-size: 15px;
  }
  .u-cm-feed-item p {
    font-size: 13.5px;
  }
  .u-cm-app-scene {
    max-width: 320px;
  }
}
