/* ==========================================================================
 * 移动端设计层（responsive）
 * 仅在 max-width:768px 生效；PC 端浏览完全不受影响。
 * 设计语言：浅蓝白科技风 —— 圆角卡片 + 柔和蓝阴影 + 清晰字阶 + 蓝色点缀。
 * 超宽幅背景图（3840w）在手机上不可读，统一处理为"品牌视觉横幅"圆角卡片；
 * 真正可读的内容（简介/业务/案例/联系）重排为规范移动卡片。
 * ========================================================================== */

/* ==========================================================================
 * 全视口规则（PC 与移动端均生效，仅因内容变更所必需）
 * ========================================================================== */

/* GEO 徽章“生成引擎优化”为 6 字，桌面原固定 72px 宽会截断；
   改为自适应并保留 72px 下限——原 4 字徽章（品牌安全/品牌发展）宽度不变 */
.flex-font2 {
  width: fit-content !important;
  min-width: 72px;
}

/* 卡片头部：文字置于装饰插画之上，避免窄屏时插画遮住标题 */
.flex-font1,
.flex-font2 {
  position: relative;
  z-index: 1;
}

/* band 高度自适应：标题换行时撑开而非溢出 */
.flex-work {
  height: auto;
  min-height: 114px;
  box-sizing: border-box;
  padding-bottom: 14px;
}

/* 装饰插画随卡宽缩放，不再固定 271px 压向标题（内联 style 需 !important） */
.flex-work img {
  width: min(271px, 50%) !important;
  height: auto !important;
  z-index: 0;
}

.flex-font1 {
  height: auto;
  min-height: 40px;
}

/* 业务卡片高度自适应：GEO 增至 7 条后，桌面原固定 480px 容纳不下、末条溢出方框；
   改为自适应高度并让三卡等高（stretch），末条完整落在卡片内。
   仅命中业务卡片行（> .flex），不影响案例区 .bg-work3 内的 .flex */
#publicMonitoring > .flex {
  align-items: stretch;
}

#publicMonitoring .flexOne {
  height: auto;
  padding-bottom: 16px; /* 末条与下边框留呼吸空间，避免贴边或内容增多时再溢出 */
}

/* 窄屏桌面：标题字号收窄，减少与插画交叠（scoped 样式需 !important） */
@media screen and (min-width: 769px) and (max-width: 1200px) {
  .flex-font1 {
    font-size: 22px !important;
  }

  .flex-work img {
    width: 45% !important;
    top: -20px !important;
  }
}

@media screen and (max-width: 768px) {

  /* ---------- 设计令牌 & 全局 ---------- */
  html,
  body {
    overflow-x: hidden;
  }

  body {
    background: #f5f7fb !important;
  }

  #app {
    color: #16233f;
  }

  img {
    max-width: 100%;
  }

  #login,
  #publicMonitoring,
  #agentRecruitment {
    margin-top: 56px; /* 让出固定顶栏 */
    padding-bottom: 8px;
  }

  /* 区块标题：居中 + 渐变点缀条 */
  .titleOne {
    height: auto !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    color: #16233f !important;
    line-height: 1.3 !important;
    letter-spacing: .5px;
    text-align: center !important;
    padding: 26px 20px 0 !important;
    margin: 0 0 4px !important;
  }

  .titleOne::after {
    content: "";
    display: block;
    width: 28px;
    height: 3px;
    border-radius: 2px;
    margin: 9px auto 0;
    background: linear-gradient(90deg, #2f7bff, #7db4ff);
  }

  /* 卡片行：纵向堆叠 */
  .flex {
    flex-wrap: wrap !important;
    padding: 4px 16px 8px !important;
  }

  /* 超宽背景图 → 圆角品牌横幅卡片 */
  .bodyStyle,
  .bbgStyle2,
  .bg-work,
  .bg-work2,
  .bg-plat,
  .bg-plat-work2 {
    height: 150px !important;
    margin: 12px 16px !important;
    width: auto !important;
    border-radius: 16px;
    background-size: cover !important;
    background-position: center !important;
    box-shadow: 0 8px 20px rgba(23, 63, 140, .10);
    overflow: hidden;
    position: relative;
  }
}

