.site-header,
.inner-header,
.case-header,
.contact-header,
.partners-header,
.site-head {
  position: relative;
}

.language-switch {
  position: absolute;
  top: 10px;
  right: 24px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 26px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid #e7c0cf;
  border-radius: 999px;
  background: rgb(255 255 255 / 88%);
  color: #b93b6d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgb(185 59 109 / 12%);
}

.language-switch:hover {
  color: #fff;
  background: #d64a7e;
  border-color: #d64a7e;
}
/* English-only corrections for shared visual components. */
.logo-tile:has(img[src$="retail-8.webp"])::after {
  content: "Mannings";
  font-family: Arial, sans-serif;
}

/* Keep the language toggle inside the partners header instead of adding a
   stray line between the header and the hero. */
.partners-header {
  position: relative;
}

.partners-header > .language-switch {
  position: absolute;
  top: 10px;
  right: 24px;
  z-index: 100;
  margin: 0;
}

@media (max-width: 680px) {
  .language-switch,
  .partners-header > .language-switch {
    top: 4px;
    right: 8px;
    min-width: 46px;
    height: 23px;
    padding-inline: 8px;
    font-size: 11px;
  }
}

/* The shared header stylesheet reserves a narrow 142px button, which makes
   the longer English label wrap. Keep the call-to-action consistent and on
   one line across every English page. */
.small-button,
.case-header__button,
.contact-header__button,
.partners-header__button {
  width: 160px !important;
  min-width: 160px !important;
  white-space: nowrap !important;
  padding-inline: 14px !important;
}

/* Keep the longer English navigation labels on one line while preserving
   the Chinese header scale on the source-language pages. */
html[lang="en"] .inner-header nav,
html[lang="en"] .site-header nav,
html[lang="en"] .case-header nav,
html[lang="en"] .contact-header nav,
html[lang="en"] .partners-header nav {
  gap: 22px;
  font-size: 18px;
}

html[lang="en"] .inner-header nav a,
html[lang="en"] .site-header nav a,
html[lang="en"] .case-header nav a,
html[lang="en"] .contact-header nav a,
html[lang="en"] .partners-header nav a {
  white-space: nowrap;
}

/* The Korean-brand intro is intentionally two readable lines in English;
   keeping it inside the copy column prevents it from running underneath the
   logo carousel. */
html[lang="en"] .partners-korean .partners-section-copy p {
  max-width: 380px;
  white-space: normal;
}

/* Match the two-line composition of the contact hero reference. */
html[lang="en"] .contact-hero p {
  max-width: 820px;
  line-height: 1.8;
}

/* On the English network page, keep the third offline-channel logo group
   on the opposite side of its label instead of pulling it into the title. */
html[lang="en"] .network-offline-grid article:last-child > div {
  transform: translateX(clamp(14px, 1.8vw, 32px));
}

/* English hero copy is longer than the Chinese source copy. Scale the
   first-slide typography down so all three entry buttons stay in view. */
@media (min-width: 761px) {
  /* Keep the English home contact panel inside its rounded container.
     The shared desktop grid has a fixed form column; a nowrap English
     heading can otherwise enlarge the left track and push the form past
     the panel's right edge. */
  html[lang="en"] .contact-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 642px);
  }

  html[lang="en"] .contact-copy,
  html[lang="en"] #design-inquiry {
    min-width: 0;
  }

  html[lang="en"] .contact-copy h2 {
    max-width: 520px;
    white-space: normal;
    line-height: 1.25;
  }

  html[lang="en"] .contact-copy > p {
    max-width: 520px;
  }

  html[lang="en"] .form-actions {
    flex-wrap: wrap;
  }

  html[lang="en"] .form-actions p {
    min-width: 0;
    max-width: 360px;
  }

  html[lang="en"] .home-hero .hero-copy h1 {
    max-width: 820px;
    font-size: clamp(30px, 3.35vw, 66px);
    line-height: 1.12;
  }

  html[lang="en"] .home-hero .hero-copy p {
    max-width: 600px;
    margin-top: 18px;
    font-size: clamp(14px, 1vw, 20px);
    line-height: 1.65;
  }

  /* The source-language hero uses manual line breaks. English copy should
     flow naturally so the final sentence does not get pushed down alone. */
  html[lang="en"] .home-hero .hero-copy p .desktop-break {
    display: none;
  }

  html[lang="en"] .home-hero .hero-actions {
    gap: 8px;
    margin-top: 18px;
    flex-wrap: nowrap;
  }

  html[lang="en"] .home-hero .hero-actions .button {
    min-width: 0;
    padding: 9px 16px;
    font-size: clamp(13px, .95vw, 18px);
  }
}

@media (min-width: 1400px) {
  html[lang="en"] .home-hero .hero-copy p {
    max-width: 760px;
  }
}

