/* Final mobile visual safeguards: hero artwork always has a raster fallback. */
/* Desktop industry accordion: pale translucent side strips with a diagonal image reveal,
   following the visual hierarchy of the LiuGong industry showcase. */
@media (min-width: 1366px) {
  /* Avoid repainting two full-size WebP backgrounds during a switch. The column
     movement stays animated, while the selected visual swaps immediately. */
  body.refined-site.page-index #part-01.slider_box {
    transition: none !important;
    contain: paint;
  }
  body.refined-site.page-index #part-01 .accordion-panel {
    transition: flex .42s cubic-bezier(.22, .61, .36, 1) !important;
    will-change: flex;
  }
  /* The expanded visual fades into the side navigation instead of ending in a hard edge. */
  body.refined-site.page-index #part-01 .accordion-panel.active::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg,
      rgba(226, 235, 244, .72) 0%,
      rgba(226, 235, 244, .16) 17%,
      rgba(226, 235, 244, 0) 34%,
      rgba(226, 235, 244, 0) 66%,
      rgba(226, 235, 244, .18) 84%,
      rgba(226, 235, 244, .78) 100%);
  }
  body.refined-site.page-index #part-01 .accordion-panel:not(.active)::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(239, 244, 249, .91), rgba(230, 237, 245, .78));
    clip-path: polygon(0 0, 100% 0, 100% 67%, 0 91%);
  }
  body.refined-site.page-index #part-01 .accordion-panel .panel-header,
  body.refined-site.page-index #part-01 .accordion-panel .panel-content {
    position: relative;
    z-index: 2;
  }
  body.refined-site.page-index #part-01 .accordion-panel:not(.active) .panel-header {
    background: transparent !important;
    color: #29496d !important;
    text-shadow: none;
  }
  body.refined-site.page-index #part-01 .accordion-panel:not(.active) .panel-header span {
    color: inherit !important;
    font-weight: 700;
    letter-spacing: 2px;
  }
}