/* ---------- 顶部导航 ---------- */
@media screen and (max-width: 768px) {
  .headStyle {
    height: 56px;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(20, 40, 80, .06);
  }

  #userMessage > div > div:first-child {
    width: auto !important;
    height: 56px !important;
    line-height: 56px !important;
    font-size: 17px !important;
    font-weight: 700;
    color: #16233f;
    padding-left: 14px !important;
  }

  #userMessage > div > div:first-child img {
    width: 26px !important;
    height: 26px !important;
    margin-top: 0 !important;
    border-radius: 6px;
  }

  #userMessage > div > div:last-child {
    width: auto !important;
    height: 56px !important;
    line-height: 56px !important;
    margin-right: 14px !important;
  }

  .title1,
  .title2,
  .title3 {
    width: auto !important;
    font-size: 13px !important;
    font-weight: 600;
    color: #45536b;
    white-space: nowrap;
    margin-left: 16px;
  }

  .title1:hover,
  .title2:hover,
  .title3:hover {
    width: auto !important;
    border-bottom: 3px solid #2f7bff;
  }
}

/* ---------- 首页 ---------- */
@media screen and (max-width: 768px) {
  /* 顶部轮播：保留左侧文案 */
  #login .el-carousel,
  #login .el-carousel__container {
    height: 200px !important;
  }

  .bannerImg {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: left center;
  }

  /* 公司简介横幅内标题居中靠上 */
  .bodyStyle {
    height: 170px !important;
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }

  .bodyStyle .titleOne {
    padding-top: 22px !important;
    color: #16233f !important;
  }

  /* 发展历程标题的白色占位块 → 透明 */
  #login [style*="background-color: white"],
  #login [style*="background-color:white"] {
    height: auto !important;
    background: transparent !important;
    padding-bottom: 0 !important;
  }

  /* 公司简介正文：白色圆角卡片 */
  .bbgStyle3 {
    height: auto !important;
    background-image: none !important;
    padding: 4px 16px 16px !important;
    box-sizing: border-box;
  }

  .bbg3Div {
    float: none !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 18px !important;
    box-sizing: border-box;
    background: #fff !important;
    border: 1px solid #eef2f9 !important;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(23, 63, 140, .07);
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    font-size: 14px !important;
    line-height: 1.9 !important;
    color: #3c4a63 !important;
    text-align: justify;
    overflow: visible;
  }

  .bbg3Div span {
    color: #2f7bff !important;
    font-weight: 600 !important;
  }
}

/* ---------- 业务介绍 ---------- */
@media screen and (max-width: 768px) {
  .bg-work3 {
    height: auto !important;
    background-image: none !important;
    padding: 4px 0 12px !important;
  }

  /* 业务卡片 */
  .flexOne {
    width: 100% !important;
    height: auto !important;
    margin: 0 0 14px !important;
    box-sizing: border-box;
    background: #fff !important;
    border: 1px solid #eef2f9 !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 24px rgba(23, 63, 140, .07);
    overflow: hidden;
  }

  .flex-work {
    height: 84px !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 16px !important;
  }

  .flex-font1 {
    height: auto !important;
    min-height: 0 !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #16233f !important;
    line-height: 1.3 !important;
    padding: 0 !important;
  }

  .flex-font2 {
    width: auto !important;
    height: auto !important;
    display: inline-block;
    font-size: 12px !important;
    color: #2f7bff !important;
    line-height: 1.4 !important;
    background: rgba(47, 123, 255, .10);
    border-radius: 999px;
    padding: 3px 10px !important;
    margin: 6px 0 0 !important;
  }

  /* 卡片右上角装饰插画（仅限 band 内那张绝对定位图，勿伤及列表圆点） */
  .flex-work img {
    width: 130px !important;
    height: 72px !important;
    top: -14px !important;
  }

  /* 业务清单行 */
  .flexOne > div:not(.flex-work) {
    padding: 7px 16px !important;
    box-sizing: border-box !important;
    align-items: flex-start;
  }

  /* 隐藏原低清位图圆点（17x12 拉伸会发糊） */
  .flexOne > div:not(.flex-work) > img {
    display: none !important;
  }

  /* 重设计的清单图标：渐变圆角方块 + 白色对勾（内嵌 SVG 矢量，任意 DPI 清晰）
     注意：多图层 background 必须逗号分隔，SVG 层在前（上层） */
  .flexOne > div:not(.flex-work)::before {
    content: "";
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 2px 8px 0 0;
    border-radius: 6px;
    background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20fill='%23fff'%20d='M9.55%2015.65%205.9%2012l-1.4%201.4%205.05%205.05L20.1%207.9l-1.4-1.4z'/%3E%3C/svg%3E") center / 12px 12px no-repeat,
      linear-gradient(135deg, #2f7bff, #6fb0ff);
    box-shadow: 0 2px 6px rgba(47, 123, 255, .35);
  }

  .icon {
    height: auto !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #45536b !important;
    flex: 1 1 auto;
  }

  /* 案例讲解卡片 */
  .flex2One {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 0 14px !important;
    box-sizing: border-box;
    background: #fff !important;
    border: 1px solid #eef2f9 !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 24px rgba(23, 63, 140, .07);
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    overflow: visible !important;
    padding-bottom: 6px;
  }

  .flex-font3 {
    height: auto !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #16233f !important;
    line-height: 1.4 !important;
    padding-top: 18px !important;
  }

  .flex-font4 {
    height: auto !important;
    font-size: 14px !important;
    line-height: 1.85 !important;
    color: #3c4a63 !important;
    padding: 8px 16px 12px !important;
    text-align: justify;
  }

  .flex2One img {
    width: 46px !important;
    height: 46px !important;
    padding: 12px 12px !important;
  }
}

/* ---------- 平台管控 ---------- */
@media screen and (max-width: 768px) {
  /* 三座大山：保留浅色卡片底图，纵向全宽 */
  .flex-plat1,
  .flex-plat2,
  .flex-plat3 {
    width: 100% !important;
    height: 210px !important;
    margin: 0 0 14px !important;
    box-sizing: border-box;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(23, 63, 140, .10);
    overflow: hidden;
  }

  .flex-plat1 img,
  .flex-plat2 img,
  .flex-plat3 img {
    width: 52px !important;
    height: 52px !important;
    padding: 26px 0 10px 0 !important;
  }

  .flex-font-plat1 {
    height: auto !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0d2338 !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
  }

  .flex-font-plat2 {
    height: auto !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    color: #5a6b85 !important;
    margin: 0 24px !important;
  }

  /* 公司风采轮播：全宽照片，等比裁切 */
  #agentRecruitment .el-carousel {
    padding: 8px 16px 24px !important;
  }

  #agentRecruitment .el-carousel__container {
    height: 210px !important;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(23, 63, 140, .10);
  }

  #agentRecruitment .el-carousel__container .el-carousel__item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    position: static !important;
    transform: none !important;
  }
}