@media (min-width: 1001px) {
  html[lang="en"] .network-offline-grid article:last-child {
    display: grid;
    grid-template-columns: 72px minmax(350px, 1fr) minmax(430px, 1.35fr);
    align-items: center;
    gap: 24px;
    padding-inline: 46px;
  }

  html[lang="en"] .network-offline-grid article:last-child > span,
  html[lang="en"] .network-offline-grid article:last-child > h3,
  html[lang="en"] .network-offline-grid article:last-child > div {
    position: static;
    inset: auto;
    width: auto;
    transform: none;
  }

  html[lang="en"] .network-offline-grid article:last-child > span {
    grid-column: 1;
  }

  html[lang="en"] .network-offline-grid article:last-child > h3 {
    grid-column: 2;
    white-space: nowrap;
    font-size: clamp(18px, 1.42vw, 23px);
  }

  html[lang="en"] .network-offline-grid article:last-child > div {
    grid-column: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
}

@media (min-width: 761px) and (max-width: 1300px) {
  html[lang="en"] .network-offline-grid article:last-child {
    left: 18px;
    width: calc(100% - 36px);
    grid-template-columns: 58px minmax(300px, 1fr) minmax(390px, 1.25fr);
    gap: 18px;
    padding-inline: 30px;
  }

  html[lang="en"] .network-offline-grid article:last-child > h3 {
    font-size: 20px;
  }

  html[lang="en"] .network-offline-grid article:last-child > div {
    gap: 10px;
  }
}

/* Keep the third row's number and title on the same reference coordinates
   as rows one and two. Only the logo strip is allowed to move. */
@media (min-width: 761px) {
  html[lang="en"] .network-offline-grid article:last-child {
    display: block;
  }

  html[lang="en"] .network-offline-grid article:last-child > span,
  html[lang="en"] .network-offline-grid article:last-child > h3 {
    position: absolute;
    z-index: 2;
    top: calc(50% + clamp(12px, 1.5vw, 24px));
    transform: translateY(-50%);
  }

  html[lang="en"] .network-offline-grid article:last-child > span {
    left: clamp(28px, 2.2vw, 42px);
  }

  html[lang="en"] .network-offline-grid article:last-child > h3 {
    left: clamp(120px, 10.4vw, 160px);
    transform: translate(-1em, -50%);
    white-space: nowrap;
    font-size: clamp(18px, 1.56vw, 25px);
  }

  html[lang="en"] .network-offline-grid article:last-child > div {
    position: absolute;
    top: calc(50% + clamp(12px, 1.5vw, 24px));
    left: calc(50% + clamp(10px, 1.5vw, 24px));
    right: clamp(28px, 3vw, 46px);
    width: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(6px, .7vw, 10px);
    transform: translateY(-50%);
  }
}

@media (max-width: 1000px) {
  .small-button,
  .case-header__button,
  .contact-header__button,
  .partners-header__button {
    width: 142px !important;
    min-width: 142px !important;
    padding-inline: 10px !important;
  }
}

@media (max-width: 680px) {
  html[lang="en"] .contact-header nav {
    display: flex;
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    overflow: visible;
    white-space: normal;
    font-size: 14px;
  }

  html[lang="en"] .contact-header nav a {
    padding-block: 3px;
  }
}

/* The second homepage hero asset contains Chinese copy baked into the
   bitmap. Rebuild that copy as English HTML while preserving the original
   product composition. */
.hero-supply-slide {
  background: transparent;
  isolation: isolate;
}

.hero-supply-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-supply-slide::before {
  display: none;
}

.hero-supply-copy {
  position: absolute;
  left: 10.8%;
  top: 22%;
  width: min(42%, 720px);
  color: #171316;
  z-index: 1;
}

.hero-supply-copy h2 {
  margin: 0 0 24px;
  font-size: clamp(30px, 3.35vw, 66px);
  line-height: 1.12;
  letter-spacing: -.03em;
}

.hero-supply-copy p {
  margin: 0;
  max-width: 720px;
  color: #756c72;
  font-size: clamp(14px, 1vw, 20px);
  line-height: 1.65;
}

.hero-supply-copy > div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-supply-copy > div span,
.hero-supply-copy > div a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid #df5a8d;
  border-radius: 999px;
  color: #d64a7e;
  background: rgba(255, 250, 251, .85);
  font-size: clamp(13px, .95vw, 18px);
  white-space: nowrap;
}

/* 第一个入口不再默认填粉底：与中文版一致，默认样式同其余入口、悬停时才填色 2026-10-10 */

.hero-supply-copy > div a:hover {
  color: #fff;
  background: #bd396c;
  border-color: #bd396c;
}

