/* ==========================================================================
   CPL Network — inner pages
   Members Voice / Member Spotlight / Collaboration Success
   Shared header, CTA and footer live in style.css and are reused verbatim.
   ========================================================================== */

.inner-main {
  padding: 96px 0 92px;
  background: #fff;
}

.inner-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.inner-page-title {
  margin: 0;
  color: var(--navy);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.012em;
  text-transform: uppercase;
}

.inner-page-head .section-sub {
  margin-top: 7px;
  font-size: 12.5px;
}

/* ------------------------------- Rating --------------------------------- */

.member-rating {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 1px;
}

.member-rating__row {
  display: flex;
  align-items: center;
  gap: 11px;
}

.member-rating__score {
  color: var(--navy);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
}

.member-rating__stars {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #f5b01b;
}

.member-rating__stars .icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

.member-rating__caption {
  margin-top: 5px;
  color: #5d6a7c;
  font-size: 14px;

  line-height: 1.3;
}

/* ---------------------------- Members Voice ----------------------------- */

.testimonial-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.testimonial-card {
  position: relative;
  padding: 30px 32px 34px;
  border: 1px solid #edf1f6;
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 0px 10px rgba(20, 44, 84, 0.15);
  /* 丝滑过渡配置（缓动曲线是高端感核心） */
  transition: 
    transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
    border-color 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
    background 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 高端hover状态 */
.testimonial-card:hover {
  /* 仅6px轻微上浮，克制不夸张（10px+的大位移是廉价模板的典型特征） */
  transform: translateY(-2px);
  /* 同色系浅蓝边框，和品牌深蓝统一，不跳色 */
  border-color: rgba(24, 50, 107, 0.18);
  /* 极淡冷白渐变，避免纯白背景的平板感 */
  background: linear-gradient(180deg, #ffffff 0%, #f8fafd 100%);
  /* 三层分层阴影：模拟真实光照下的投影，替代单层阴影的"硬纸片"廉价感 */
  box-shadow: 
    0 2px 4px rgba(20, 44, 84, 0.05),
    0 12px 24px rgba(20, 44, 84, 0.08),
    0 24px 48px rgba(20, 44, 84, 0.12);
}

/* 无障碍适配：系统开启"减少动效"时自动关闭动画 */
@media (prefers-reduced-motion: reduce) {
  .testimonial-card {
    transition: none;
  }
  .testimonial-card:hover {
    transform: none;
  }
}


.testimonial-head {
  display: flex;
  align-items: center;
  gap: 48px;
}

.testimonial-profile {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  min-width: 0;
  gap: 18px;
}

.testimonial-quote {
  display: block;
  flex: 0 0 auto;
  width: 20px;
  height: 39px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 69px;
  font-weight: 700;
  line-height: 0.65;
  letter-spacing: -0.08em;
  transform: translateY(8px);
}

.testimonial-avatar {
  flex: 0 0 auto;
  width: 100px;
  height: 100px;
  border: 1px solid rgba(16, 47, 93, 0.055);
  border-radius: 50%;
  background: #eef1f4;
  object-fit: cover;
}

.testimonial-company {
  min-width: 0;
}

.testimonial-company h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.002em;
}

.testimonial-country {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 14px;
   font-weight: 600;
}

.testimonial-country img {
  width: 24px;
  height: 16px;
  border-radius: 1px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(16, 42, 78, 0.06);
}

.testimonial-facts {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: 0;
}

.testimonial-fact {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #1d3653;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  white-space: nowrap;
}

.testimonial-fact .icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--navy);
  stroke-width: 1.55;
}

.testimonial-copy {
  margin: 19px 0 0;
  color: #293b50;
  font-size: 16px;
  line-height: 1.6;
}

/* --------------------------- Member Spotlight -------------------------- */

.inner-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 22px;
}

.inner-spotlight-grid .spotlight-card {
  height: 100%;
}

.inner-spotlight-grid .spotlight-media {
  aspect-ratio: 1.8 / 1;
}



.inner-spotlight-grid .video-duration {
 
  min-width: 60px;
  height: 28px;
  border-radius: 5px;
}

.inner-spotlight-grid .spotlight-media img {
  object-position: center top;
}

.inner-spotlight-grid .spotlight-body {
  min-height: 97px;
}