@media (max-width: 991px) {
  .refined-site .ref-hero { background-size: cover !important; background-repeat: no-repeat !important; }
  .refined-site .ref-hero-products { background-image: linear-gradient(90deg, #073578e8, #07357844), url('/assets/optimized/refined--products-banner-mobile.webp') !important; background-position: 62% center !important; }
  .refined-site .ref-hero-solutions,
  .refined-site .ref-hero-applications { background-image: linear-gradient(90deg, #073578dc, #07357844), url('/assets/optimized/refined--industrial-banner-mobile.webp') !important; background-position: 60% center !important; }
  .refined-site .ref-hero-service { background-image: linear-gradient(90deg, #073578dc, #07357844), url('/assets/optimized/refined--service-banner-mobile.webp') !important; background-position: 62% center !important; }
  .refined-site .ref-hero-news { background-image: linear-gradient(90deg, #073578e8, #07357844), url('/assets/optimized/refined--products-banner-mobile.webp') !important; background-position: 62% center !important; }
  .refined-site .ref-hero-about { background-image: linear-gradient(90deg, #e4f1fc 0%, #e4f1fceb 42%, #e4f1fc40 100%), url('/assets/optimized/refined--about-banner-mobile.webp') !important; background-position: 64% center !important; }

  /* Five application sectors form two rows plus one full-width final card. */
  .refined-site.page-index #part-01 .accordion-panel:last-child:nth-child(odd) { grid-column: 1 / -1 !important; }
  body.refined-site.page-index #part-01 .accordion-panel { height: 112px !important; }
  body.refined-site.page-index #part-01 .accordion-panel:nth-child(1) { background-image: url('/assets/applications/pharma-ai.webp') !important; }
  body.refined-site.page-index #part-01 .accordion-panel:nth-child(2) { background-image: url('/assets/applications/food-ai.webp') !important; }
  body.refined-site.page-index #part-01 .accordion-panel:nth-child(3) { background-image: url('/assets/applications/daily-ai.webp') !important; }
  body.refined-site.page-index #part-01 .accordion-panel:nth-child(4) { background-image: url('/assets/applications/powder-ai.webp') !important; }
  body.refined-site.page-index #part-01 .accordion-panel:nth-child(5) { background-image: url('/assets/applications/materials-ai.webp') !important; }
  .refined-site.page-index #part-01 .panel-content { padding: 10px !important; }
  .refined-site.page-index #part-01 .panel-content a { font-size: 16px !important; }

  /* Four complete lines fit; do not crop a line at its baseline. */
  .refined-site.page-solutions .brochure-card { height: 304px !important; }
  .refined-site.page-solutions .brochure-card > div:last-child { grid-template-rows: 20px 52px 144px 32px !important; }
  .refined-site.page-solutions .brochure-card > div:last-child > p { height: 144px !important; min-height: 144px !important; line-height: 24px !important; -webkit-line-clamp: 6 !important; }
}

/* On 2K and wider screens keep the brand lockup inside the same centered header grid as navigation. */
@media (min-width: 1800px) {
  body.refined-site .header_logo {
    transform: none !important;
    margin-left: 0 !important;
  }
}

/* Keep the complete lockup on one line while using the spare tablet/header space. */
@media (min-width: 600px) and (max-width: 991px) {
  body.refined-site .header_logo, body.refined-site #header .header_logo {
    width: 360px !important;
    max-width: 50vw !important;
    flex: 0 1 360px !important;
  }
}
@media (max-width: 599px) {
  body.refined-site .header_navbar > .container-fluid { position: relative; padding-left: 6px !important; padding-right: 6px !important; }
  body.refined-site .header_logo, body.refined-site #header .header_logo {
    width: 300px !important;
    max-width: calc(100vw - 100px) !important;
    flex: 0 1 300px !important;
  }
  body.refined-site .header_search_sp { position: absolute !important; top: 17px !important; right: 50px !important; margin: 0 !important; }
  body.refined-site .navbar-toggler { position: absolute; top: 17px; right: 6px; }
  /* Keep “包装方案” together on the first line of the mobile hero title. */
  body.refined-site .pharma-positioning-title { font-size: 30px !important; line-height: 1.45 !important; }
}

/* Page-specific hero art: each page carries its own subject rather than sharing one banner. */
body.refined-site .ref-hero-solutions {
  background-image: linear-gradient(90deg, rgba(3, 28, 69, .88) 0%, rgba(3, 28, 69, .42) 42%, rgba(3, 28, 69, .05) 74%), url('/assets/optimized/hero-solutions-ai.webp') !important;
  background-position: center, center !important;
}
body.refined-site .ref-hero-applications {
  background-image: linear-gradient(90deg, rgba(5, 50, 112, .76) 0%, rgba(5, 50, 112, .30) 43%, rgba(5, 50, 112, .04) 76%), url('/assets/optimized/hero-applications-ai.webp') !important;
  background-position: center, center !important;
}
body.refined-site .ref-hero-news {
  background-image: linear-gradient(90deg, rgba(2, 19, 47, .91) 0%, rgba(2, 19, 47, .52) 45%, rgba(2, 19, 47, .08) 78%), url('/assets/optimized/hero-news-ai.webp') !important;
  background-position: center, center !important;
}
body.refined-site .ref-hero-contact {
  background-image: linear-gradient(90deg, rgba(237, 245, 251, .97) 0%, rgba(237, 245, 251, .85) 39%, rgba(237, 245, 251, .18) 76%), url('/assets/optimized/refined--contact-navigation-haian.webp') !important;
  background-position: center, center !important;
}

@media (max-width: 991px) {
  /* Keep each mobile crop focused on its subject rather than exposing only a background edge. */
  body.refined-site .ref-hero-solutions { background-position: 66% center, 66% center !important; }
  body.refined-site .ref-hero-applications { background-position: 72% center, 72% center !important; }
  body.refined-site .ref-hero-news { background-position: 70% center, 70% center !important; }
  body.refined-site .ref-hero-contact { background-position: 68% center, 68% center !important; }
  body.refined-site .ref-hero-products { background-position: 100% center, 100% center !important; }
}
/* 联系页同时展示公司地址与生产基地，保持信息层级清晰。 */
body.refined-site .ref-hero-copy .contact-production-base {
  margin: 6px 0 0 !important;
  font-size: 15px;
  opacity: .9;
}
body.refined-site .ref-hero-copy .contact-company-map-link { margin-left: 20px; }
@media (max-width: 991px) {
  body.refined-site .ref-hero-copy .contact-production-base { font-size: 14px; }
  /* 两个地图入口为一个操作组：手机端也保持同一行，避免前后断开。 */
  body.refined-site .ref-hero-copy .contact-map-link {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-size: 13px;
    margin-top: 10px;
  }
  body.refined-site .ref-hero-copy .contact-company-map-link { margin: 10px 0 0 12px; }
}

body.refined-site .contact-company-map {
  max-width: 1500px;
  margin: 54px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(460px, 1.28fr);
  gap: 0;
}
body.refined-site .contact-company-map-copy {
  min-height: 330px;
  padding: 54px 50px;
  color: #fff;
  background: #003b82;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
body.refined-site .contact-company-map-copy > span { color: #ff7900; font-size: 12px; font-weight: 700; letter-spacing: 2px; }
body.refined-site .contact-company-map-copy h2 { margin: 18px 0 22px; color: #fff; font-size: 34px; font-weight: 700; }
body.refined-site .contact-company-map-copy p { margin: 0 0 12px; font-size: 17px; line-height: 1.75; }
body.refined-site .contact-company-map-copy small { color: rgba(255,255,255,.62); font-size: 13px; }
body.refined-site .contact-company-map-copy a { margin-top: auto; color: #fff; border-bottom: 1px solid rgba(255,255,255,.62); padding-bottom: 6px; font-size: 15px; }
body.refined-site .contact-company-map-frame { min-height: 330px; position: relative; overflow: hidden; background: #e9f0f6; }
body.refined-site .contact-company-map-diagram { min-height: 330px; position: relative; overflow: hidden; }
body.refined-site .contact-company-map-diagram svg { display: block; width: 100%; height: 330px; }
body.refined-site .contact-company-map-diagram > span { position: absolute; left: 22px; bottom: 20px; color: #385974; background: rgba(255,255,255,.82); padding: 7px 10px; font-size: 12px; }
body.refined-site .contact-company-map-fallback { position: absolute; right: 16px; bottom: 16px; padding: 10px 14px; color: #003b82; background: rgba(255,255,255,.94); font-size: 14px; box-shadow: 0 8px 24px rgba(0,41,94,.16); }
@media (max-width: 767px) {
  body.refined-site .contact-company-map { margin-top: 32px; padding: 0 20px; grid-template-columns: 1fr; }
  body.refined-site .contact-company-map-copy { min-height: 0; padding: 34px 28px; }
  body.refined-site .contact-company-map-copy h2 { margin: 12px 0 16px; font-size: 28px; }
  body.refined-site .contact-company-map-copy a { margin-top: 24px; }
  body.refined-site .contact-company-map-frame, body.refined-site .contact-company-map-diagram { min-height: 260px; }
  body.refined-site .contact-company-map-diagram svg { height: 260px; }
}
