@charset "utf-8";

/* ==========================================================
   brand-consulting.css
   模块：品牌建设咨询专题页面
   作用：控制五个品牌服务板块、图片与信息卡片叠加、
        左右交错布局、锚点定位及响应式显示。
   ========================================================== */

/* ==========================================================
   页面基础
   ========================================================== */

html {
  /* 锚点动画统一由 brand-consulting.js 控制，避免双重缓动 */
  scroll-behavior: auto;
}

.brand-consulting-body {
  overflow-x: hidden;
  background: #ffffff;
}

.brand-consulting-page,
.brand-consulting-page * {
  box-sizing: border-box;
}

.brand-consulting-page {
  width: 100%;
  overflow: hidden;
  background: #ffffff;
}

.brand-services {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 84px 40px 96px;
}

/* ==========================================================
   二级 Banner
   PC端图片：/banner/eb3.jpg
   移动端图片：/banner/eb3-mobile.jpg
   移动端设计尺寸：750 × 400px
   ========================================================== */

.brand-inner-banner {
  position: relative;
  width: 100%;
  height: clamp(360px, 28.5vw, 550px);
  min-height: 360px;
  overflow: hidden;
  background: #16355f;
}

.brand-inner-banner__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url("/banner/eb3.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.brand-page-title {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.brand-inner-banner__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(10, 35, 72, 0.58) 0%,
      rgba(10, 35, 72, 0.35) 38%,
      rgba(10, 35, 72, 0.08) 72%,
      rgba(10, 35, 72, 0) 100%
    );
}

.brand-inner-banner__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  min-height: 360px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
}

.brand-inner-banner__text {
  max-width: 620px;
  color: #ffffff;
}

