/* English site typography / layout adjustments.
   Loaded only by /en/ pages; the Chinese site never references this file. */
html[lang="en"] body {
  font-family: Arial, "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
/* English words are longer than the Chinese copy these containers were sized for. */
html[lang="en"] .btn p,
html[lang="en"] .btn,
html[lang="en"] .header-actions,
html[lang="en"] .banner .tabs .item { white-space: nowrap; }
html[lang="en"] .banner .tabs { flex-wrap: wrap; row-gap: 8px; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3,
html[lang="en"] .h5, html[lang="en"] .f_24, html[lang="en"] .f_20 {
  line-height: 1.28;
  overflow-wrap: break-word;
}
/* Let wrapped English card titles grow instead of being clipped. */
html[lang="en"] .item_title,
html[lang="en"] .cap-card h3,
html[lang="en"] .ei-cap-card h3,
html[lang="en"] .pt.f_20 { height: auto; min-height: 0; }
html[lang="en"] .ft .lt p { line-height: 1.6; }

/* Header: the capsule is sized for short Chinese labels. English labels are
   ~3x longer, so widen the capsule, tighten gaps and slightly reduce the type. */
html[lang="en"] .header .box { width: 94vw; gap: .8vw; }
html[lang="en"] .header .box .links { gap: 1vw; padding: 0 .4vw; }
html[lang="en"] .header .box .links .item .a1 p { font-size: 13px; white-space: nowrap; }
html[lang="en"] .header .box .logo img { width: 6.15vw; }
html[lang="en"] .header .box .header-actions,
html[lang="en"] .header .box .lang-switch { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 1200px) {
  html[lang="en"] .header .box .links { gap: .55vw; }
  html[lang="en"] .header .box .links .item .a1 p { font-size: 11px; }
}

/* First banner frame: the English headline is much longer than the Chinese one.
   Reduce the type so it clears the 3D cube on the right (the layer is a fixed
   1920x919 canvas, so absolute top offsets must stay untouched). */
html[lang="en"] .qa-t0-h1 { font-size: 38px !important; }
html[lang="en"] .qa-t0-h2 { font-size: 25px !important; }
html[lang="en"] .qa-t0-note { font-size: 18px !important; }

/* CTA: the Chinese site uses a bitmap button with Chinese text baked in.
   English pages replace it with a CSS capsule carrying real DOM text. */
html[lang="en"] .banner2026 .hot-consult::after {
  left: 0; top: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, #8B5CF6, #6633EE);
  border-radius: 100px;
  box-shadow: 0 14px 30px rgba(102, 51, 238, .45);
}
html[lang="en"] .banner2026 .hot-consult .hc-label {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .92vw; font-weight: 600; white-space: nowrap;
  pointer-events: none;
}

/* SolarSense engine cells: the Chinese stylesheet forces nowrap on the title
   and description; longer English labels would otherwise push the row past the
   viewport. Scoped to the English SolarSense page only. */
.page-en-solarsense .cell { white-space: normal; min-width: 0; }
.page-en-solarsense .cell .tx { min-width: 0; max-width: 100%; }
.page-en-solarsense .cell .h,
.page-en-solarsense .cell .d {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
}


/* ==================================================================
   r30 — fixes for the 47 annotated screenshots (English site only)
   ================================================================== */

/* Capsule width, padding, logo and Get Solutions button stay at the
   previous size. Only the menu labels shrink so they no longer paint
   over the logo or the button. */
html[lang="en"] .header .box { width: min(80vw, 1540px); }
html[lang="en"] .header .box .links {
  min-width: 0;
  justify-content: space-between;
  gap: clamp(6px, 0.45vw, 14px);
}
html[lang="en"] .header .box .links .item { flex: 0 0 auto; }
html[lang="en"] .header .box .links .item .a1 p { font-size: clamp(11px, 0.68vw, 14px); }
/* r205: keep the 中文 switch above hover-expanding nav items so it stays clickable. */
html[lang="en"] .header .box .header-actions { position: relative; z-index: 120; }
html[lang="en"] .header .box .lang-switch { position: relative; z-index: 121; }
html[lang="en"] .header .box .links .item .sub,
html[lang="en"] .menuList .sub_nav { width: auto; min-width: 250px; }
html[lang="en"] .header .box .links .item .sub .nr a,
html[lang="en"] .menuList .sub_nav .third_item a.p1,
html[lang="en"] .menuList .sub_nav .third_item .p1 {
  white-space: nowrap; font-size: 15px; line-height: 1.45;
}
html[lang="en"] .header .box .links .item .sub .nr { white-space: nowrap; }
/* r234: keep the full English names. Size the panel to the label and open it
   toward the left of "Solutions", which sits near the right edge. */
html[lang="en"] .header .box .links .item:has(.sub a[href="/new/en/solution/government-enterprise.html"]) .sub {
  left: auto;
  right: 0;
  width: max-content;
  min-width: max-content;
}
html[lang="en"] .header .box .links .item:has(.sub a[href="/new/en/solution/government-enterprise.html"]) .sub .nr {
  width: max-content !important;
  min-width: max-content !important;
}
html[lang="en"] .header .box .links .item:has(.sub a[href="/new/en/solution/government-enterprise.html"]) .sub .nr a {
  overflow: visible;
  height: auto;
  min-height: 2.5vw;
  white-space: nowrap;
}
html[lang="en"] .menuList .item:has(a[href="/new/en/solution/government-enterprise.html"]) .sub_nav .third_item .p1 {
  white-space: normal;
}

/* --- #6 / #18 footer: no wrapping, one consistent bottom across all pages ---
   NOTE: the base stylesheet uses `.footer .f_sec .dom1 .links` (specificity 0,4,0),
   so every override here must include the full `.footer .f_sec .dom1` chain.
   `min-width:0` + `flex-wrap:wrap` let the flex item actually shrink; without them
   `min-width:auto` keeps the nowrap links at 1114px and pushes the page 26/186/310px
   wide at 1920/1440/1065. */
html[lang="en"] .footer .f_sec .dom1 { gap: 2vw; max-width: 100%; }
html[lang="en"] .footer .f_sec .dom1 .info { flex: 0 1 33vw; min-width: 0; width: 33vw; }
html[lang="en"] .footer .f_sec .dom1 .info .item .animate_text p {
  white-space: nowrap !important; font-size: clamp(13px, 1.05vw, 20px) !important; line-height: 1.35;
}
html[lang="en"] .footer .f_sec .dom1 .links {
  flex: 1 1 auto; min-width: 0; width: auto; flex-wrap: wrap;
  justify-content: space-between; gap: 12px clamp(10px, 2.4vw, 46px);
}
html[lang="en"] .footer .f_sec .dom1 .links a {
  white-space: nowrap; font-size: clamp(12px, .78vw, 15px); line-height: 1.35;
}

/* --- #16 / #43 English replacement for the Baidu "Online Consultation" widget --- */
html[lang="en"] #aff-im-root, html[lang="en"] #aff-im-root * { display: none !important; }
html[lang="en"] .en-aff {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 2147482000; display: flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 12px 0 4px; border-radius: 22px 0 0 22px;
  background: linear-gradient(90deg,#4b8cf7,#3b6fe0); color: #fff;
  font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(30,70,160,.3);
}
html[lang="en"] .en-aff img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1.5px solid rgba(255,255,255,.85); }
html[lang="en"] .en-aff:hover { filter: brightness(1.08); }

/* --- #2 first-frame CTA: Chinese-site glass capsule, English DOM text --- */
html[lang="en"] .banner2026 .hot-consult::after {
  left: 0; top: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,.36), rgba(255,255,255,.14));
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 100px;
  box-shadow: 0 12px 26px rgba(43,12,105,.38), inset 0 1px 0 rgba(255,255,255,.45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
html[lang="en"] .banner2026 .hot-consult .hc-avatar {
  position: absolute; left: 2.5%; top: 9%; height: 82%; width: auto;
  z-index: 3; border-radius: 50%; pointer-events: none;
}
html[lang="en"] .banner2026 .hot-consult .hc-label {
  padding-left: 20%; color: #fff; font-size: .84vw; font-weight: 600;
  text-shadow: 0 1px 5px rgba(40,10,90,.45);
}

/* --- #1 / #2 home banner two frames --- */
.page-en-home .qa-t0-h1 { font-size: 30px !important; letter-spacing: .6px; }
.page-en-home .qa-t0-h2 { display: none !important; }
.page-en-home .qa-h1 { font-size: 76px; white-space: nowrap; }
.page-en-home .qa-h2 { overflow: visible; padding-bottom: 10px; line-height: 1.12; white-space: nowrap; }
.page-en-home .qa-fcard { min-width: 168px; width: auto; }
.page-en-home .qa-fcard.wide { min-width: 205px; }
.page-en-home .qa-fcard span { font-size: 13px; line-height: 1.2; white-space: normal; overflow-wrap: anywhere; }
.page-en-home .qa-caps { position: relative; z-index: 9; }
.page-en-home .qa-cap { font-size: 12px; }
/* #3 #4 #5 home sections */
.page-en-home .sec2 .list .item .item_box .p { text-align: right; }
.page-en-home .sec2 > .text,
.page-en-home .sec1 .text { text-align: center; }

/* --- #7 dataCollection banner headline must fit after adding "Annotation" --- */
.page-datacollection .banner .text .p1 { font-size: clamp(72px, 7vw, 135px) !important; line-height: 1.05; }
/* #10 #11 wide diagram containers: give the English copy more height */
.page-datacollection .sec2 .box,
.page-datacollection .sec3 .box { min-height: 1060px; padding-bottom: 40px; }
.page-datacollection .sec2 .box .title,
.page-datacollection .sec3 .box .title { white-space: nowrap; }
/* #8 floating caption of the 3D point-cloud card */
.page-datacollection .Serv2 .box2 .p.f_14,
.page-datacollection .Serv2 .box2 h4 { font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.page-datacollection .sec2 .part .list .item .text .p.f_14 { font-size: 12px; line-height: 1.35; }
/* #12 cost-reduction row aligned with the Chongqing card */
.page-datacollection .sec4 .list .item .item_r .item_bottom { display: flex; align-items: center; justify-content: flex-start; min-height: 40px; }
/* #13 service process: no wrap, more room behind the flow */
.page-datacollection .sec5 .box_content .items .item2 p.f_20 { white-space: nowrap; font-size: 16px; }
.page-datacollection .sec5 .box_content .items .item2 { min-width: 190px; }
.page-datacollection .sec5 .box_content { padding: 30px 20px; min-height: 420px; }
.page-datacollection .sec5 .box_content .items .sp .r .sp_item.f_16 { white-space: nowrap; font-size: 14px; }

/* --- #14/#15/#17 dataset page --- */
.page-dataset .sec1 .list { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 10px; }
.page-dataset .sec1 .list .item { flex: 0 0 360px; min-height: 158px; }
.page-dataset .sec1 .list .item .item_title { font-size: 16px; line-height: 1.35; height: auto; }
.page-dataset .sec1 .list .item .p { font-size: 13px; line-height: 1.35; }
.page-dataset .sec1 .links a { min-width: 230px; white-space: nowrap; }
.page-dataset .content .l .none .none_item { font-size: 15px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-dataset .content .l .none { min-width: 320px; }

/* --- #20/#21/#22 SolarSense diagrams --- */
.page-en-solarsense .ss-kicker-t { font-size: 20px; line-height: 1.3; }
.page-en-solarsense .ss-chip { font-size: 17px; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.page-en-solarsense .ss-chip-row { gap: 8px; }
.page-en-solarsense .ss-steps { font-size: 12px; gap: 4px; }
.page-en-solarsense .ss-steps span { font-size: 12px; white-space: nowrap; }
.page-en-solarsense .ss-arch { padding: 0 10px; }
.page-en-solarsense .ss-sat span.t { font-size: 17px; white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
.page-en-solarsense .ss-orbit { min-height: 260px; }
.page-en-solarsense .ss-card3 .ss-c3-row { min-height: 110px; }
.page-en-solarsense .ss-card3 .panel .cell { min-height: 72px; }
.page-en-solarsense .ss-card3 .panel .cell .h { font-size: 14px; }
.page-en-solarsense .ss-card3 .panel .cell .d,
.page-en-solarsense .ss-card3 .ss-col ul.body li { font-size: 12px; line-height: 1.3; }

/* --- #24/#25/#26 QApex diagrams --- */
.page-en-qapex .qp-card { min-height: 760px; }
.page-en-qapex svg.qp-arch { overflow: visible; }
.page-en-qapex svg.qp-arch text { font-size: 15px; }
.page-en-qapex .qp-fi .tags { flex-wrap: wrap; gap: 8px; }
.page-en-qapex .qp-fi .tags span { font-size: 13px; white-space: nowrap; }
.page-en-qapex .qp-fi { min-height: 620px; }

/* --- #29/#30/#31 solution sub-pages --- */
.page-en-solution .sec2 .list .item { min-height: 520px; padding-bottom: 20px; }
.page-en-solution .sec2 .list .item .item_title { font-size: 20px; line-height: 1.35; }
.page-en-solution .sec2 .list .item .p { font-size: 14px; line-height: 1.4; }
.page-en-solution .sec4 .list .item .item_text .h5 { padding-right: 52px; font-size: 28px; }
.page-en-solution .sec4 .list .item .item_text .des,
.page-en-solution .sec4 .list .item .item_text .p { font-size: 14px; line-height: 1.45; }
.page-en-solution .sec4 .list .item { min-height: 340px; }

/* --- #33/#35 about page --- */
.page-about .content .l .part_l .year p { white-space: nowrap; font-size: 28px; }
.page-about .dian_box, .page-about .dian_content { min-height: 640px; }
.page-about .dian_content .dian_des { font-size: 14px; line-height: 1.5; }

/* --- #40/#43/#44/#45 join page --- */
/* Chinese job metadata fits the one-line ellipsis; the English equivalent is
   ~1.6x wider and got cut off ("New graduates wel..."). Allow two lines. */
.page-join .sec2 .content .list .item .d1 .p1,
.page-join .sec2 .content .list .item .d1 .p2 {
  /* base rule is `body .home .container ... .d1 .p2` (0,8,1) — needs !important */
  display: -webkit-box !important; -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2; white-space: normal !important;
  overflow: hidden; overflow-wrap: anywhere; min-height: 3em;
}
.page-join .sec1 .tabs .item { min-width: 260px; white-space: nowrap; font-size: 17px; }
.page-join .sec2 .content .list .item { border: 1px solid #C4ADFF; border-radius: 20px; overflow: hidden; }
.page-join .sec2 .content .list .item .d2 { border-radius: 0 0 20px 20px; }
.page-join .sec3 .form .chose.p_type .c1 { min-width: 260px; white-space: nowrap; font-size: 14px; }
.page-join .sec3 .form_box .f_box .box .item p.p1 { white-space: nowrap; font-size: 17px; }
.page-join .sec3 .form_box .f_box .box .item { min-height: 62px; display: flex; align-items: flex-end; }

/* --- #47 get-solution heading clipped --- */
.page-en-obtain .sec .lbox.f_40 p { font-size: 28px; white-space: normal; line-height: 1.3; }
.page-en-obtain .sec .lbox { width: 42vw; }

/* --- #36 news tab selected border aligns with the translucent pill --- */
.page-news .banner .tabs .item { border-radius: 100px; }
.page-news .banner .tabs .item.on { border-radius: 100px; }

/* ==================================================================
   r30b — specificity + narrow-viewport corrections.
   Several base rules are `body .home .container ...` (0,8,1) and beat
   plain `.page-*` selectors, so the earlier r30 declarations silently
   did nothing. These overrides use an `html[lang="en"]` prefix and
   !important where the base rule sets the same property.
   ================================================================== */
html[lang="en"] .page-en-obtain .sec .lbox p {
  white-space: normal !important; overflow-wrap: anywhere;
  font-size: clamp(20px, 1.46vw, 28px) !important; line-height: 1.3;
}
html[lang="en"] .page-en-obtain .sec .lbox { max-width: 100%; }
html[lang="en"] .page-join .sec2 .content .list .item .d1 .p1,
html[lang="en"] .page-join .sec2 .content .list .item .d1 .p2 {
  display: -webkit-box !important; -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2; white-space: normal !important;
  overflow: hidden; overflow-wrap: anywhere; min-height: 3em;
}
@media (max-width: 1065px) {
  html[lang="en"] .page-join .sec1 .tabs .item,
  html[lang="en"] .page-join .sec3 .form .chose.p_type .c1 {
    min-width: 0; white-space: normal; font-size: 14px;
  }
  html[lang="en"] .page-join .sec3 .form_box .f_box .box .item p.p1 { white-space: normal; }
  html[lang="en"] .page-join div.item,
  html[lang="en"] .page-join .ptext { max-width: 100%; overflow-wrap: anywhere; }
}