/* ---------- 页脚 ---------- */
@media screen and (max-width: 768px) {
  .foot {
    width: 100% !important;
    box-sizing: border-box;
    background: linear-gradient(180deg, #1b2436, #141b29) !important;
    padding: 26px 18px 18px !important;
  }

  .foot > div:first-child {
    width: 100% !important;
    float: none !important;
    display: flex;
    flex-wrap: wrap;
  }

  .foot > div:first-child > div {
    width: 50% !important;
    float: none !important;
    box-sizing: border-box;
    padding-right: 14px;
    margin-bottom: 20px;
  }

  .foot > div:first-child > div > div {
    font-size: 12px !important;
    color: rgba(255, 255, 255, .62) !important;
    margin-bottom: 8px !important;
  }

  .foot > div:first-child > div > div:first-child {
    font-size: 15px !important;
    font-weight: 600;
    color: #fff !important;
    margin-bottom: 10px !important;
  }

  .foot > div:nth-child(2) {
    width: 100% !important;
    float: none !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, .10);
    padding-top: 20px;
  }

  .foot > div:nth-child(2) > div {
    width: auto !important;
    float: none !important;
  }

  .foot > div:nth-child(2) > div:first-child > div {
    padding-left: 0 !important;
    font-size: 13px !important;
    color: rgba(255, 255, 255, .62) !important;
    margin-top: 8px !important;
  }

  .foot > div:nth-child(2) > div:first-child > div:first-child {
    font-size: 17px !important;
    font-weight: 600;
    color: #fff !important;
    margin-top: 0 !important;
  }

  .foot > div:nth-child(2) img {
    height: 88px !important;
    border-radius: 8px;
    background: #fff;
    padding: 4px;
    box-sizing: border-box;
  }

  .foot > div:nth-child(2) > div:last-child > div {
    font-size: 10px !important;
    color: rgba(255, 255, 255, .5) !important;
  }

  #Footer > div:not(.foot) {
    width: 100% !important;
    float: none !important;
    text-align: center !important;
    background: #101623 !important;
    font-size: 12px !important;
    color: rgba(255, 255, 255, .45) !important;
    padding: 14px 0 !important;
  }

  #Footer a {
    font-size: 12px !important;
    color: rgba(255, 255, 255, .45) !important;
  }
}