.brand-inner-banner__title {
  margin: 0 0 20px;
  font-size: clamp(34px, 3vw, 52px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.brand-inner-banner__description {
  margin: 0;
  font-size: clamp(16px, 1.4vw, 22px);
  line-height: 1.9;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.94);
}

/* ==========================================================
   服务板块公共结构
   ========================================================== */

.brand-service {
  width: 100%;
  margin: 0 0 96px;
  scroll-margin-top: 130px;
  outline: none;
}

.brand-service:last-child {
  margin-bottom: 0;
}

.brand-service__inner {
  position: relative;
  width: 100%;
  display: grid;
  /* 24栏用于精确控制叠加宽度：当前叠加由1/12缩小为1/24 */
  grid-template-columns: repeat(24, minmax(0, 1fr));
  align-items: center;
}

.brand-service__media {
  position: relative;
  z-index: 1;
  /* 图片占14/24，左边与容器对齐 */
  grid-column: 1 / 15;
  grid-row: 1;
  width: 100%;
  overflow: hidden;
  background: #eef3f8;
}

.brand-service__image {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.4s ease;
}

.brand-service__panel {
  position: relative;
  z-index: 2;
  /* 信息卡片占11/24，与图片仅叠加1/24，约为原叠加宽度的50% */
  grid-column: 14 / 25;
  grid-row: 1;
  width: 100%;
  min-height: 360px;
  margin: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #073488;
  background-image: url("../../images/pp_06.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.brand-service__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  /*background:
    linear-gradient(
      90deg,
      rgba(3, 39, 111, 0.98) 0%,
      rgba(3, 39, 111, 0.95) 42%,
      rgba(3, 39, 111, 0.72) 62%,
      rgba(3, 39, 111, 0.12) 100%
    );*/
}
/*第一板块宽度*/
.brand-service__content { 
  position: relative;
  z-index: 1;
  width: 66%;
  padding: 42px 0 42px 48px;
  color: #ffffff;
}

.brand-service__title {
  margin: 0;
  font-size: clamp(26px, 2vw, 30px);
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #ffffff;
}
/*黄色横线宽度*/
.brand-service__line {
  display: block;
  width: 178px;
  height: 3px;
  margin: 18px 0 20px;
  background: #e8b85a;
}

.brand-service__description {
  margin: 0;
  font-size: 16px;
  line-height: 1.95;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.94);
  text-align: justify;
}

.brand-service:hover .brand-service__image,
.brand-service:focus-within .brand-service__image {
  transform: scale(1.015);
}

/* ==========================================================
   左右交错布局
   ========================================================== */

.brand-service--reverse .brand-service__inner {
  grid-template-columns: repeat(24, minmax(0, 1fr));
}

.brand-service--reverse .brand-service__media {
  /* 右侧图片占14/24，右边与容器对齐 */
  grid-column: 11 / 25;
  grid-row: 1;
}

.brand-service--reverse .brand-service__panel {
  /* 左侧信息卡片占11/24，与图片仅叠加1/24 */
  grid-column: 1 / 12;
  grid-row: 1;
  margin: 0;
}

.brand-service--reverse .brand-service__panel::before {
  /*background:
    linear-gradient(
      90deg,
      rgba(3, 39, 111, 0.98) 0%,
      rgba(3, 39, 111, 0.95) 42%,
      rgba(3, 39, 111, 0.72) 62%,
      rgba(3, 39, 111, 0.12) 100%
    );*/
}

/* ==========================================================
   平板端
   ========================================================== */

@media (max-width: 1200px) {
  .brand-services {
    max-width: 1080px;
    padding: 72px 28px 84px;
  }

  .brand-inner-banner,
  .brand-inner-banner__content {
    min-height: 320px;
  }

  .brand-inner-banner__content {
    padding: 0 28px;
  }

  .brand-service {
    margin-bottom: 78px;
  }

  .brand-service__panel {
    min-height: 280px;
  }

  .brand-service__content {
    width: 60%;
    padding: 34px 0 34px 36px;
  }

  .brand-service__title {
    font-size: 24px;
  }

  .brand-service__description {
    font-size: 15px;
    line-height: 1.85;
  }
}

/* ==========================================================
   手机端
   ========================================================== */

@media (max-width: 768px) {
  /*
   * 品牌建设咨询专题页移动端专用Banner
   * 图片：/banner/eb3-mobile.jpg
   * 尺寸：750 × 400px
   */
  .brand-inner-banner {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 750 / 400;
    background: #16355f;
  }

  .brand-inner-banner__media {
    width: 100%;
    height: 100%;
    background-image: url("/banner/eb3-mobile.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
  }

  .brand-inner-banner__content {
    min-height: 0;
    padding: 0 16px;
  }

  .brand-inner-banner__title {
    margin-bottom: 12px;
    font-size: 28px;
  }

  .brand-inner-banner__description {
    font-size: 14px;
    line-height: 1.75;
  }

  .brand-services {
    width: 100%;
    max-width: none;
    padding: 52px 16px 64px;
  }

  .brand-service {
    margin-bottom: 54px;
    scroll-margin-top: 96px;
  }

  .brand-service__inner,
  .brand-service--reverse .brand-service__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .brand-service__media,
  .brand-service__panel {
    flex: 0 0 auto;
    width: 100%;
  }

  .brand-service__media {
    overflow: hidden;
  }

  .brand-service__panel,
  .brand-service--reverse .brand-service__panel {
    min-height: 230px;
    margin: 0;
    background-position: center center;
  }

  .brand-service__panel::before,
  .brand-service--reverse .brand-service__panel::before {
    background:
      linear-gradient(
        90deg,
        rgba(3, 39, 111, 0.98) 0%,
        rgba(3, 39, 111, 0.94) 58%,
        rgba(3, 39, 111, 0.62) 82%,
        rgba(3, 39, 111, 0.34) 100%
      );
  }

  .brand-service__content {
    width: 72%;
    padding: 30px 24px;
  }

  .brand-service__title {
    font-size: 22px;
    line-height: 1.45;
  }

  .brand-service__line {
    width: 48px;
    height: 2px;
    margin: 14px 0 16px;
  }

  .brand-service__description {
    font-size: 14px;
    line-height: 1.8;
    text-align: left;
  }

  .brand-service:hover .brand-service__image,
  .brand-service:focus-within .brand-service__image {
    transform: none;
  }
}

/* ==========================================================
   窄屏手机
   ========================================================== */

@media (max-width: 420px) {
  /*
   * 420px以下继续保持750 × 400比例，
   * 不再设置固定Banner高度。
   */

  .brand-inner-banner__title {
    font-size: 24px;
  }

  .brand-inner-banner__description {
    font-size: 13px;
  }

  .brand-services {
    padding-top: 46px;
  }

  .brand-service {
    margin-bottom: 48px;
  }

  .brand-service__panel,
  .brand-service--reverse .brand-service__panel {
    min-height: 220px;
    background-position: 56% center;
  }

  .brand-service__content {
    width: 78%;
    padding: 26px 20px;
  }

  .brand-service__title {
    font-size: 21px;
  }

  .brand-service__description {
    font-size: 13px;
  }
}

/* ==========================================================
   减少动画
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .brand-service__image {
    transition: none;
  }
}