.video-duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 23px;
  padding: 0 8px;
  border-radius: 3px;
  background: rgba(9, 17, 31, 0.7);
  color: #fff;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  pointer-events: none;
}

/* ------------------------ Collaboration Success ------------------------ */

.success-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 22px;
}

.success-card {
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  transition: transform 0.22s ease, opacity 0.22s ease;
  will-change: transform;
}

.success-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.success-card:hover {
  transform: translateY(-3px);
  opacity: 0.96;
}

.success-card figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Page-specific rhythm, matching the roomier archive layouts. */
.inner-main--spotlight .inner-spotlight-grid {
  gap: 40px 22px;
}

.inner-main--spotlight .inner-pagination {
  margin-top: 116px;
}

.inner-main--collab .success-grid {
  gap: 30px 22px;
}

.inner-main--collab .inner-pagination {
  margin-top: 68px;
}

/* ------------------------------ Pagination ----------------------------- */

.inner-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 52px;
}

.page-nav,
.page-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 31px;
  border: 1px solid #c6dcec;
  background: #fff;
  color: #4a7699;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.page-nav {
  gap: 6px;
  padding: 0 15px;
  border-radius: 999px;
}

.page-nav .icon {
  width: 14px;
  height: 14px;
}

.page-number {
  width: 31px;
  padding: 0;
  border-radius: 50%;
}

.page-number:hover,
.page-nav:hover {
  border-color: #71a6cd;
  background: #f6fbfe;
  color: #236b9c;
}

.page-number.is-active,
.page-number[aria-current="page"] {
  border-color: #438bc8;
  background: #438bc8;
  color: #fff;
}

.page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  height: 31px;
  color: #547895;
  font-size: 12px;
  letter-spacing: 0.1em;
}

.page-nav[disabled] {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

/* ------------------------ Collaboration image viewer ------------------- */

.success-card img {
  cursor: zoom-in;
  outline-offset: 3px;
}

.success-card img:focus-visible {
  outline: 3px solid var(--accent);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.image-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 12, 28, 0.86);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.image-lightbox__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(920px, 90vw);
  max-height: 84vh;
  transform: scale(0.98);
  transition: transform 0.24s ease;
}

.image-lightbox.is-open .image-lightbox__dialog {
  transform: scale(1);
}

.image-lightbox__img {
  display: block;
  width: min(720px, 86vw, 84vh);
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.image-lightbox__close {
  position: absolute;
  top: -18px;
  right: -18px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
  transition: transform 0.2s ease;
}

.image-lightbox__close:hover { transform: rotate(90deg); }
.image-lightbox__close .icon { width: 18px; height: 18px; }

/* ------------------------------ Responsive ----------------------------- */

@media (max-width: 1199px) {
  .inner-main { padding-top: 76px; padding-bottom: 64px; }

  .inner-page-head { margin-bottom: 29px; }
  .inner-page-title { font-size: 26px; }

  .testimonial-card { padding: 24px 27px 26px; }
  .testimonial-head { gap: 26px; }
  .testimonial-profile { gap: 15px; }
  .testimonial-quote { font-size: 58px; width: 18px; }
  .testimonial-avatar { width: 84px; height: 84px; }
  .testimonial-company h2 { font-size: 15px; margin-bottom: 8px; }
  .testimonial-facts { gap: 20px; }
  .testimonial-fact { font-size: 11.5px; }
  .testimonial-copy { font-size: 14px; line-height: 1.75; margin-top: 16px; }

  .testimonial-list { gap: 22px; }

  .inner-spotlight-grid,
  .success-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 18px; }

  .inner-main--spotlight .inner-spotlight-grid { gap: 28px 18px; }
  .inner-main--spotlight .inner-pagination { margin-top: 60px; }
  .inner-main--collab .success-grid { gap: 24px 18px; }
  .inner-main--collab .inner-pagination { margin-top: 44px; }

  .inner-spotlight-grid .spotlight-body { min-height: 93px; }
}