@media (max-width: 760px) {
  .hero-supply-copy {
    left: 6%;
    top: 14%;
    width: 58%;
  }

  .hero-supply-copy h2 {
    margin-bottom: 12px;
    font-size: 26px;
  }

  .hero-supply-copy p {
    font-size: 12px;
    line-height: 1.6;
  }

  .hero-supply-copy > div {
    gap: 6px;
    margin-top: 14px;
  }

  .hero-supply-copy > div span,
  .hero-supply-copy > div a {
    min-height: 30px;
    padding: 0 10px;
    font-size: 10px;
  }
}

/* Replace the Chinese copy baked into the case-study CTA artwork with
   accessible English HTML while retaining the original dark/pink visual.
   The source bitmap contains both a Chinese title and a Chinese button, so
   an opacity layer would still leak those characters through. Use a clean
   English-only backdrop instead and recreate the faint outline detail. */
.case-cta {
  isolation: isolate;
  background:
    radial-gradient(circle at 94% 18%, rgb(214 74 126 / 24%), transparent 38%),
    linear-gradient(105deg, #271d21 0%, #2b2024 58%, #5b2d45 100%);
}

.case-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: transparent;
}

.case-cta::after {
  content: "NEXT";
  position: absolute;
  right: 4%;
  bottom: -42px;
  z-index: 0;
  color: transparent;
  font-size: 180px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  -webkit-text-stroke: 1px rgb(255 255 255 / 10%);
  pointer-events: none;
}

.case-cta__copy {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1320px, calc(100% - 80px));
  height: 100%;
  margin: 0 auto;
}

.case-cta__copy h2 {
  max-width: 1020px;
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.2;
}

.case-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 210px;
  height: 74px;
  padding: 0 28px;
  border-radius: 40px;
  background: #d64a7e;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 680px) {
  .case-cta__copy {
    display: block;
    padding-top: 72px;
  }

  .case-cta__copy h2 {
    font-size: 30px;
  }

  .case-cta__button {
    margin-top: 28px;
    min-width: 180px;
    height: 58px;
    font-size: 16px;
  }

  .case-cta::after {
    right: -4%;
    bottom: -18px;
    font-size: 100px;
  }
}

/* ===== 手机端适配修复 2026-09-26（≤680px，避免 "NEXT" 出血装饰撑出横向滚动；桌面版不受影响） ===== */
@media (max-width:680px){
  .case-cta::after{right:0!important}
}

/* ===== 英文版首页第二张图标题：手机上 "sourcing" 换到第二行（电脑保持一行）2026-09-26 ===== */
html.mobile-desktop-scale .hero-supply-copy h2 span{display:block}
html.mobile-desktop-scale .hero-supply-copy h2{max-width:520px}

/* Customer wording is longer; contain it without moving the logo group. */
@media (min-width:761px) and (max-width:1100px) {
  html[lang="en"]:not(.mobile-desktop-scale) .home-hero .hero-copy h1 { font-size: 3.35vw; }
  html[lang="en"]:not(.mobile-desktop-scale) .home-hero .hero-copy p { font-size: 1.1vw; max-width: 55vw; line-height: 1.6; }
  html[lang="en"]:not(.mobile-desktop-scale) .home-hero .hero-actions .button { font-size: 1.18vw; padding: .7vw 1vw; }
}
html[lang="en"] .network-offline-grid article:first-child > h3 {
  width: clamp(180px, 18vw, 280px);
  white-space: normal;
  line-height: 1.35;
}
.contact-details div{grid-template-columns:140px minmax(0,1fr)}
/* 小屏笔记本：首页英雄区文字不再压住右侧产品图（英文版专用：正文自适应收窄 + 按钮换行 + 英雄区略加高） */
@media (min-width: 1001px) {
  html[lang="en"]:not(.mobile-desktop-scale) .home-hero .hero-copy p {
    max-width: min(760px, calc(44vw - 40px));
  }
}

@media (min-width: 1001px) and (max-width: 1400px) {
  html[lang="en"]:not(.mobile-desktop-scale) .home-hero .hero-actions {
    flex-wrap: wrap;
    row-gap: 8px;
    max-width: min(760px, calc(44vw - 40px));
  }
}

@media (min-width: 1001px) and (max-width: 1300px) {
  html[lang="en"]:not(.mobile-desktop-scale) .home-hero {
    height: calc(35.3714vw + 46px);
  }
}

/* 小屏笔记本：英文首页英雄区（第 1 张轮播）正文/标题收窄一点点，避免擦到右侧商品素材；按钮不动 2026-10-10 */
@media (min-width: 1001px) {
  html[lang="en"]:not(.mobile-desktop-scale) .home-hero .hero-copy h1,
  html[lang="en"]:not(.mobile-desktop-scale) .home-hero .hero-copy p {
    max-width: min(760px, calc(43vw - 45px));
  }
}
