/* Phase 2B-4, confined to the OEM&ODM SOLUTION section. */
.sanyu-oem{background:#fff;color:#293246;font-family:Arial,Helvetica,sans-serif}
.sanyu-oem-inner{position:relative;max-width:1705px;width:calc(100% - 40px);height:463px;margin:0 auto}
.sanyu-oem h2{position:absolute;top:101.5px;left:4px;margin:0;font-size:30px;font-weight:700;line-height:45px}
.sanyu-oem-rule{position:absolute;top:148.328px;left:9.5px;width:60px;height:3px;background:hsl(0,94%,49%)}
.sanyu-oem-service{position:absolute;width:19.65%;height:85px;left:0;top:172.5px;padding-left:63px}
.sanyu-oem-service-color,.sanyu-oem-service-packing{left:19.77%;padding-left:62px}
.sanyu-oem-service-laser,.sanyu-oem-service-packing{top:269.5px}
.sanyu-oem-icon{position:absolute;left:0;top:5px;width:46px;height:50px;object-fit:cover;border-radius:10px}
.sanyu-oem-service h3{font-size:18px;font-weight:700;line-height:27px;margin:0;white-space:nowrap}
.sanyu-oem-service p{font-size:13px;font-weight:400;line-height:19.5px;margin:0;max-width:162px}
.sanyu-oem-more{position:absolute;top:349.75px;left:2px;display:flex;align-items:center;justify-content:center;width:178px;height:53px;border:1px solid hsl(0,89%,45%);background:hsl(6,80%,47%);border-radius:15px;color:white;font-size:16px;font-weight:700;line-height:24px}
.sanyu-oem-card{position:absolute;width:15.13%;margin:0;top:106.5px;left:37.68%}
.sanyu-oem-card-laser{top:104.5px;left:53.28%}
.sanyu-oem-card-color{top:107.5px;left:68.77%}
.sanyu-oem-card-packing{top:120.5px;left:84.84%}
.sanyu-oem-card .sanyu-oem-photo{display:block;width:100%;max-width:none;height:253px;object-fit:cover;object-position:center;border-radius:10px}
.sanyu-oem-card figcaption{position:absolute;top:267px;left:0;right:0;text-align:center;font-size:13px;font-weight:700;line-height:19.5px}
.sanyu-oem-card-laser figcaption{top:269px}.sanyu-oem-card-color figcaption{top:266px}.sanyu-oem-card-packing figcaption{top:253px}
@media(min-width:601px) and (max-width:1100px){
 .sanyu-oem-inner{height:auto;padding:40px 0}
 .sanyu-oem h2{position:static}.sanyu-oem-rule{position:static;margin:2px 0 24px}
 .sanyu-oem-services{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
 .sanyu-oem-service{position:relative;top:auto;left:auto;width:auto;min-height:85px}
 .sanyu-oem-more{position:static;margin:15px 0 28px}
 .sanyu-oem-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 12px}
 .sanyu-oem-card{position:static;width:auto}.sanyu-oem-card figcaption{position:static;margin-top:12px}
}
@media(max-width:600px){
 .sanyu-oem-inner{width:calc(100% - 40px);max-width:343px;height:2016px}
 .sanyu-oem h2{top:21.5px;left:0;font-size:24px;line-height:36px;white-space:nowrap}
 .sanyu-oem-rule{top:54.5px;left:0}
 .sanyu-oem-service{top:78px;left:0;width:50%;padding-left:50px}
 .sanyu-oem-service-color,.sanyu-oem-service-packing{left:50%;padding-left:50px}
 .sanyu-oem-service-laser,.sanyu-oem-service-packing{top:155px}
 .sanyu-oem-icon{width:50px;height:50px;top:0;border-radius:10px}
 .sanyu-oem-service h3{font-size:16px;line-height:24px;white-space:normal}
 .sanyu-oem-service p{font-size:13px;line-height:19.5px;max-width:119px}
 .sanyu-oem-more{top:247px;left:0}
 .sanyu-oem-card{left:0;width:100%;top:328.047px}
 .sanyu-oem-card-laser{top:743.078px}.sanyu-oem-card-color{top:1167.609px}.sanyu-oem-card-packing{top:1586.89px}
 .sanyu-oem-card .sanyu-oem-photo{height:auto;aspect-ratio:343/384;object-fit:cover}
 .sanyu-oem-card figcaption{top:380.531px}
 .sanyu-oem-card-laser figcaption{top:387.031px}.sanyu-oem-card-color figcaption{top:391.047px}.sanyu-oem-card-packing figcaption{top:381.031px}
}

@media(min-width:1800px){.sanyu-oem-inner{left:26.5px}}
@media(max-width:600px){.sanyu-oem-service-packing h3{width:max-content;white-space:nowrap}.sanyu-oem-service-color h3{font-size:18px}}

@media(max-width:600px){.sanyu-oem-service-color h3{width:max-content;white-space:nowrap}.sanyu-oem-service-color p{width:119px;max-width:none;margin-top:-5.5px}}

/* Phase 4D-Mobile-A: let the mobile OEM section follow its content. */
@media(max-width:600px){
 .sanyu-oem-inner{height:auto;padding:22px 0 30px}
 .sanyu-oem h2{position:static;top:auto;left:auto;margin:0;font-size:24px;line-height:36px;white-space:normal}
 .sanyu-oem-rule{position:static;top:auto;left:auto;margin:8px 0 20px}
 .sanyu-oem-services{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 8px}
 .sanyu-oem-service,.sanyu-oem-service-color,.sanyu-oem-service-packing,.sanyu-oem-service-laser{position:relative;top:auto;left:auto;width:auto;height:auto;min-height:85px;padding-left:50px;box-sizing:border-box}
 .sanyu-oem-service h3{font-size:16px;line-height:24px;white-space:normal;width:auto}
 .sanyu-oem-service-color h3{font-size:16px;white-space:normal;width:auto}
 .sanyu-oem-service p,.sanyu-oem-service-color p{width:auto;max-width:none;margin-top:0;font-size:13px;line-height:19.5px}
 .sanyu-oem-more{position:static;top:auto;left:auto;margin:18px 0 24px}
 .sanyu-oem-gallery{display:grid;grid-template-columns:minmax(0,1fr);gap:24px}
 .sanyu-oem-card,.sanyu-oem-card-laser,.sanyu-oem-card-color,.sanyu-oem-card-packing{position:static;top:auto;left:auto;width:auto;margin:0}
 .sanyu-oem-card .sanyu-oem-photo{height:auto;aspect-ratio:auto;object-fit:cover}
 .sanyu-oem-card figcaption,.sanyu-oem-card-laser figcaption,.sanyu-oem-card-color figcaption,.sanyu-oem-card-packing figcaption{position:static;top:auto;left:auto;right:auto;margin-top:8px;text-align:center}
}

/* Append only to production oem-solution.css, loaded by the homepage OEM&ODM SOLUTION module. */
@media (max-width: 600px) {
  .sanyu-oem-card-printing {
    width: 100%;
    max-width: 288px;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    margin-inline: auto;
  }

  .sanyu-oem-card-printing .sanyu-oem-photo {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
    margin-inline: auto;
  }
}

/* Homepage OEM gallery only; desktop layout is unchanged. */
@media (max-width: 600px) {
  .sanyu-oem .sanyu-oem-more {
    margin: 18px 0 16px;
  }

  .sanyu-oem .sanyu-oem-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 18px;
    height: auto;
    min-height: 0;
    overflow: visible;
    align-items: start;
  }

  .sanyu-oem .sanyu-oem-gallery .sanyu-oem-card {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    margin: 0;
    overflow: visible;
  }

  .sanyu-oem .sanyu-oem-gallery .sanyu-oem-photo {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 4 / 5;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
  }

  .sanyu-oem .sanyu-oem-gallery figcaption {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    margin: 8px 0 0;
    text-align: center;
  }
}

/* Only the Custom Packing photo in the homepage OEM mobile gallery. */
@media (max-width: 600px) {
  .sanyu-oem .sanyu-oem-gallery .sanyu-oem-card-packing .sanyu-oem-photo {
    object-fit: cover;
    object-position: center;
  }
}