@media (max-width: 900px) {
  .inner-main { padding-top: 58px; padding-bottom: 54px; }

  .inner-page-head {
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 26px;
  }

  .inner-page-title { font-size: 24px; }
  .inner-page-head .section-sub { font-size: 11.5px; }

  .testimonial-head {
    display: block;
  }

  .testimonial-facts {
    margin: 17px 0 0 112px;
    gap: 28px;
  }

  .testimonial-card { padding: 22px 24px 24px; }
  .testimonial-avatar { width: 80px; height: 80px; }
  .testimonial-company h2 { font-size: 14.5px; }
  .testimonial-quote { font-size: 52px; width: 16px; transform: translateY(6px); }

  .testimonial-copy { font-size: 13.5px; }

  .testimonial-list { gap: 18px; }

  .inner-spotlight-grid,
  .success-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }

  .inner-main--spotlight .inner-spotlight-grid { gap: 22px 16px; }
  .inner-main--spotlight .inner-pagination { margin-top: 46px; }
  .inner-main--collab .success-grid { gap: 22px 16px; }
  .inner-main--collab .inner-pagination { margin-top: 36px; }

  .inner-pagination { margin-top: 36px; }
}

@media (max-width: 680px) {
  .inner-main { padding-top: 42px; padding-bottom: 43px; }

  .inner-page-head {
    display: block;
    margin-bottom: 22px;
  }

  .inner-page-title { font-size: 22px; }
  .inner-page-head .section-sub { margin-top: 5px; font-size: 10.5px; }

  .member-rating {
    align-items: flex-start;
    margin-top: 18px;
    padding-top: 0;
  }

  .member-rating__row { gap: 9px; }
  .member-rating__score { font-size: 20px; }
  .member-rating__stars .icon { width: 16px; height: 16px; }
  .member-rating__caption { font-size: 10px; margin-top: 4px; }

  .testimonial-list { gap: 16px; }
  .testimonial-card { padding: 19px 18px 21px; border-radius: 11px; }

  .testimonial-profile { gap: 11px; align-items: flex-start; }
  .testimonial-quote { width: 14px; height: 31px; font-size: 45px; transform: translateY(3px); }
  .testimonial-avatar { width: 66px; height: 66px; }
  .testimonial-company { padding-top: 3px; }
  .testimonial-company h2 { margin-bottom: 7px; font-size: 13.5px; line-height: 1.4; }
  .testimonial-country { font-size: 10.5px; gap: 7px; }
  .testimonial-country img { width: 20px; height: 13px; }

  .testimonial-facts {
    flex-wrap: wrap;
    margin: 14px 0 0 58px;
    gap: 10px 20px;
  }
  .testimonial-fact { font-size: 10.5px; gap: 6px; }
  .testimonial-fact .icon { width: 16px; height: 16px; }

  .testimonial-copy { margin-top: 13px; font-size: 12.5px; line-height: 1.7; }

  .inner-spotlight-grid { grid-template-columns: 1fr; gap: 16px; }
  .inner-spotlight-grid .spotlight-media { aspect-ratio: 1.8 / 1; }
  .inner-spotlight-grid .spotlight-body { min-height: 0; }

  .success-grid { grid-template-columns: 1fr; gap: 16px; }

  .inner-main--spotlight .inner-spotlight-grid { gap: 16px; }
  .inner-main--spotlight .inner-pagination { margin-top: 27px; }
  .inner-main--collab .success-grid { gap: 16px; }
  .inner-main--collab .inner-pagination { margin-top: 27px; }

  .video-duration { right: 7px; bottom: 7px; min-width: 49px; height: 22px; font-size: 10.5px; }

  .inner-pagination { gap: 6px; margin-top: 27px; }
  .page-nav { height: 29px; padding: 0 11px; font-size: 11px; }
  .page-nav .icon { width: 12px; height: 12px; }
  .page-number { width: 29px; height: 29px; font-size: 11px; }
  .page-ellipsis { height: 29px; min-width: 17px; font-size: 11px; }
  .page-pagination .optional { display: none; }

  .image-lightbox { padding: 20px; }
  .image-lightbox__dialog { max-width: 94vw; }
  .image-lightbox__img { width: min(720px, 86vw, 80vh); }
  .image-lightbox__close { top: -13px; right: -5px; width: 38px; height: 38px; }
}

@media (max-width: 430px) {
  .inner-pagination .page-number[data-page="3"],
  .inner-pagination .page-number[data-page="4"],
  .inner-pagination .page-ellipsis { display: none; }
}
