:root {
  --red: #c9162f;
  --red-dark: #9f1024;
  --ink: #16191f;
  --muted: #626b78;
  --line: #dce1e8;
  --soft: #f4f6f8;
  --blue: #1769aa;
  --green: #14845f;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(20, 28, 40, 0.14);
}

/* Mobile presentation refinements: compact hero, balanced factory gallery, 3-up patents. */
@media (max-width: 820px) {
  .site-header {
    min-height: 60px;
    padding: 0 14px;
    background: rgba(10, 13, 18, 0.9);
  }

  .site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
  }

  .brand {
    min-width: 164px;
    width: 164px;
    height: 44px;
    padding: 6px 9px;
  }

  .brand img {
    width: 146px;
    max-height: 32px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
    padding: 8px;
  }

  .main-nav {
    top: 60px;
  }

  .hero {
    display: block;
    min-height: 620px;
    height: min(720px, 100svh);
    padding-top: 0;
    background: #0f1217;
  }

  .hero-media,
  .hero-overlay {
    position: absolute;
    inset: 0;
    width: auto;
    aspect-ratio: auto;
    transform: none;
  }

  .hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    background: #0f1217;
  }

  .hero-overlay {
    display: block;
    background:
      linear-gradient(180deg, rgba(7, 10, 15, 0.32) 0%, rgba(7, 10, 15, 0.24) 34%, rgba(7, 10, 15, 0.84) 100%),
      linear-gradient(110deg, rgba(201, 22, 47, 0.34), transparent 48%);
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 104px 20px 72px;
    background: transparent;
  }

  .hero .eyebrow {
    align-self: flex-start;
    padding: 6px 9px;
    border-radius: 4px;
    font-size: 10px;
  }

  .hero h1 {
    width: min(11em, 100%);
    margin: 18px 0 14px;
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.2;
  }

  html[lang="en"] .hero h1 {
    width: min(13em, 100%);
    font-size: clamp(25px, 7.2vw, 31px);
  }

  .hero-copy {
    width: 100%;
    max-width: 560px;
    font-size: 13px;
    line-height: 1.75;
  }

  html[lang="en"] .hero-copy {
    font-size: 12px;
    line-height: 1.62;
  }

  .hero-actions {
    display: block;
    margin-top: 22px;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 44px;
  }

  .hero-actions .btn.ghost {
    display: none;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    margin-top: auto;
    border-color: rgba(255, 255, 255, 0.28);
  }

  .hero-stats div {
    min-width: 0;
    padding: 13px 9px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 0;
  }

  .hero-stats div:last-child {
    border-right: 0;
  }

  .hero-stats strong {
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.25;
  }

  .hero-stats span {
    font-size: 10px;
    line-height: 1.35;
  }

  html[lang="en"] .hero-stats strong {
    font-size: 12px;
  }

  html[lang="en"] .hero-stats span {
    font-size: 9px;
  }

  .factory {
    padding: 46px 14px 76px;
  }

  .factory-content {
    margin-bottom: 22px;
  }

  .factory-content h2 {
    margin: 8px 0 10px;
    font-size: 25px;
  }

  .factory-content p {
    font-size: 13px;
    line-height: 1.7;
  }

  .factory-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 16px;
    background: rgba(255, 255, 255, 0.14);
  }

  .factory-points span {
    display: grid;
    min-height: 54px;
    place-items: center;
    padding: 8px 5px;
    border: 0;
    background: #20252c;
    font-size: 11px;
    text-align: center;
  }

  .factory-points span::before {
    display: none;
  }

  .factory-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 8px;
  }

  .factory-shot,
  .factory-shot-main {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 0;
    aspect-ratio: 4 / 3;
    border-radius: 4px;
  }

  .factory-shot-main {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
  }

  .factory-shot figcaption {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .factory-shot figcaption span {
    margin-bottom: 2px;
    font-size: 8px;
  }

  .factory-shot figcaption strong {
    font-size: 12px;
    line-height: 1.25;
  }

  .factory-shot-main figcaption strong {
    font-size: 16px;
  }

  .credentials {
    padding-bottom: 44px;
  }

  .patent-showcase {
    width: 100%;
    margin: 18px auto 4px;
    padding: 0 16px 10px;
  }

  .patent-block-head {
    margin-bottom: 10px;
  }

  .patent-block-head p {
    font-size: 12px;
    line-height: 1.55;
  }

  .patent-carousel {
    grid-auto-columns: calc((100% - 16px) / 3);
    gap: 8px;
    padding: 5px 0 8px;
    scroll-padding-left: 0;
  }

  .patent-card {
    min-width: 0;
  }

  .patent-card img,
  .patent-file-card {
    border-width: 3px;
    box-shadow: 0 7px 14px rgba(22, 25, 31, 0.11);
  }

  .patent-card img {
    padding: 2px;
  }

  .patent-card > span:last-child {
    min-height: 36px;
    margin: -3px 2px 0;
    padding: 7px 3px 6px;
    font-size: 10px;
    line-height: 1.3;
  }

  .carousel-controls {
    inset: 57% 4px auto;
  }

  .carousel-controls button {
    width: 28px;
    height: 28px;
    font-size: 20px;
  }
}

@media (max-width: 420px) {
  .hero {
    min-height: 590px;
    height: min(660px, 100svh);
  }

  .hero-inner {
    padding-right: 16px;
    padding-bottom: 66px;
    padding-left: 16px;
  }

  .patent-showcase {
    padding-right: 12px;
    padding-left: 12px;
  }
}

/* Final mobile certificate layout: 3 portrait cards, then 3 landscape cards. */
@media (max-width: 820px) {
  .certificate-featured {
    padding: 14px 10px 12px;
  }

  .certificate-featured .certificate-block-head {
    gap: 4px;
    margin-bottom: 12px;
  }

  .certificate-featured .certificate-block-head h3 {
    margin-top: 3px;
    font-size: 19px;
  }

  .certificate-featured .certificate-block-head p {
    font-size: 11px;
    line-height: 1.55;
  }

  .featured-certificate-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 6px;
    align-items: start;
  }

  .featured-certificate-card {
    grid-template-rows: auto 30px;
    gap: 6px;
    min-width: 0;
    min-height: 0;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 6px 15px rgba(22, 25, 31, 0.07);
  }

  .featured-certificate-card img,
  .featured-certificate-card.is-landscape img {
    width: 100%;
    min-height: 0;
    padding: 3px;
    border-radius: 2px;
    object-fit: contain;
  }

  .featured-certificate-card:first-child img {
    min-height: 0;
  }

  .featured-certificate-card.is-portrait img {
    aspect-ratio: 3 / 4;
  }

  .featured-certificate-card.is-landscape img {
    aspect-ratio: 4 / 3;
  }

  .featured-certificate-card span {
    min-height: 0;
    display: -webkit-box;
    overflow: hidden;
    align-self: start;
    font-size: 10px;
    line-height: 1.35;
    word-break: break-all;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

@media (max-width: 420px) {
  .certificate-featured {
    padding-right: 8px;
    padding-left: 8px;
  }

  .featured-certificate-grid {
    gap: 7px 5px;
  }

  .featured-certificate-card {
    grid-template-rows: auto 28px;
    padding: 4px;
  }

  .featured-certificate-card span {
    font-size: 9px;
  }
}

/* Live final override - placed at the absolute end so older mobile rules cannot override it. */
@media (max-width: 820px) {
  body {
    overflow-x: hidden;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    height: 78px;
    padding: 12px 18px;
    background: #101318;
  }

  .brand {
    width: 172px;
    height: 48px;
  }

  .brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .nav-toggle {
    width: 46px;
    height: 46px;
  }

  .hero {
    position: relative;
    display: grid;
    align-items: end;
    min-height: 610px;
    height: auto;
    padding: 0;
    overflow: hidden;
    background: #101318;
  }

  .hero-media,
  .hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .hero-media {
    z-index: 0;
  }

  .hero-video {
    object-fit: cover;
    object-position: 50% 38%;
    filter: none;
  }

  .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
      linear-gradient(180deg, rgba(13, 17, 23, 0.04) 0%, rgba(13, 17, 23, 0.24) 32%, rgba(13, 17, 23, 0.82) 72%, rgba(13, 17, 23, 0.96) 100%),
      linear-gradient(120deg, rgba(199, 16, 45, 0.22), transparent 54%);
  }

  .hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: none;
    padding: 118px 18px 30px;
  }

  .hero .eyebrow {
    width: fit-content;
    max-width: 100%;
    margin-bottom: 18px;
    padding: 8px 12px;
    border-radius: 5px;
    background: var(--red);
    color: var(--white);
    font-size: 12px;
    line-height: 1.2;
    white-space: normal;
  }

  .hero h1 {
    max-width: 8.5em;
    margin: 0;
    color: var(--white);
    font-size: clamp(35px, 9.2vw, 48px);
    line-height: 1.13;
    letter-spacing: 0;
  }

  .hero h1::after {
    content: "";
    display: block;
    width: 68px;
    height: 3px;
    margin: 14px 0 0;
    background: var(--red);
  }

  .hero-copy {
    max-width: 100%;
    margin: 18px 0 24px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.8;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 16px;
  }

  .hero-actions .btn {
    min-height: 48px;
    border-radius: 6px;
    font-size: 15px;
  }

  .hero-actions .btn.ghost {
    display: none;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(18, 22, 29, 0.72);
    backdrop-filter: blur(8px);
  }

  .hero-stats div {
    min-width: 0;
    padding: 12px 6px;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom: 0;
  }

  .hero-stats div:last-child {
    border-right: 0;
  }

  .hero-stats strong {
    display: block;
    font-size: 13px;
    line-height: 1.25;
  }

  .hero-stats span {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    line-height: 1.35;
  }

  .solution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 14px;
  }

  .industry-card {
    min-height: 178px;
    border-radius: 7px;
  }

  .industry-card img {
    display: block;
    min-height: 178px;
    opacity: 1;
  }

  .industry-card div {
    padding: 15px 12px;
  }

  .industry-card h3 {
    font-size: 18px;
  }

  .industry-card p {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.45;
  }

  .factory {
    padding: 42px 18px 70px;
  }

  .factory-content {
    display: block;
    margin-bottom: 20px;
  }

  .factory-content h2 {
    font-size: 24px;
  }

  .factory-content p {
    font-size: 13px;
  }

  .factory-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .factory-shot,
  .factory-shot-main {
    grid-column: auto;
    min-height: 0;
    aspect-ratio: 1 / 1.05;
    border-radius: 6px;
  }

  .factory-shot-main {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }

  .factory-shot figcaption {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .factory-shot figcaption span {
    font-size: 9px;
  }

  .factory-shot figcaption strong {
    font-size: 15px;
  }

  .credentials {
    padding-right: 14px;
    padding-left: 14px;
  }

  .credential-relationship-note {
    margin: 10px 0 12px;
    padding: 8px 0 0;
    border-top: 1px solid rgba(201, 22, 47, 0.25);
    font-size: 11px;
    line-height: 1.65;
  }

  .featured-certificate-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .featured-certificate-card {
    padding: 5px;
    border-radius: 6px;
  }

  .featured-certificate-card img,
  .featured-certificate-card.is-portrait img,
  .featured-certificate-card.is-landscape img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 3.7;
    object-fit: contain;
  }

  .featured-certificate-card span {
    min-height: 28px;
    font-size: 9px;
    line-height: 1.3;
  }

  .patent-showcase {
    padding: 0;
  }

  .patent-block-head {
    display: block;
    margin: 0 0 14px;
  }

  .patent-block-head h3 {
    margin: 6px 0 8px;
  }

  .patent-carousel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding: 0;
  }

  .patent-card:nth-child(n+7) {
    display: none;
  }

  .patent-card {
    min-width: 0;
  }

  .patent-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    padding: 3px;
    border-width: 4px;
    object-fit: contain;
  }

  .patent-card > span:last-child {
    min-height: 32px;
    margin: -2px 2px 0;
    padding: 7px 2px;
    font-size: 9px;
    line-height: 1.25;
  }

  .patent-showcase .carousel-controls {
    display: none;
  }

  .product-modal {
    align-items: stretch;
    overflow-y: auto;
    padding: 12px;
  }

  .product-modal-panel {
    grid-template-columns: 1fr;
    width: min(100%, 520px);
    max-height: none;
    margin: auto;
    overflow: visible;
  }

  .product-modal-media {
    min-height: 0;
    padding: 18px;
  }

  .product-modal-copy {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 420px) {
  .site-header {
    height: 72px;
    padding: 10px 16px;
  }

  .brand {
    width: 158px;
    height: 44px;
  }

  .hero {
    min-height: 560px;
  }

  .hero-inner {
    padding: 98px 18px 26px;
  }

  .hero h1 {
    max-width: 8em;
    font-size: 34px;
  }

  .hero-copy {
    font-size: 14px;
  }
}

/* Live final override - keep approved mobile homepage and clean sections. */
@media (max-width: 820px) {
  body { overflow-x: hidden; }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    height: 78px;
    padding: 12px 18px;
    background: #101318;
  }

  .brand { width: 172px; height: 48px; }
  .brand img { width: 100%; height: 100%; object-fit: contain; }
  .nav-toggle { width: 46px; height: 46px; }

  .hero {
    position: relative;
    display: grid;
    align-items: end;
    min-height: 610px;
    height: auto;
    padding: 0;
    overflow: hidden;
    background: #101318;
  }

  .hero-media,
  .hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .hero-media { z-index: 0; }
  .hero-video {
    object-fit: cover;
    object-position: 50% 38%;
    filter: none;
  }

  .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
      linear-gradient(180deg, rgba(13, 17, 23, 0.04) 0%, rgba(13, 17, 23, 0.24) 32%, rgba(13, 17, 23, 0.82) 72%, rgba(13, 17, 23, 0.96) 100%),
      linear-gradient(120deg, rgba(199, 16, 45, 0.22), transparent 54%);
  }

  .hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: none;
    padding: 118px 18px 30px;
  }

  .hero .eyebrow {
    width: fit-content;
    max-width: 100%;
    margin-bottom: 18px;
    padding: 8px 12px;
    border-radius: 5px;
    background: var(--red);
    color: var(--white);
    font-size: 12px;
    line-height: 1.2;
    white-space: normal;
  }

  .hero h1 {
    max-width: 8.5em;
    margin: 0;
    color: var(--white);
    font-size: clamp(35px, 9.2vw, 48px);
    line-height: 1.13;
    letter-spacing: 0;
  }

  .hero h1::after {
    content: "";
    display: block;
    width: 68px;
    height: 3px;
    margin: 14px 0 0;
    background: var(--red);
  }

  .hero-copy {
    max-width: 100%;
    margin: 18px 0 24px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.8;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 16px;
  }

  .hero-actions .btn {
    min-height: 48px;
    border-radius: 6px;
    font-size: 15px;
  }

  .hero-actions .btn.ghost { display: none; }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(18, 22, 29, 0.72);
    backdrop-filter: blur(8px);
  }

  .hero-stats div {
    min-width: 0;
    padding: 12px 6px;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom: 0;
  }

  .hero-stats div:last-child { border-right: 0; }
  .hero-stats strong { display: block; font-size: 13px; line-height: 1.25; }
  .hero-stats span { display: block; margin-top: 4px; font-size: 10px; line-height: 1.35; }

  .solution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 14px;
  }

  .industry-card { min-height: 178px; border-radius: 7px; }
  .industry-card img { display: block; min-height: 178px; opacity: 1; }
  .industry-card div { padding: 15px 12px; }
  .industry-card h3 { font-size: 18px; }
  .industry-card p { margin-top: 6px; font-size: 11px; line-height: 1.45; }

  .factory { padding: 42px 18px 70px; }
  .factory-content { display: block; margin-bottom: 20px; }
  .factory-content h2 { font-size: 24px; }
  .factory-content p { font-size: 13px; }
  .factory-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .factory-shot,
  .factory-shot-main {
    grid-column: auto;
    min-height: 0;
    aspect-ratio: 1 / 1.05;
    border-radius: 6px;
  }
  .factory-shot-main { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .factory-shot figcaption { right: 10px; bottom: 10px; left: 10px; }
  .factory-shot figcaption span { font-size: 9px; }
  .factory-shot figcaption strong { font-size: 15px; }

  .credentials { padding-right: 14px; padding-left: 14px; }
  .credential-relationship-note {
    margin: 10px 0 12px;
    padding: 8px 0 0;
    border-top: 1px solid rgba(201, 22, 47, 0.25);
    font-size: 11px;
    line-height: 1.65;
  }

  .featured-certificate-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .featured-certificate-card {
    padding: 5px;
    border-radius: 6px;
  }

  .featured-certificate-card img,
  .featured-certificate-card.is-portrait img,
  .featured-certificate-card.is-landscape img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 3.7;
    object-fit: contain;
  }

  .featured-certificate-card span {
    min-height: 28px;
    font-size: 9px;
    line-height: 1.3;
  }

  .patent-showcase { padding: 0; }
  .patent-block-head { display: block; margin: 0 0 14px; }
  .patent-block-head h3 { margin: 6px 0 8px; }
  .patent-carousel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding: 0;
  }
  .patent-card:nth-child(n+7) { display: none; }
  .patent-card { min-width: 0; }
  .patent-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    padding: 3px;
    object-fit: contain;
    border-width: 4px;
  }
  .patent-card > span:last-child {
    min-height: 32px;
    margin: -2px 2px 0;
    padding: 7px 2px;
    font-size: 9px;
    line-height: 1.25;
  }
  .patent-showcase .carousel-controls { display: none; }

  .product-modal {
    align-items: stretch;
    overflow-y: auto;
    padding: 12px;
  }
  .product-modal-panel {
    grid-template-columns: 1fr;
    width: min(100%, 520px);
    max-height: none;
    margin: auto;
    overflow: visible;
  }
  .product-modal-media { min-height: 0; padding: 18px; }
  .product-modal-copy { max-height: none; overflow: visible; }
}

@media (max-width: 420px) {
  .site-header { height: 72px; padding: 10px 16px; }
  .brand { width: 158px; height: 44px; }
  .hero { min-height: 560px; }
  .hero-inner { padding: 98px 18px 26px; }
  .hero h1 { max-width: 8em; font-size: 34px; }
  .hero-copy { font-size: 14px; }
}

/* LAST OVERRIDE 2026-07-17-B: lock live layout after product-detail and mobile QA. */
.product-details {
  display: none;
}

.product-card {
  cursor: pointer;
}

.product-visual {
  background:
    radial-gradient(circle at 50% 42%, rgba(50, 97, 169, 0.12), transparent 38%),
    linear-gradient(145deg, #ffffff 0%, #f5f8fc 100%);
}

.product-visual img {
  filter: drop-shadow(0 20px 24px rgba(15, 23, 42, 0.12));
}

.product-modal {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.product-modal-panel {
  max-height: min(860px, calc(100vh - 56px));
  overflow: hidden;
}

.product-modal-copy {
  overflow-y: auto;
}

.intro-video-card {
  min-height: 0;
}

.intro-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #101318;
}

.industry-card img {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 1;
  object-fit: cover;
}

.patent-file-card {
  display: none;
}

@media (max-width: 820px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    height: 72px;
    background: #101318;
  }

  .hero {
    min-height: 560px;
    background: #101318;
  }

  .hero-media,
  .hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .hero-video {
    object-fit: cover;
    object-position: 50% 42%;
  }

  .hero-inner {
    padding: 92px 18px 24px;
  }

  .hero h1 {
    max-width: 8.4em;
    font-size: clamp(32px, 8.8vw, 42px);
    line-height: 1.18;
  }

  .hero-copy {
    margin: 16px 0 22px;
    font-size: 14px;
    line-height: 1.75;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-stats div {
    min-height: 66px;
    padding: 10px 5px;
  }

  .hero-stats strong {
    font-size: 12px;
  }

  .hero-stats span {
    font-size: 9px;
  }

  .factory {
    padding: 36px 16px 64px;
    background: #12161d;
  }

  .factory-content {
    margin-bottom: 18px;
  }

  .factory-content h2 {
    color: #fff;
    font-size: 23px;
    line-height: 1.35;
  }

  .factory-content p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    line-height: 1.75;
  }

  .factory-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .factory-points span {
    min-height: 40px;
    padding: 8px 4px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.86);
    font-size: 10px;
    text-align: center;
  }

  .factory-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .factory-shot,
  .factory-shot-main {
    min-height: 0;
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    overflow: hidden;
  }

  .factory-shot-main {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }

  .factory-shot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .factory-shot::after {
    background: linear-gradient(180deg, transparent 36%, rgba(6, 9, 14, 0.86) 100%);
  }

  .factory-shot figcaption {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .factory-shot figcaption span {
    margin-bottom: 3px;
    color: #ffc8d0;
    font-size: 8px;
    letter-spacing: 0;
  }

  .factory-shot figcaption strong {
    font-size: 14px;
    line-height: 1.25;
  }

  .solution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 12px;
  }

  .industry-card,
  .industry-card img {
    min-height: 150px;
    aspect-ratio: 1 / 1.08;
  }

  .industry-card div {
    padding: 12px 10px;
  }

  .industry-card h3 {
    font-size: 16px;
  }

  .industry-card p {
    display: none;
  }

  .certificate-featured {
    padding: 12px 8px;
  }

  .featured-certificate-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .featured-certificate-card {
    display: grid;
    grid-template-rows: 82px 30px;
    gap: 5px;
    min-height: 0;
    padding: 4px;
    border-radius: 6px;
  }

  .featured-certificate-card img,
  .featured-certificate-card.is-portrait img,
  .featured-certificate-card.is-landscape img {
    width: 100%;
    height: 82px;
    aspect-ratio: auto;
    padding: 2px;
    object-fit: contain;
  }

  .featured-certificate-card span {
    min-height: 0;
    overflow: hidden;
    font-size: 9px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
  }

  .credential-relationship-note {
    margin: 8px 0 12px;
    padding: 8px 0 0;
    font-size: 10px;
    line-height: 1.55;
  }

  .patent-showcase {
    padding: 0 4px;
  }

  .patent-carousel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .patent-card:nth-child(n+7) {
    display: none;
  }

  .patent-card img {
    width: 100%;
    height: 116px;
    aspect-ratio: auto;
    padding: 2px;
    border-width: 3px;
    object-fit: contain;
  }

  .patent-card > span:last-child {
    min-height: 30px;
    padding: 6px 2px;
    font-size: 9px;
    line-height: 1.25;
  }

  .product-modal {
    align-items: flex-start;
    padding: 10px;
  }

  .product-modal-panel {
    grid-template-columns: 1fr;
    width: 100%;
    max-height: calc(100svh - 20px);
    overflow-y: auto;
    border-radius: 8px;
  }

  .product-modal-media {
    padding: 14px;
  }

  .product-modal-media img {
    max-height: 260px;
    object-fit: contain;
  }

  .product-modal-copy {
    overflow: visible;
  }
}

@media (max-width: 420px) {
  .hero {
    min-height: 540px;
  }

  .hero-inner {
    padding-top: 88px;
  }

  .hero .eyebrow {
    font-size: 11px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-actions .btn {
    min-height: 46px;
  }
}

/* 2026-07-17 final mobile recovery: keep the approved compact homepage,
   clean factory gallery, certificate wall and patent grid after older rules. */
@media (max-width: 820px) {
  body {
    overflow-x: hidden;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    height: 78px;
    padding: 12px 18px;
    background: #101318;
  }

  .brand {
    width: 172px;
    height: 48px;
  }

  .brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .nav-toggle {
    width: 46px;
    height: 46px;
  }

  .hero {
    position: relative;
    display: grid;
    align-items: end;
    min-height: 610px;
    height: auto;
    padding: 0;
    overflow: hidden;
    background: #101318;
  }

  .hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
  }

  .hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: 50% 38%;
    filter: none;
  }

  .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
      linear-gradient(180deg, rgba(13, 17, 23, 0.05) 0%, rgba(13, 17, 23, 0.22) 30%, rgba(13, 17, 23, 0.82) 70%, rgba(13, 17, 23, 0.96) 100%),
      linear-gradient(120deg, rgba(199, 16, 45, 0.22), transparent 52%);
  }

  .hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: none;
    padding: 118px 18px 30px;
  }

  .hero .eyebrow {
    width: fit-content;
    max-width: 100%;
    margin-bottom: 18px;
    padding: 8px 12px;
    border-radius: 5px;
    background: var(--red);
    color: var(--white);
    font-size: 12px;
    line-height: 1.2;
    white-space: normal;
  }

  .hero h1 {
    max-width: 8.5em;
    margin: 0;
    color: var(--white);
    font-size: clamp(35px, 9.2vw, 48px);
    line-height: 1.13;
    letter-spacing: 0;
  }

  .hero h1::after {
    content: "";
    display: block;
    width: 68px;
    height: 3px;
    margin: 14px 0 0;
    background: var(--red);
  }

  .hero-copy {
    max-width: 100%;
    margin: 18px 0 24px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.8;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 16px;
  }

  .hero-actions .btn {
    min-height: 48px;
    border-radius: 6px;
    font-size: 15px;
  }

  .hero-actions .btn.ghost {
    display: none;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(18, 22, 29, 0.72);
    backdrop-filter: blur(8px);
  }

  .hero-stats div {
    min-width: 0;
    padding: 12px 6px;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom: 0;
  }

  .hero-stats div:last-child {
    border-right: 0;
  }

  .hero-stats strong {
    display: block;
    font-size: 13px;
    line-height: 1.25;
  }

  .hero-stats span {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    line-height: 1.35;
  }

  .solution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 14px;
  }

  .industry-card {
    min-height: 178px;
    border-radius: 7px;
  }

  .industry-card img {
    display: block;
    min-height: 178px;
    opacity: 1;
  }

  .industry-card div {
    padding: 15px 12px;
  }

  .industry-card h3 {
    font-size: 18px;
  }

  .industry-card p {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.45;
  }

  .factory {
    padding: 42px 18px 70px;
  }

  .factory-content {
    display: block;
    margin-bottom: 20px;
  }

  .factory-content h2 {
    font-size: 24px;
  }

  .factory-content p {
    font-size: 13px;
  }

  .factory-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .factory-shot,
  .factory-shot-main {
    grid-column: auto;
    min-height: 0;
    aspect-ratio: 1 / 1.05;
    border-radius: 6px;
  }

  .factory-shot-main {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }

  .factory-shot figcaption {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .factory-shot figcaption span {
    font-size: 9px;
  }

  .factory-shot figcaption strong {
    font-size: 15px;
  }

  .credentials {
    padding-right: 14px;
    padding-left: 14px;
  }

  .credential-relationship-note {
    margin: 10px 0 12px;
    padding: 8px 0 0;
    border-top: 1px solid rgba(201, 22, 47, 0.25);
    font-size: 11px;
    line-height: 1.65;
  }

  .featured-certificate-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .featured-certificate-card {
    padding: 5px;
    border-radius: 6px;
  }

  .featured-certificate-card img,
  .featured-certificate-card.is-portrait img,
  .featured-certificate-card.is-landscape img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 3.7;
    object-fit: contain;
  }

  .featured-certificate-card span {
    min-height: 28px;
    font-size: 9px;
    line-height: 1.3;
  }

  .patent-showcase {
    padding: 0;
  }

  .patent-block-head {
    display: block;
    margin: 0 0 14px;
  }

  .patent-block-head h3 {
    margin: 6px 0 8px;
  }

  .patent-carousel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding: 0;
  }

  .patent-card:nth-child(n+7) {
    display: none;
  }

  .patent-card {
    min-width: 0;
  }

  .patent-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    padding: 3px;
    object-fit: contain;
    border-width: 4px;
  }

  .patent-card > span:last-child {
    min-height: 32px;
    margin: -2px 2px 0;
    padding: 7px 2px;
    font-size: 9px;
    line-height: 1.25;
  }

  .patent-showcase .carousel-controls {
    display: none;
  }

  .product-modal {
    align-items: stretch;
    overflow-y: auto;
    padding: 12px;
  }

  .product-modal-panel {
    grid-template-columns: 1fr;
    width: min(100%, 520px);
    max-height: none;
    margin: auto;
    overflow: visible;
  }

  .product-modal-media {
    min-height: 0;
    padding: 18px;
  }

  .product-modal-copy {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 420px) {
  .site-header {
    height: 72px;
    padding: 10px 16px;
  }

  .brand {
    width: 158px;
    height: 44px;
  }

  .hero {
    min-height: 560px;
  }

  .hero-inner {
    padding: 98px 18px 26px;
  }

  .hero h1 {
    max-width: 8em;
    font-size: 34px;
  }

  .hero-copy {
    font-size: 14px;
  }
}

/* Final QA overrides: keep the approved mobile homepage compact, prevent broken-looking
   cards, and make product details fully viewable on small screens. */
.product-card {
  overflow: hidden;
}

.product-card picture,
.product-card .product-image,
.product-card > img {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.88) 58%, rgba(224, 232, 240, 0.58)),
    linear-gradient(135deg, rgba(201, 22, 47, 0.05), rgba(27, 108, 178, 0.06));
}

.product-card img {
  object-fit: contain;
  filter: drop-shadow(0 16px 20px rgba(26, 35, 48, 0.13));
}

.product-modal {
  padding: 24px;
}

.product-modal-panel {
  max-height: min(860px, calc(100vh - 48px));
  overflow: hidden;
}

.product-modal-copy {
  max-height: calc(100vh - 96px);
  overflow-y: auto;
}

.product-spec-panel {
  overflow-x: auto;
}

.product-spec-panel table {
  width: 100%;
}

.industry-card img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.industry-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(201, 22, 47, 0.18), transparent 42%),
    #11161d;
}

.credential-relationship-note {
  max-width: 1180px;
  margin: 14px auto -2px;
  padding: 8px 10px 0;
  font-size: 12px;
}

@media (max-width: 820px) {
  .hero {
    min-height: 0;
    height: auto;
    padding-bottom: 0;
    background: #10141b;
  }

  .hero-video {
    position: relative;
    display: block;
    height: 212px;
    object-fit: cover;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(12, 15, 21, 0.05) 0%, rgba(12, 15, 21, 0.24) 45%, rgba(12, 15, 21, 0.96) 100%),
      linear-gradient(135deg, rgba(201, 22, 47, 0.2), transparent 48%);
  }

  .hero-inner {
    position: relative;
    display: block;
    min-height: 0;
    padding: 34px 18px 26px;
  }

  .hero .eyebrow {
    display: inline-flex;
    max-width: 100%;
    white-space: normal;
  }

  .hero h1 {
    width: 100%;
    max-width: 9.8em;
    margin: 20px 0 14px;
    font-size: clamp(32px, 10vw, 44px);
    line-height: 1.16;
  }

  html[lang="en"] .hero h1 {
    max-width: 10.8em;
    font-size: clamp(28px, 8.4vw, 36px);
  }

  .hero-copy {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.85;
  }

  html[lang="en"] .hero-copy {
    font-size: 14px;
    line-height: 1.7;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .hero-actions .btn {
    min-height: 52px;
    border-radius: 7px;
    font-size: 17px;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
  }

  .hero-stats div {
    min-height: 72px;
    padding: 11px 7px;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom: 0;
  }

  .hero-stats strong {
    font-size: 14px;
  }

  .hero-stats span {
    font-size: 10px;
  }

  .solution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .industry-card {
    min-height: 190px;
    border-radius: 7px;
  }

  .industry-card div {
    padding: 14px;
  }

  .industry-card h3 {
    font-size: 20px;
  }

  .industry-card p {
    display: none;
  }

  .factory {
    padding: 42px 18px 54px;
  }

  .factory-content {
    display: block;
    margin-bottom: 20px;
  }

  .factory-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .factory-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .factory-shot,
  .factory-shot-main {
    grid-column: span 1;
    grid-row: auto;
    aspect-ratio: 1 / 1.1;
    border-radius: 6px;
  }

  .factory-shot-main {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }

  .factory-shot figcaption strong {
    font-size: 14px;
  }

  .certificate-block-head {
    display: block;
  }

  .certificate-block-head p {
    margin-top: 8px;
  }

  .credential-relationship-note {
    margin: 10px 10px 0;
    font-size: 10px;
    line-height: 1.55;
  }

  .patent-showcase {
    padding: 0 12px 16px;
  }

  .patent-carousel {
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
  }

  .patent-card {
    min-width: 0;
  }

  .patent-card:nth-child(n + 7) {
    display: none;
  }

  .patent-card img {
    border-width: 3px;
  }

  .patent-card > span:last-child {
    min-height: 34px;
    margin: -2px 2px 0;
    padding: 6px 2px;
    font-size: 9px;
  }

  .patent-showcase .carousel-controls {
    display: none;
  }

  .product-modal {
    align-items: flex-start;
    padding: 10px;
  }

  .product-modal-panel {
    grid-template-columns: 1fr;
    width: min(100%, 520px);
    max-height: calc(100vh - 20px);
    overflow-y: auto;
  }

  .product-modal-media {
    min-height: 0;
    padding: 18px;
  }

  .product-modal-media img {
    max-height: 220px;
  }

  .product-modal-copy {
    max-height: none;
    overflow: visible;
    padding: 20px;
  }

  .product-modal-heading h3 {
    font-size: 25px;
  }
}

@media (max-width: 420px) {
  .hero-video {
    height: 200px;
  }

  .hero-inner {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero h1 {
    font-size: clamp(30px, 9.5vw, 40px);
  }

  .hero-copy {
    font-size: 15px;
  }

  .industry-card {
    min-height: 172px;
  }

  .factory {
    padding-right: 14px;
    padding-left: 14px;
  }
}

/* Compact mobile certificate wall: three portrait certificates above,
   three landscape certificates below. */
@media (max-width: 820px) {
  .certificate-featured {
    padding: 14px 10px 12px;
  }

  .certificate-featured .certificate-block-head {
    gap: 4px;
    margin-bottom: 12px;
  }

  .certificate-featured .certificate-block-head h3 {
    margin-top: 3px;
    font-size: 19px;
  }

  .certificate-featured .certificate-block-head p {
    font-size: 11px;
    line-height: 1.55;
  }

  .featured-certificate-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 6px;
    align-items: start;
  }

  .featured-certificate-card {
    grid-template-rows: auto 30px;
    gap: 6px;
    min-width: 0;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 6px 15px rgba(22, 25, 31, 0.07);
  }

  .featured-certificate-card img,
  .featured-certificate-card.is-landscape img {
    width: 100%;
    min-height: 0;
    padding: 3px;
    border-radius: 2px;
    object-fit: contain;
  }

  .featured-certificate-card.is-portrait img {
    aspect-ratio: 3 / 4;
  }

  .featured-certificate-card.is-landscape img {
    aspect-ratio: 4 / 3;
  }

  .featured-certificate-card span {
    min-height: 0;
    display: -webkit-box;
    overflow: hidden;
    align-self: start;
    font-size: 10px;
    line-height: 1.35;
    word-break: break-all;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

@media (max-width: 420px) {
  .certificate-featured {
    padding-right: 8px;
    padding-left: 8px;
  }

  .featured-certificate-grid {
    gap: 7px 5px;
  }

  .featured-certificate-card {
    grid-template-rows: auto 28px;
    padding: 4px;
  }

  .featured-certificate-card span {
    font-size: 9px;
  }
}

.product-details {
  display: none;
}

body.modal-open {
  overflow: hidden;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  place-items: center;
  padding: 24px;
}

.product-modal.is-open {
  display: grid;
}

.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 20, 0.72);
  backdrop-filter: blur(8px);
}

.product-modal-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  grid-template-rows: minmax(0, 1fr);
  overflow-y: auto;
  overscroll-behavior: contain;
  width: min(1120px, calc(100vw - 36px));
  height: min(88dvh, 820px);
  max-height: calc(100dvh - 32px);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.product-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: transparent;
  background: rgba(20, 24, 31, 0.88);
  cursor: pointer;
}

.product-modal-close::before,
.product-modal-close::after {
  position: absolute;
  width: 16px;
  height: 2px;
  border-radius: 99px;
  background: var(--white);
  content: "";
}

.product-modal-close::before {
  transform: rotate(45deg);
}

.product-modal-close::after {
  transform: rotate(-45deg);
}

.product-modal-media {
  position: sticky;
  top: 0;
  display: grid;
  align-content: center;
  height: 100%;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(201, 22, 47, 0.08), rgba(24, 108, 178, 0.08)),
    #f6f7f9;
}

.product-modal-media img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 20px 48px rgba(22, 25, 31, 0.1);
}

.product-modal-copy {
  min-height: 0;
  overflow: visible;
  padding: 38px;
}

.product-modal-copy::-webkit-scrollbar {
  width: 10px;
}

.product-modal-copy::-webkit-scrollbar-thumb {
  border: 3px solid var(--white);
  border-radius: 99px;
  background: #aeb5bf;
}

.product-modal-heading {
  padding-right: 36px;
}

.product-modal-kicker {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-modal-heading h3 {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
}

.product-modal-heading span {
  display: inline-flex;
  margin-top: 14px;
  padding: 7px 10px;
  border-radius: 4px;
  color: var(--blue);
  background: rgba(24, 108, 178, 0.1);
  font-size: 13px;
  font-weight: 800;
}

.product-modal-heading > p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.product-modal-body {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.product-advantage-panel,
.product-spec-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.product-advantage-panel h4,
.product-spec-panel h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 18px;
}

.product-advantage-panel h4::before,
.product-spec-panel h4::before {
  width: 34px;
  height: 8px;
  background: #c8ccd2;
  content: "";
}

.product-advantage-list {
  display: grid;
  gap: 16px;
}

.product-advantage-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
}

.product-advantage-item b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), #9bb8df);
  font-size: 14px;
}

.product-advantage-item strong {
  display: block;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(24, 108, 178, 0.7);
  font-size: 16px;
}

.product-advantage-item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.product-spec-panel table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.product-spec-panel th,
.product-spec-panel td {
  padding: 13px 16px;
  border: 4px solid #fbfcfd;
}

.product-spec-panel th {
  width: 42%;
  color: var(--white);
  background: #315faa;
  font-weight: 800;
  text-align: center;
}

.product-spec-panel td {
  color: var(--ink);
  background: #d7d9dc;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 820px) {
  .product-modal {
    padding: 12px;
  }

  .product-modal-panel {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    width: min(430px, calc(100vw - 20px));
    height: auto;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .product-modal-media {
    position: relative;
    height: auto;
    padding: 18px;
  }

  .product-modal-media img {
    max-height: 220px;
  }

  .product-modal-copy {
    overflow: visible;
    padding: 20px;
  }

  .product-modal-heading {
    padding-right: 28px;
  }

  .product-modal-heading h3 {
    font-size: 22px;
  }

  .product-modal-heading > p:last-child {
    font-size: 14px;
    line-height: 1.75;
  }

  .product-advantage-panel,
  .product-spec-panel {
    padding: 16px;
  }

  .product-advantage-item {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
  }

  .product-spec-panel table {
    font-size: 12px;
  }

  .product-spec-panel th,
  .product-spec-panel td {
    padding: 10px 8px;
    border-width: 3px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--white);
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

main {
  display: flex;
  flex-direction: column;
}

main > .hero {
  order: 1;
}

main > .intro {
  order: 2;
}

main > .products {
  order: 3;
}

main > .product-details {
  order: 4;
}

main > .credentials {
  order: 5;
}

main > .solutions {
  order: 6;
}

main > .factory {
  order: 7;
}

main > .message {
  order: 8;
}

main > .contact {
  order: 9;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 5vw;
  color: var(--white);
  background: linear-gradient(180deg, rgba(6, 9, 14, 0.82), rgba(6, 9, 14, 0.18));
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.site-header.scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 30px rgba(18, 25, 34, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 238px;
  height: 54px;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.brand img {
  width: 210px;
  height: auto;
  max-height: 42px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 600;
}

.main-nav a {
  position: relative;
  padding: 28px 0;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  height: 2px;
  background: var(--red);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.language-btn,
.nav-toggle {
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.language-btn {
  min-width: 42px;
  height: 32px;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid currentColor;
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 700px;
  color: var(--white);
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.08)),
    url("assets/products/product-large-format.jpg") center/cover no-repeat;
  transform: scale(1.02);
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.22) 45%, rgba(0, 0, 0, 0.72)),
    linear-gradient(120deg, rgba(201, 22, 47, 0.55), transparent 42%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, 90vw);
  margin: 0 auto;
  padding: 178px 0 72px;
}

.eyebrow,
.section-head span {
  display: inline-block;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffffff;
  background: rgba(201, 22, 47, 0.88);
  border-radius: 6px;
  padding: 8px 12px;
}

.hero h1 {
  width: min(720px, 100%);
  margin: 24px 0 22px;
  font-size: 58px;
  line-height: 1.08;
  font-weight: 900;
}

.hero-copy {
  width: min(680px, 100%);
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 142px;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 24px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 12px 28px rgba(201, 22, 47, 0.28);
}

.btn.primary:hover {
  background: var(--red-dark);
}

.btn.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(780px, 100%);
  margin-top: 70px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.hero-stats div {
  padding: 22px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stats div:last-child {
  border-right: 0;
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  margin-bottom: 8px;
  font-size: 20px;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.section {
  padding: 86px 5vw;
}

.section-head {
  width: min(1180px, 100%);
  margin: 0 auto 36px;
}

.section-head h2 {
  width: min(720px, 100%);
  margin: 10px 0 0;
  font-size: 34px;
  line-height: 1.25;
}

.section-head p {
  width: min(760px, 100%);
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.intro {
  background: var(--white);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.intro-copy {
  padding: 36px;
  border-left: 4px solid var(--red);
  background: var(--soft);
}

.intro-video-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 8px;
  background: var(--soft);
}

.intro-video-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.intro-copy h3,
.intro-video-head h3 {
  margin: 0;
  color: var(--red);
  font-size: 26px;
}

.intro-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: #05070a;
  object-fit: contain;
}

.company-profile {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: 46px 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82)),
    linear-gradient(135deg, rgba(23, 105, 170, 0.08), transparent 46%),
    var(--white);
}

.company-profile::after {
  content: "";
  position: absolute;
  right: -68px;
  bottom: -72px;
  width: 270px;
  height: 270px;
  border: 42px solid rgba(23, 105, 170, 0.06);
  border-radius: 50%;
}

.profile-bg-text {
  position: absolute;
  top: 16px;
  left: 28px;
  color: rgba(22, 25, 31, 0.045);
  font-size: 86px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}

.company-profile h3 {
  position: relative;
  margin: 12px 0 18px;
  color: var(--red);
  font-size: 30px;
  line-height: 1.25;
}

.company-profile h3::after {
  content: "";
  display: block;
  width: 92px;
  height: 3px;
  margin-top: 16px;
  background: var(--red);
}

.company-profile p {
  position: relative;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 2;
}

.profile-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 34px;
}

.profile-stats div {
  padding: 0 24px;
  border-left: 1px solid rgba(201, 22, 47, 0.55);
}

.profile-stats div:first-child {
  padding-left: 0;
  border-left: 0;
}

.profile-stats strong,
.profile-stats span {
  display: block;
}

.profile-stats strong {
  color: var(--ink);
  font-size: 44px;
  line-height: 1;
}

.profile-stats span {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
}

.intro-copy p,
.factory-content p {
  color: var(--muted);
  line-height: 1.9;
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--red);
  font-weight: 800;
}

.text-link:hover {
  color: var(--red-dark);
}

.advantage-list {
  display: grid;
  gap: 16px;
}

.advantage-list div {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.advantage-list strong {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  color: var(--white);
  border-radius: 6px;
  background: var(--ink);
}

.advantage-list span {
  font-size: 19px;
  font-weight: 800;
}

.advantage-list p {
  margin: 12px 0 0;
  color: var(--muted);
}

.products {
  background: #f7f8fa;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(22, 25, 31, 0.06);
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease;
}

.product-card:hover {
  border-color: rgba(201, 22, 47, 0.35);
  box-shadow: 0 18px 36px rgba(22, 25, 31, 0.12);
  transform: translateY(-3px);
}

.product-visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid #cfd5dd;
  background-color: #e9edf1;
  background-image:
    linear-gradient(rgba(22, 25, 31, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 25, 31, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
}

.product-visual::after {
  position: absolute;
  right: 18px;
  bottom: 12px;
  z-index: 2;
  color: rgba(22, 25, 31, 0.48);
  content: "YIYAN LASER / INDUSTRIAL SYSTEM";
  font-size: 10px;
  font-weight: 800;
}

.product-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 30px 24px 22px;
  background: transparent;
  filter: contrast(1.04) saturate(1.03) drop-shadow(0 16px 16px rgba(22, 25, 31, 0.16));
  mix-blend-mode: multiply;
  transform: scale(1.03);
  transition: transform 0.28s ease;
}

.product-card:hover .product-visual img {
  transform: scale(1.075);
}

.product-no,
.product-view {
  position: absolute;
  top: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  font-size: 11px;
  font-weight: 900;
}

.product-no {
  left: 14px;
  justify-content: center;
  width: 34px;
  color: var(--white);
  background: var(--ink);
}

.product-view {
  right: 14px;
  padding: 0 10px;
  border: 1px solid rgba(22, 25, 31, 0.18);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
}

.product-view::after {
  margin-left: 7px;
  color: var(--red);
  content: "→";
  font-size: 14px;
}

.product-card > div:not(.product-visual):not(.product-icon) {
  padding: 22px;
  border-top: 3px solid transparent;
  transition: border-color 0.16s ease;
}

.product-card:hover > div:not(.product-visual):not(.product-icon) {
  border-top-color: var(--red);
}

.product-card h3 {
  margin: 8px 0 10px;
  font-size: 22px;
  line-height: 1.35;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.tag {
  color: var(--red) !important;
  font-size: 13px;
  font-weight: 800;
}

.product-details {
  background: var(--white);
}

.detail-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.product-detail {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0;
  align-items: start;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 34px rgba(22, 25, 31, 0.07);
  scroll-margin-top: 96px;
}

.product-detail:nth-child(even) {
  grid-template-columns: none;
}

.product-detail:nth-child(even) img {
  order: 0;
}

.product-detail img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  padding: 12px;
  border-radius: 0;
  background: #f8f9fb;
}

.detail-copy {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  padding: 22px;
}

.detail-copy h3 {
  margin: 8px 0 12px;
  font-size: 22px;
  line-height: 1.28;
}

.detail-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.detail-points {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.detail-points li {
  position: relative;
  padding-left: 18px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.detail-points li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  content: "";
}

.product-card.compact {
  min-height: 220px;
  padding: 28px;
}

.product-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--blue));
  font-weight: 900;
}

.solutions {
  background: #f7f8fa;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.industry-card {
  position: relative;
  overflow: hidden;
  min-height: 296px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  box-shadow: 0 18px 42px rgba(22, 25, 31, 0.1);
}

.industry-card img {
  width: 100%;
  height: 100%;
  min-height: 296px;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.industry-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 11, 16, 0.04), rgba(8, 11, 16, 0.78)),
    linear-gradient(135deg, rgba(201, 22, 47, 0.24), transparent 48%);
}

.industry-card div {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 24px;
  color: var(--white);
}

.industry-card span {
  display: inline-block;
  margin-bottom: 8px;
  color: #ffccd4;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.industry-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

.industry-card p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.industry-card:hover img {
  transform: scale(1.045);
}

.factory {
  display: block;
  padding: 76px clamp(24px, 5vw, 82px) 86px;
  background: var(--ink);
  color: var(--white);
}

.factory-content {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  column-gap: clamp(32px, 6vw, 92px);
  align-items: end;
  max-width: 1480px;
  margin: 0 auto 38px;
  padding: 0;
}

.eyebrow.dark {
  color: #ffccd4;
}

.factory-content h2 {
  grid-column: 1;
  margin: 12px 0 14px;
  max-width: 760px;
  font-size: clamp(32px, 3vw, 48px);
  line-height: 1.18;
}

.factory-content p {
  grid-column: 1;
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.8;
}

.factory-content > .eyebrow {
  grid-column: 1;
}

.factory-points {
  grid-column: 2;
  grid-row: 1 / 4;
  display: grid;
  gap: 12px;
}

.factory-points span {
  position: relative;
  padding: 13px 16px 13px 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
}

.factory-points span::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 15px;
  width: 10px;
  height: 3px;
  background: var(--red);
}

.factory-gallery {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  grid-auto-rows: minmax(220px, 17vw);
  gap: 12px;
  max-width: 1480px;
  margin: 0 auto;
}

.factory-shot {
  position: relative;
  grid-column: span 3;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #242a31;
}

.factory-shot-main {
  grid-column: span 8;
  grid-row: span 2;
}

.factory-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.factory-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(8, 12, 18, 0.9));
  pointer-events: none;
}

.factory-shot:hover img {
  transform: scale(1.025);
}

.factory-shot figcaption {
  position: absolute;
  z-index: 1;
  right: 20px;
  bottom: 18px;
  left: 20px;
}

.factory-shot figcaption span,
.factory-shot figcaption strong {
  display: block;
}

.factory-shot figcaption span {
  margin-bottom: 5px;
  color: #ffccd4;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.factory-shot figcaption strong {
  font-size: 18px;
  line-height: 1.3;
}

.message {
  background: var(--soft);
}

.credentials {
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, var(--white), #f7f8fa 72%);
}

.credential-head {
  order: 0;
}

.credential-summary {
  order: 1;
}

.credential-layout {
  order: 2;
}

.patent-showcase {
  order: 3;
}

.credential-head {
  text-align: center;
}

.credential-head span {
  display: block;
}

.credential-head h2 {
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  color: var(--ink);
}

.credential-head h2::before,
.credential-head h2::after {
  content: "";
  width: 42px;
  height: 3px;
  background: var(--red);
}

.credential-head h2::first-letter {
  color: var(--red);
}

.credential-head p {
  margin-right: auto;
  margin-left: auto;
}

.patent-showcase {
  position: relative;
  width: min(1180px, 100%);
  margin: 34px auto 34px;
  padding: 8px 52px 30px;
}

.patent-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(180px, 17vw, 230px);
  gap: 26px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 0 12px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.patent-carousel::-webkit-scrollbar {
  display: none;
}

.patent-card {
  scroll-snap-align: start;
  display: grid;
  align-content: start;
  min-width: 190px;
  text-align: center;
}

.patent-card img,
.patent-file-card {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  border: 8px solid #d5b879;
  background:
    linear-gradient(135deg, #f7edcb, #b8964f 45%, #fff4cf 50%, #ad8841),
    #fffaf0;
  box-shadow: 0 14px 24px rgba(22, 25, 31, 0.13);
}

.patent-card img {
  padding: 5px;
}

.patent-card > span:last-child {
  display: block;
  min-height: 58px;
  margin: -8px 14px 0;
  padding: 14px 10px 12px;
  color: var(--ink);
  background: #e9e9e9;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.patent-file-card {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 24px 16px;
  color: var(--ink);
}

.patent-file-card > span:last-child {
  width: calc(100% - 20px);
  margin-top: 18px;
}

.patent-file-mark {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--red);
  font-size: 22px;
  font-weight: 900;
}

.carousel-controls {
  pointer-events: none;
  position: absolute;
  inset: 44% 0 auto;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.carousel-controls button {
  pointer-events: auto;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--red);
  box-shadow: 0 12px 24px rgba(201, 22, 47, 0.24);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.carousel-controls button:hover {
  background: var(--red-dark);
}

.credential-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(1180px, 100%);
  margin: 0 auto 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.credential-summary div {
  padding: 24px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(201, 22, 47, 0.08), transparent),
    var(--soft);
}

.credential-summary div:last-child {
  border-right: 0;
}

.credential-summary strong,
.credential-summary span {
  display: block;
}

.credential-summary strong {
  margin-bottom: 6px;
  color: var(--red);
  font-size: 32px;
  line-height: 1;
}

.credential-summary span {
  color: var(--muted);
  font-weight: 700;
}

.credential-relationship-note {
  width: auto;
  margin: -14px 24px -12px;
  padding: 7px 2px 0;
  border-top: 1px solid rgba(201, 22, 47, 0.55);
  background: transparent;
  color: #747d8d;
  font-size: 11px;
  line-height: 1.6;
}

.credential-relationship-note strong {
  color: #4d5664;
}

.credential-layout {
  display: grid;
  gap: 26px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.credential-layout h3 {
  margin: 0 0 18px;
  font-size: 24px;
}

.certificate-featured,
.certificate-archive {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(22, 25, 31, 0.07);
}

.certificate-featured {
  padding: 24px;
}

.certificate-block-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.certificate-block-head span {
  display: block;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.certificate-block-head h3 {
  margin: 6px 0 0;
}

.certificate-block-head p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.featured-certificate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.featured-certificate-card {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(44px, auto);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(201, 22, 47, 0.06), transparent 44%),
    #fbfcfd;
  box-shadow: 0 12px 24px rgba(22, 25, 31, 0.06);
}

.featured-certificate-card:first-child {
  grid-row: auto;
}

.featured-certificate-card img {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  padding: 10px;
  border-radius: 4px;
  background: var(--white);
}

.featured-certificate-card.is-landscape img {
  aspect-ratio: 16 / 10;
  padding: 12px;
}

.featured-certificate-card span {
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.45;
}

.certificate-archive {
  overflow: hidden;
}

.certificate-archive summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  list-style: none;
  cursor: pointer;
}

.certificate-archive summary::-webkit-details-marker {
  display: none;
}

.certificate-archive summary span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.certificate-archive summary strong {
  color: var(--ink);
  font-size: 20px;
}

.certificate-archive summary::after {
  content: "+";
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  font-size: 24px;
  line-height: 1;
}

.certificate-archive[open] summary {
  border-bottom: 1px solid var(--line);
}

.certificate-archive[open] summary::after {
  content: "-";
}

.certificate-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 18px;
}

.certificate-grid.compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.certificate-card {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(22, 25, 31, 0.06);
}

.certificate-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f8f8f8;
}

.certificate-grid.compact .certificate-card img {
  aspect-ratio: 1 / 1;
}

.certificate-card span {
  min-height: 40px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.message-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.message-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.message-form label.full,
.message-form button,
.form-note {
  grid-column: 1 / -1;
}

.message-form input,
.message-form select,
.message-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  outline: 0;
}

.message-form input:focus,
.message-form select:focus,
.message-form textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(201, 22, 47, 0.12);
}

.message-form button {
  justify-self: start;
}

.form-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.faq {
  background: var(--soft);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.faq-grid details {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(24, 34, 48, 0.05);
}

.faq-grid details[open] {
  border-color: rgba(201, 22, 47, 0.32);
}

.faq-grid summary {
  position: relative;
  padding: 20px 52px 20px 22px;
  font-weight: 800;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}

.faq-grid summary::-webkit-details-marker {
  display: none;
}

.faq-grid summary::after {
  position: absolute;
  right: 22px;
  top: 50%;
  content: "+";
  color: var(--red);
  font-size: 24px;
  transform: translateY(-50%);
}

.faq-grid details[open] summary::after {
  content: "−";
}

.faq-grid p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
  line-height: 1.85;
}

.faq-grid p strong {
  color: var(--ink);
}

.faq-updated {
  width: min(1180px, 100%);
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 13px;
}

.faq-guide-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 24px max(0px, calc((100% - 1180px) / 2)) 0;
  border-bottom: 2px solid var(--red);
  color: var(--red);
  font-weight: 800;
}

.topic-hub {
  background: var(--white);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.topic-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: 8px;
  background: var(--soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.topic-card > span {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.topic-card h2,
.topic-card h3 {
  margin: 14px 0 12px;
  font-size: 23px;
  line-height: 1.4;
}

.topic-card p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.8;
}

.topic-card strong {
  margin-top: auto;
  color: var(--red);
}

.guide-page {
  min-height: 100vh;
  padding: 150px 5vw 86px;
  background: var(--soft);
}

.guide-article {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 54px 64px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.guide-breadcrumb {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 14px;
}

.guide-breadcrumb a,
.guide-article a {
  color: var(--red);
}

.guide-article h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.15;
}

.guide-summary {
  margin: 0 0 28px;
  padding: 22px 24px;
  border-left: 4px solid var(--red);
  background: var(--soft);
  font-size: 18px;
  line-height: 1.8;
}

.guide-meta {
  margin: 0 0 42px;
  color: var(--muted);
  font-size: 13px;
}

.guide-article h2 {
  margin: 48px 0 18px;
  font-size: 28px;
  line-height: 1.35;
}

.guide-article h3 {
  margin: 28px 0 12px;
  font-size: 21px;
}

.guide-article p,
.guide-article li {
  color: #414957;
  font-size: 16px;
  line-height: 1.9;
}

.guide-article ul,
.guide-article ol {
  padding-left: 24px;
}

.guide-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
}

.guide-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.guide-table th,
.guide-table td {
  padding: 15px 16px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
}

.guide-table th {
  color: var(--white);
  background: var(--blue);
}

.guide-callout {
  margin: 28px 0;
  padding: 20px 24px;
  border: 1px solid rgba(201, 22, 47, 0.25);
  border-radius: 8px;
  background: rgba(201, 22, 47, 0.04);
}

.proof-hero-image {
  display: block;
  width: 100%;
  margin: 28px 0;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.proof-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 26px 0 36px;
}

.proof-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.proof-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.proof-card figcaption {
  padding: 13px 15px 16px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.7;
}

.guide-faq details {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.guide-faq summary {
  padding: 16px 18px;
  font-weight: 800;
  cursor: pointer;
}

.guide-faq details p {
  margin: 0;
  padding: 0 18px 18px;
}

.guide-contact {
  margin-top: 48px;
  padding: 28px;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
}

.guide-contact h2 {
  margin-top: 0;
}

.guide-contact p {
  color: rgba(255, 255, 255, 0.82);
}

.contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.contact-grid div {
  min-height: 128px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.contact-grid strong,
.contact-grid span {
  display: block;
}

.contact-grid strong {
  margin-bottom: 14px;
  color: var(--red);
}

.contact-grid span {
  color: var(--ink);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.advisor-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  width: min(1180px, 100%);
  margin: 22px auto 0;
  padding: 30px 34px;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(120deg, var(--ink), #27364a);
}

.advisor-label {
  color: #ff6d81;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.advisor-card h3 {
  margin: 8px 0 10px;
  font-size: 24px;
}

.advisor-card p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.8;
}

.advisor-actions {
  display: grid;
  gap: 12px;
  min-width: 220px;
  text-align: center;
}

.advisor-profile-link {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.person-hero {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  margin-bottom: 42px;
}

.person-monogram {
  display: grid;
  width: 180px;
  height: 180px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--blue));
  font-size: 64px;
  font-weight: 900;
  box-shadow: 0 18px 38px rgba(23, 105, 170, 0.2);
}

.person-role {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 14px;
  font-weight: 800;
}

.person-hero h1 {
  margin-bottom: 14px;
}

.person-lead {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.person-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0;
}

.person-facts div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--soft);
}

.person-facts strong,
.person-facts span {
  display: block;
}

.person-facts strong {
  margin-bottom: 8px;
  color: var(--red);
}

.person-contact-box {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 34px;
  padding: 24px;
  border-radius: 8px;
  background: var(--ink);
}

.person-contact-box p {
  flex: 1 1 360px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.float-tools {
  position: fixed;
  z-index: 30;
  right: 18px;
  top: 50%;
  display: grid;
  gap: 4px;
  transform: translateY(-50%);
}

.float-tools a,
.float-tools button {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  color: var(--white);
  background: var(--blue);
  font-size: 14px;
  cursor: pointer;
}

.float-tools a:hover,
.float-tools button:hover {
  background: var(--red);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 5vw;
  color: rgba(255, 255, 255, 0.8);
  background: #0f1217;
}

.site-footer strong {
  color: var(--white);
}

.site-footer p {
  margin: 6px 0 0;
}

.toast {
  position: fixed;
  z-index: 40;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 48px));
  padding: 14px 18px;
  border-radius: 8px;
  color: var(--white);
  background: var(--green);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1480px) and (min-width: 821px) {
  .site-header {
    padding-right: 3vw;
    padding-left: 3vw;
  }

  .brand {
    min-width: 190px;
    height: 50px;
    padding: 7px 12px;
  }

  .brand img {
    width: 166px;
    max-height: 38px;
  }

  .main-nav {
    gap: 14px;
    font-size: 13px;
  }
}

@media (max-width: 1040px) {
  .main-nav {
    gap: 16px;
    font-size: 14px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .product-grid,
  .detail-stack,
  .faq-grid,
  .contact-grid,
  .certificate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-certificate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-certificate-card:first-child {
    grid-row: auto;
  }

  .featured-certificate-card:first-child img {
    min-height: 220px;
  }

  .certificate-grid.compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .solution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .credential-layout {
    grid-template-columns: 1fr;
  }

  .factory-content {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  .factory-points {
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .factory-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 230px;
  }

  .factory-shot,
  .factory-shot-main {
    grid-column: span 1;
    grid-row: span 1;
  }

  .factory-shot-main {
    grid-column: span 2;
    min-height: 360px;
  }
}

@media (max-width: 820px) {
  .advisor-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .advisor-actions {
    width: min(320px, 100%);
  }

  .site-header {
    min-height: 68px;
    padding: 0 18px;
    background: rgba(15, 18, 23, 0.92);
  }

  .site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    display: none;
    padding: 8px 18px 20px;
    color: var(--ink);
    background: var(--white);
    box-shadow: 0 18px 30px rgba(18, 25, 34, 0.12);
  }

  .main-nav.open {
    display: grid;
    gap: 0;
  }

  .main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .main-nav a::after {
    display: none;
  }

  .language-btn {
    margin-top: 14px;
    color: var(--red);
  }

  .hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    padding-top: 68px;
    background: #0f1217;
  }

  .hero-media {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #05070a;
    transform: none;
    overflow: hidden;
  }

  .hero-video {
    object-fit: contain;
    background: #05070a;
  }

  .hero-overlay {
    display: none;
  }

  .hero-inner {
    width: 100%;
    padding: 28px 18px 76px;
    background:
      linear-gradient(135deg, rgba(201, 22, 47, 0.3), transparent 42%),
      linear-gradient(180deg, #151a21, #0f1217);
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-stats {
    margin-top: 30px;
  }

  .hero-stats,
  .intro-grid,
  .factory,
  .message-form,
  .detail-stack,
  .credential-summary {
    grid-template-columns: 1fr;
  }

  .product-detail:nth-child(even) {
    grid-template-columns: none;
  }

  .product-detail:nth-child(even) img {
    order: 0;
  }

  .credential-summary div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .credential-summary div:last-child {
    border-bottom: 0;
  }

  .hero-stats div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .hero-stats div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 64px 18px;
  }

  .section-head h2,
  .factory-content h2 {
    font-size: 28px;
  }

  .company-profile {
    padding: 34px 28px;
  }

  .profile-bg-text {
    font-size: 58px;
  }

  .profile-stats strong {
    font-size: 34px;
  }

  .industry-card,
  .industry-card img {
    min-height: 240px;
  }

  .factory {
    padding: 58px 18px 64px;
  }

  .factory-content {
    margin-bottom: 28px;
    padding: 0;
  }

  .factory-points {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .factory-gallery {
    grid-auto-rows: 210px;
    gap: 8px;
  }

  .factory-shot-main {
    min-height: 300px;
  }

  .message-form {
    padding: 22px;
  }

  .float-tools {
    top: auto;
    right: 10px;
    bottom: 10px;
    left: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    transform: none;
  }

  .float-tools a,
  .float-tools button {
    width: auto;
    height: 46px;
    font-size: 12px;
  }

  .site-footer {
    display: block;
  }
}

@media (max-width: 560px) {
  .topic-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-card {
    min-height: 0;
  }

  .person-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .person-monogram {
    width: 120px;
    height: 120px;
    font-size: 44px;
  }

  .person-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .advisor-card {
    padding: 24px 20px;
  }

  .guide-page {
    padding: 110px 16px 66px;
  }

  .guide-article {
    padding: 30px 20px;
  }

  .guide-summary {
    padding: 18px;
    font-size: 16px;
  }

  .guide-article h2 {
    font-size: 24px;
  }

  .factory-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 180px;
  }

  .factory-shot {
    grid-column: span 1;
  }

  .factory-shot-main {
    grid-column: span 2;
    min-height: 280px;
  }

  .factory-shot figcaption {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .factory-shot figcaption span {
    margin-bottom: 3px;
    font-size: 9px;
  }

  .factory-shot figcaption strong {
    font-size: 14px;
  }

  .factory-shot-main figcaption strong {
    font-size: 18px;
  }

  .brand {
    min-width: 188px;
    height: 48px;
    padding: 8px 10px;
  }

  .brand img {
    width: 168px;
    max-height: 34px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .solution-grid,
  .faq-grid,
  .contact-grid,
  .certificate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .intro-copy,
  .intro-video-card,
  .contact-grid div {
    padding: 22px;
  }

  .intro-video-head {
    display: grid;
    gap: 8px;
  }

  .intro-video-head h3 {
    font-size: 22px;
  }

  .product-visual {
    aspect-ratio: 1 / 0.92;
  }

  .product-visual img {
    padding: 28px 10px 18px;
  }

  .product-visual::after {
    right: 8px;
    bottom: 7px;
    font-size: 7px;
  }

  .product-no,
  .product-view {
    top: 8px;
    min-height: 23px;
    font-size: 9px;
  }

  .product-no {
    left: 8px;
    width: 27px;
  }

  .product-view {
    right: 8px;
    padding: 0 7px;
  }

  .product-card > div:not(.product-visual):not(.product-icon) {
    padding: 12px;
  }

  .product-card h3 {
    margin: 6px 0 0;
    font-size: 15px;
    line-height: 1.35;
  }

  .product-card p:not(.tag) {
    display: none;
  }

  .product-card .tag {
    font-size: 12px;
  }

  .product-detail {
    scroll-margin-top: 76px;
  }

  .detail-copy {
    min-height: 0;
    padding: 16px;
  }

  .detail-copy h3 {
    font-size: 18px;
  }

  .detail-copy > p {
    display: none;
  }

  .detail-points {
    margin-top: 12px;
  }

  .detail-points li {
    font-size: 13px;
  }

  .credentials {
    padding-bottom: 86px;
  }

  .credential-head h2 {
    gap: 12px;
  }

  .credential-head h2::before,
  .credential-head h2::after {
    width: 24px;
  }

  .patent-showcase {
    margin-bottom: 24px;
    padding: 0 36px 22px;
  }

  .patent-carousel {
    grid-auto-columns: minmax(154px, 42vw);
    gap: 16px;
  }

  .patent-card > span:last-child {
    min-height: 52px;
    margin-right: 8px;
    margin-left: 8px;
    font-size: 13px;
  }

  .carousel-controls button {
    width: 34px;
    height: 34px;
    font-size: 24px;
  }

  .credential-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    border: 0;
    margin-bottom: 24px;
  }

  .credential-summary div {
    min-height: 84px;
    padding: 14px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .credential-summary strong {
    font-size: 24px;
  }

  .credential-summary span {
    font-size: 12px;
    line-height: 1.35;
  }

  .credential-layout {
    gap: 22px;
  }

  .credential-layout h3 {
    margin-bottom: 12px;
    font-size: 20px;
  }

  .certificate-featured {
    padding: 16px;
  }

  .certificate-block-head {
    display: grid;
    gap: 8px;
  }

  .featured-certificate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .featured-certificate-card {
    min-height: 0;
    padding: 8px;
  }

  .featured-certificate-card img {
    min-height: 0;
    aspect-ratio: 3 / 4;
    padding: 6px;
  }

  .featured-certificate-card.is-landscape img {
    aspect-ratio: 16 / 10;
  }

  .featured-certificate-card span {
    min-height: 34px;
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .certificate-archive summary {
    align-items: flex-start;
    padding: 16px;
  }

  .certificate-archive summary strong {
    font-size: 17px;
  }

  .certificate-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px;
  }

  .certificate-card {
    gap: 6px;
    padding: 7px;
    box-shadow: 0 8px 18px rgba(22, 25, 31, 0.06);
  }

  .certificate-card img {
    aspect-ratio: 1 / 1.12;
    padding: 4px;
    object-fit: contain;
  }

  .certificate-card span {
    min-height: 34px;
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .company-profile h3 {
    font-size: 24px;
  }

  .company-profile p {
    font-size: 14px;
    line-height: 1.85;
  }

  .profile-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 24px;
  }

  .profile-stats div {
    padding: 0 10px;
  }

  .profile-stats strong {
    font-size: 28px;
  }

  .profile-stats span {
    font-size: 12px;
    line-height: 1.35;
  }

  .industry-card,
  .industry-card img {
    min-height: 210px;
  }

  .industry-card div {
    padding: 16px;
  }

  .industry-card h3 {
    font-size: 18px;
  }

  .industry-card p {
    display: none;
  }

}

/* Final mobile layout overrides. Keep this block last so legacy rules cannot undo it. */
@media (max-width: 820px) {
  .site-header {
    min-height: 60px;
    padding: 0 14px;
    background: rgba(10, 13, 18, 0.9);
  }

  .brand {
    min-width: 164px;
    width: 164px;
    height: 44px;
    padding: 6px 9px;
  }

  .brand img {
    width: 146px;
    max-height: 32px;
  }

  .main-nav {
    top: 60px;
  }

  .hero {
    display: block;
    min-height: 620px;
    height: min(720px, 100svh);
    padding-top: 0;
  }

  .hero-media,
  .hero-overlay {
    position: absolute;
    inset: 0;
    width: auto;
    aspect-ratio: auto;
    transform: none;
  }

  .hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .hero-overlay {
    display: block;
    background:
      linear-gradient(180deg, rgba(7, 10, 15, 0.32), rgba(7, 10, 15, 0.24) 34%, rgba(7, 10, 15, 0.86)),
      linear-gradient(110deg, rgba(201, 22, 47, 0.34), transparent 48%);
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 104px 20px 72px;
    background: transparent;
  }

  .hero .eyebrow {
    align-self: flex-start;
    padding: 6px 9px;
    border-radius: 4px;
    font-size: 10px;
  }

  .hero h1 {
    width: min(11em, 100%);
    margin: 18px 0 14px;
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.2;
  }

  html[lang="en"] .hero h1 {
    width: min(13em, 100%);
    font-size: clamp(25px, 7.2vw, 31px);
  }

  .hero-copy {
    width: 100%;
    max-width: 560px;
    font-size: 13px;
    line-height: 1.75;
  }

  .hero-actions {
    display: block;
    margin-top: 22px;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 44px;
  }

  .hero-actions .btn.ghost {
    display: none;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    margin-top: auto;
  }

  .hero-stats div {
    min-width: 0;
    padding: 13px 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 0;
  }

  .hero-stats strong {
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.25;
  }

  .hero-stats span {
    font-size: 10px;
    line-height: 1.35;
  }

  .factory {
    padding: 46px 14px 76px;
  }

  .factory-content {
    margin-bottom: 22px;
  }

  .factory-content h2 {
    margin: 8px 0 10px;
    font-size: 25px;
  }

  .factory-content p {
    font-size: 13px;
    line-height: 1.7;
  }

  .factory-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 16px;
  }

  .factory-points span {
    display: grid;
    min-height: 54px;
    place-items: center;
    padding: 8px 5px;
    border: 0;
    background: #20252c;
    font-size: 11px;
    text-align: center;
  }

  .factory-points span::before {
    display: none;
  }

  .factory-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 8px;
  }

  .factory-shot,
  .factory-shot-main {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 0;
    aspect-ratio: 4 / 3;
    border-radius: 4px;
  }

  .factory-shot-main {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
  }

  .factory-shot figcaption {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .factory-shot figcaption span {
    margin-bottom: 2px;
    font-size: 8px;
  }

  .factory-shot figcaption strong {
    font-size: 12px;
  }

  .factory-shot-main figcaption strong {
    font-size: 16px;
  }

  .credentials {
    padding-bottom: 44px;
  }

  .patent-showcase {
    width: 100%;
    margin: 18px auto 4px;
    padding: 0 16px 10px;
  }

  .patent-block-head {
    margin-bottom: 10px;
  }

  .patent-block-head p {
    font-size: 12px;
    line-height: 1.55;
  }

  .patent-carousel {
    grid-auto-columns: calc((100% - 16px) / 3);
    gap: 8px;
    padding: 5px 0 8px;
  }

  .patent-card {
    min-width: 0;
  }

  .patent-card img,
  .patent-file-card {
    border-width: 3px;
    box-shadow: 0 7px 14px rgba(22, 25, 31, 0.11);
  }

  .patent-card img {
    padding: 2px;
  }

  .patent-card > span:last-child {
    min-height: 36px;
    margin: -3px 2px 0;
    padding: 7px 3px 6px;
    font-size: 10px;
    line-height: 1.3;
  }

  .patent-showcase .carousel-controls {
    inset: 57% 4px auto;
  }

  .patent-showcase .carousel-controls button {
    width: 28px;
    height: 28px;
    font-size: 20px;
  }
}

@media (max-width: 420px) {
  .hero {
    min-height: 590px;
    height: min(660px, 100svh);
  }

  .hero-inner {
    padding: 100px 16px 66px;
  }

  .patent-showcase {
    padding-right: 12px;
    padding-left: 12px;
  }
}

/* Final mobile certificate layout: three portrait cards above three landscape cards. */
@media (max-width: 820px) {
  .certificate-featured {
    padding: 14px 10px 12px;
  }

  .certificate-featured .certificate-block-head {
    gap: 4px;
    margin-bottom: 12px;
  }

  .certificate-featured .certificate-block-head h3 {
    margin-top: 3px;
    font-size: 19px;
  }

  .certificate-featured .certificate-block-head p {
    font-size: 11px;
    line-height: 1.55;
  }

  .featured-certificate-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 6px;
    align-items: start;
  }

  .featured-certificate-card {
    grid-template-rows: auto 30px;
    gap: 6px;
    min-width: 0;
    min-height: 0;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 6px 15px rgba(22, 25, 31, 0.07);
  }

  .featured-certificate-card img,
  .featured-certificate-card.is-landscape img {
    width: 100%;
    min-height: 0;
    padding: 3px;
    border-radius: 2px;
    object-fit: contain;
  }

  .featured-certificate-card:first-child img {
    min-height: 0;
  }

  .featured-certificate-card.is-portrait img {
    aspect-ratio: 3 / 4;
  }

  .featured-certificate-card.is-landscape img {
    aspect-ratio: 4 / 3;
  }

  .featured-certificate-card span {
    min-height: 0;
    display: -webkit-box;
    overflow: hidden;
    align-self: start;
    font-size: 10px;
    line-height: 1.35;
    word-break: break-all;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

@media (max-width: 420px) {
  .certificate-featured {
    padding-right: 8px;
    padding-left: 8px;
  }

  .featured-certificate-grid {
    gap: 7px 5px;
  }

  .featured-certificate-card {
    grid-template-rows: auto 28px;
    padding: 4px;
  }

  .featured-certificate-card span {
    font-size: 9px;
  }
}

/* LAST OVERRIDE 2026-07-17: stable mobile/live fixes. */
@media (max-width: 820px) {
  body { overflow-x: hidden; }
  .site-header { position: sticky; top: 0; z-index: 30; height: 78px; padding: 12px 18px; background: #101318; }
  .brand { width: 172px; height: 48px; }
  .brand img { width: 100%; height: 100%; object-fit: contain; }
  .nav-toggle { width: 46px; height: 46px; }
  .hero { position: relative; display: grid; align-items: end; min-height: 610px; height: auto; padding: 0; overflow: hidden; background: #101318; }
  .hero-media, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; }
  .hero-media { z-index: 0; }
  .hero-video { object-fit: cover; object-position: 50% 38%; filter: none; }
  .hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(13,17,23,.04) 0%, rgba(13,17,23,.24) 32%, rgba(13,17,23,.82) 72%, rgba(13,17,23,.96) 100%), linear-gradient(120deg, rgba(199,16,45,.22), transparent 54%); }
  .hero-inner { position: relative; z-index: 2; width: 100%; max-width: none; padding: 118px 18px 30px; }
  .hero .eyebrow { width: fit-content; max-width: 100%; margin-bottom: 18px; padding: 8px 12px; border-radius: 5px; background: var(--red); color: var(--white); font-size: 12px; line-height: 1.2; white-space: normal; }
  .hero h1 { max-width: 8.5em; margin: 0; color: var(--white); font-size: clamp(35px, 9.2vw, 48px); line-height: 1.13; letter-spacing: 0; }
  .hero h1::after { content: ""; display: block; width: 68px; height: 3px; margin: 14px 0 0; background: var(--red); }
  .hero-copy { max-width: 100%; margin: 18px 0 24px; color: rgba(255,255,255,.9); font-size: 15px; line-height: 1.8; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 16px; }
  .hero-actions .btn { min-height: 48px; border-radius: 6px; font-size: 15px; }
  .hero-actions .btn.ghost { display: none; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; border: 1px solid rgba(255,255,255,.24); background: rgba(18,22,29,.72); backdrop-filter: blur(8px); }
  .hero-stats div { min-width: 0; padding: 12px 6px; border-right: 1px solid rgba(255,255,255,.18); border-bottom: 0; }
  .hero-stats div:last-child { border-right: 0; }
  .hero-stats strong { display: block; font-size: 13px; line-height: 1.25; }
  .hero-stats span { display: block; margin-top: 4px; font-size: 10px; line-height: 1.35; }
  .solution-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 14px; }
  .industry-card { min-height: 178px; border-radius: 7px; }
  .industry-card img { display: block; min-height: 178px; opacity: 1; }
  .industry-card div { padding: 15px 12px; }
  .industry-card h3 { font-size: 18px; }
  .industry-card p { margin-top: 6px; font-size: 11px; line-height: 1.45; }
  .factory { padding: 42px 18px 70px; }
  .factory-content { display: block; margin-bottom: 20px; }
  .factory-content h2 { font-size: 24px; }
  .factory-content p { font-size: 13px; }
  .factory-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .factory-shot, .factory-shot-main { grid-column: auto; min-height: 0; aspect-ratio: 1 / 1.05; border-radius: 6px; }
  .factory-shot-main { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .factory-shot figcaption { right: 10px; bottom: 10px; left: 10px; }
  .factory-shot figcaption span { font-size: 9px; }
  .factory-shot figcaption strong { font-size: 15px; }
  .credentials { padding-right: 14px; padding-left: 14px; }
  .credential-relationship-note { margin: 10px 0 12px; padding: 8px 0 0; border-top: 1px solid rgba(201,22,47,.25); font-size: 11px; line-height: 1.65; }
  .featured-certificate-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .featured-certificate-card { padding: 5px; border-radius: 6px; }
  .featured-certificate-card img, .featured-certificate-card.is-portrait img, .featured-certificate-card.is-landscape img { width: 100%; height: auto; aspect-ratio: 3 / 3.7; object-fit: contain; }
  .featured-certificate-card span { min-height: 28px; font-size: 9px; line-height: 1.3; }
  .patent-showcase { padding: 0; }
  .patent-block-head { display: block; margin: 0 0 14px; }
  .patent-block-head h3 { margin: 6px 0 8px; }
  .patent-carousel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; overflow: visible; padding: 0; }
  .patent-card:nth-child(n+7) { display: none; }
  .patent-card { min-width: 0; }
  .patent-card img { width: 100%; height: auto; aspect-ratio: 3 / 4; padding: 3px; border-width: 4px; object-fit: contain; }
  .patent-card > span:last-child { min-height: 32px; margin: -2px 2px 0; padding: 7px 2px; font-size: 9px; line-height: 1.25; }
  .patent-showcase .carousel-controls { display: none; }
  .product-modal { align-items: stretch; overflow-y: auto; padding: 12px; }
  .product-modal-panel { grid-template-columns: 1fr; width: min(100%, 520px); max-height: none; margin: auto; overflow: visible; }
  .product-modal-media { min-height: 0; padding: 18px; }
  .product-modal-copy { max-height: none; overflow: visible; }
}
@media (max-width: 420px) {
  .site-header { height: 72px; padding: 10px 16px; }
  .brand { width: 158px; height: 44px; }
  .hero { min-height: 560px; }
  .hero-inner { padding: 98px 18px 26px; }
  .hero h1 { max-width: 8em; font-size: 34px; }
  .hero-copy { font-size: 14px; }
}

/* LAST OVERRIDE 2026-07-17-C: final live stabilization layer. */
.product-details {
  display: none;
}

.product-card {
  cursor: pointer;
}

.product-visual {
  background:
    radial-gradient(circle at 50% 42%, rgba(50, 97, 169, 0.13), transparent 38%),
    linear-gradient(145deg, #ffffff 0%, #f5f8fc 100%);
}

.product-visual img {
  filter: drop-shadow(0 20px 24px rgba(15, 23, 42, 0.12));
}

.intro-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #101318;
}

.industry-card img {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 1;
  object-fit: cover;
}

.patent-file-card {
  display: none;
}

.product-modal {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.product-modal-panel {
  max-height: min(860px, calc(100vh - 56px));
  overflow: hidden;
}

.product-modal-copy {
  overflow-y: auto;
}

@media (max-width: 820px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    height: 72px;
    background: #101318;
  }

  .hero {
    min-height: 560px;
    background: #101318;
  }

  .hero-media,
  .hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .hero-video {
    object-fit: cover;
    object-position: 50% 42%;
  }

  .hero-inner {
    padding: 92px 18px 24px;
  }

  .hero h1 {
    max-width: 8.4em;
    font-size: clamp(32px, 8.8vw, 42px);
    line-height: 1.18;
  }

  .hero-copy {
    margin: 16px 0 22px;
    font-size: 14px;
    line-height: 1.75;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-stats div {
    min-height: 66px;
    padding: 10px 5px;
  }

  .hero-stats strong {
    font-size: 12px;
  }

  .hero-stats span {
    font-size: 9px;
  }

  .solution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 12px;
  }

  .industry-card,
  .industry-card img {
    min-height: 150px;
    aspect-ratio: 1 / 1.08;
  }

  .industry-card div {
    padding: 12px 10px;
  }

  .industry-card h3 {
    font-size: 16px;
  }

  .industry-card p {
    display: none;
  }

  .factory {
    padding: 36px 16px 64px;
    background: #12161d;
  }

  .factory-content {
    margin-bottom: 18px;
  }

  .factory-content h2 {
    color: #fff;
    font-size: 23px;
    line-height: 1.35;
  }

  .factory-content p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    line-height: 1.75;
  }

  .factory-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .factory-points span {
    min-height: 40px;
    padding: 8px 4px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.86);
    font-size: 10px;
    text-align: center;
  }

  .factory-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .factory-shot,
  .factory-shot-main {
    min-height: 0;
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    overflow: hidden;
  }

  .factory-shot-main {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }

  .factory-shot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .factory-shot::after {
    background: linear-gradient(180deg, transparent 36%, rgba(6, 9, 14, 0.86) 100%);
  }

  .factory-shot figcaption {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .factory-shot figcaption span {
    margin-bottom: 3px;
    color: #ffc8d0;
    font-size: 8px;
    letter-spacing: 0;
  }

  .factory-shot figcaption strong {
    font-size: 14px;
    line-height: 1.25;
  }

  .certificate-featured {
    padding: 12px 8px;
  }

  .featured-certificate-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .featured-certificate-card {
    display: grid;
    grid-template-rows: 82px 30px;
    gap: 5px;
    min-height: 0;
    padding: 4px;
    border-radius: 6px;
  }

  .featured-certificate-card img,
  .featured-certificate-card.is-portrait img,
  .featured-certificate-card.is-landscape img {
    width: 100%;
    height: 82px;
    aspect-ratio: auto;
    padding: 2px;
    object-fit: contain;
  }

  .featured-certificate-card span {
    min-height: 0;
    overflow: hidden;
    font-size: 9px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
  }

  .credential-relationship-note {
    margin: 8px 0 12px;
    padding: 8px 0 0;
    font-size: 10px;
    line-height: 1.55;
  }

  .patent-showcase {
    padding: 0 4px;
  }

  .patent-carousel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .patent-card:nth-child(n+7) {
    display: none;
  }

  .patent-card img {
    width: 100%;
    height: 116px;
    aspect-ratio: auto;
    padding: 2px;
    border-width: 3px;
    object-fit: contain;
  }

  .patent-card > span:last-child {
    min-height: 30px;
    padding: 6px 2px;
    font-size: 9px;
    line-height: 1.25;
  }

  .patent-showcase .carousel-controls {
    display: none;
  }

  .product-modal {
    align-items: flex-start;
    padding: 10px;
  }

  .product-modal-panel {
    grid-template-columns: 1fr;
    width: 100%;
    max-height: calc(100svh - 20px);
    overflow-y: auto;
    border-radius: 8px;
  }

  .product-modal-media {
    padding: 14px;
  }

  .product-modal-media img {
    max-height: 260px;
    object-fit: contain;
  }

  .product-modal-copy {
    overflow: visible;
  }
}

@media (max-width: 420px) {
  .hero {
    min-height: 540px;
  }

  .hero-inner {
    padding-top: 88px;
  }

  .hero .eyebrow {
    font-size: 11px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-actions .btn {
    min-height: 46px;
  }
}

/* 2026-07-17 final-live-polish: mobile hero as integrated cover, clean grids and safe media fallbacks. */
.image-missing {
  display: none !important;
}

.industry-card.image-failed::before,
.solution-card.image-failed::before {
  opacity: 0;
}

.product-card {
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  border-color: #d8e0ea;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.product-card figure {
  position: relative;
  min-height: 240px;
  background: radial-gradient(circle at 50% 42%, #ffffff 0%, #ffffff 38%, #edf2f7 100%);
}

.product-card figure::after {
  content: "";
  position: absolute;
  left: 23%;
  right: 23%;
  bottom: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.13);
  filter: blur(12px);
}

.product-card img {
  position: relative;
  z-index: 1;
  max-width: 84%;
  max-height: 80%;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(15, 23, 42, 0.18));
}

.product-modal {
  overflow: auto;
  align-items: center;
  padding: 24px;
}

.product-modal-panel {
  max-height: min(860px, calc(100svh - 48px));
  overflow: hidden;
}

.product-modal-copy {
  overflow: auto;
}

.product-spec-panel table {
  width: 100%;
  table-layout: fixed;
}

.product-spec-panel th,
.product-spec-panel td {
  word-break: break-word;
}

.credential-relationship-note {
  max-width: 1180px;
  margin: 14px auto 18px;
  padding: 10px 14px;
  border-top: 1px solid rgba(201, 22, 47, 0.22);
  color: #4b5563;
  font-size: 12px;
  line-height: 1.75;
}

.credential-relationship-note strong {
  color: #111827;
}

@media (max-width: 820px) {
  body {
    padding-bottom: 72px;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 64px;
    padding: 0 18px;
    background: #101318;
  }

  .brand {
    width: 188px;
    height: 48px;
    padding: 7px 11px;
    border-radius: 7px;
  }

  .brand img {
    width: 166px;
    max-height: 34px;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
  }

  .hero {
    position: relative;
    display: grid;
    align-items: end;
    min-height: 590px;
    height: auto;
    overflow: hidden;
    background: #101318;
  }

  .hero-media,
  .hero-overlay {
    position: absolute;
    inset: 0;
  }

  .hero-media {
    z-index: 0;
    background: url("assets/videos/yiyan-promo-poster.jpg") center 35% / cover no-repeat;
  }

  .hero-video {
    display: none !important;
  }

  .hero-overlay {
    z-index: 1;
    background:
      linear-gradient(180deg, rgba(10, 14, 20, 0.08) 0%, rgba(10, 14, 20, 0.28) 36%, rgba(10, 14, 20, 0.86) 75%, rgba(10, 14, 20, 0.97) 100%),
      linear-gradient(120deg, rgba(201, 22, 47, 0.22), transparent 56%);
  }

  .hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 118px 18px 28px;
    background: transparent;
  }

  .hero .eyebrow {
    width: fit-content;
    max-width: 100%;
    margin-bottom: 18px;
    padding: 8px 12px;
    border-radius: 5px;
    background: var(--red);
    color: var(--white);
    font-size: 12px;
    line-height: 1.2;
    white-space: normal;
  }

  .hero h1 {
    max-width: 8.6em;
    margin: 0;
    color: var(--white);
    font-size: clamp(34px, 9vw, 45px);
    line-height: 1.18;
    letter-spacing: 0;
  }

  html[lang="en"] .hero h1 {
    max-width: 10.8em;
    font-size: clamp(28px, 7vw, 34px);
  }

  .hero h1::after {
    content: "";
    display: block;
    width: 68px;
    height: 3px;
    margin: 14px 0 0;
    background: var(--red);
  }

  .hero-copy {
    max-width: 100%;
    margin: 18px 0 22px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.75;
  }

  html[lang="en"] .hero-copy {
    font-size: 12px;
    line-height: 1.6;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 16px;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 48px;
    border-radius: 6px;
    font-size: 15px;
  }

  .hero-actions .btn.ghost {
    display: none;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(18, 22, 29, 0.72);
    backdrop-filter: blur(8px);
  }

  .hero-stats div {
    min-width: 0;
    padding: 12px 5px;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom: 0;
    text-align: center;
  }

  .hero-stats div:last-child {
    border-right: 0;
  }

  .hero-stats strong {
    display: block;
    font-size: 12px;
    line-height: 1.25;
    white-space: nowrap;
  }

  .hero-stats span {
    display: block;
    margin-top: 4px;
    font-size: 9px;
    line-height: 1.35;
  }

  .solution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .industry-card {
    min-height: 150px;
    aspect-ratio: 1 / 1.08;
    overflow: hidden;
  }

  .industry-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.76;
  }

  .industry-card p {
    display: none;
  }

  .factory {
    padding: 36px 16px 58px;
  }

  .factory-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .factory-shot-main {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }

  .factory-shot:not(.factory-shot-main) {
    aspect-ratio: 1 / 1;
  }

  .featured-certificate-grid,
  .certificate-archive .certificate-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .featured-certificate-card,
  .certificate-card {
    padding: 4px;
    border-radius: 6px;
  }

  .featured-certificate-card img,
  .featured-certificate-card.is-portrait img,
  .featured-certificate-card.is-landscape img,
  .certificate-card img {
    width: 100%;
    height: 76px;
    padding: 2px;
    object-fit: contain;
  }

  .featured-certificate-card span,
  .certificate-card span {
    min-height: 28px;
    overflow: hidden;
    font-size: 9px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .credential-relationship-note {
    margin: 10px 4px 14px;
    padding: 8px 0 0;
    font-size: 10px;
    line-height: 1.55;
  }

  .patent-carousel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    overflow: visible;
    padding: 0;
  }

  .patent-card:nth-child(n+10) {
    display: none;
  }

  .patent-card img {
    width: 100%;
    height: 104px;
    padding: 2px;
    border-width: 3px;
    object-fit: contain;
  }

  .patent-card > span:last-child {
    min-height: 30px;
    padding: 6px 2px;
    font-size: 9px;
    line-height: 1.22;
  }

  .patent-showcase .carousel-controls {
    display: none;
  }

  .product-modal {
    align-items: flex-start;
    padding: 10px;
  }

  .product-modal-panel {
    grid-template-columns: 1fr;
    width: 100%;
    max-height: calc(100svh - 20px);
    overflow-y: auto;
    border-radius: 8px;
  }

  .product-modal-media {
    min-height: 0;
    padding: 14px;
  }

  .product-modal-media img {
    max-height: 240px;
    object-fit: contain;
  }

  .product-modal-copy {
    overflow: visible;
  }
}

@media (max-width: 420px) {
  .hero {
    min-height: 560px;
  }

  .hero-inner {
    padding: 104px 18px 26px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-copy {
    font-size: 13px;
  }
}

/* 2026-07-17 final polish: business video hero, mobile layout, clean cards */
.hero {
  position: relative !important;
  display: grid !important;
  align-items: center !important;
  min-height: 680px !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #0b1018 !important;
}

.hero-media {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  background: #0b1018 url("assets/factory/workshop-main.jpg") center / cover no-repeat !important;
}

.hero-video {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  object-position: center 44% !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  transform: none !important;
}

.hero-overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background:
    linear-gradient(90deg, rgba(8, 12, 18, 0.84) 0%, rgba(8, 12, 18, 0.58) 44%, rgba(8, 12, 18, 0.18) 100%),
    linear-gradient(180deg, rgba(8, 12, 18, 0.12) 0%, rgba(8, 12, 18, 0.84) 100%),
    radial-gradient(circle at 16% 48%, rgba(201, 22, 47, 0.32), transparent 38%) !important;
}

.hero-inner {
  position: relative !important;
  z-index: 2 !important;
  width: min(1180px, calc(100% - 64px)) !important;
  min-height: inherit !important;
  margin: 0 auto !important;
  padding: 118px 0 76px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
}

.hero .eyebrow {
  display: inline-flex !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 0 24px !important;
  padding: 10px 16px !important;
  border-radius: 7px !important;
  background: rgba(201, 22, 47, 0.96) !important;
  color: #fff !important;
  box-shadow: 0 16px 38px rgba(201, 22, 47, 0.24) !important;
  letter-spacing: 0 !important;
}

.hero h1 {
  max-width: 860px !important;
  margin: 0 !important;
  color: #fff !important;
  font-size: clamp(46px, 4.7vw, 72px) !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.42) !important;
}

.hero-copy {
  max-width: 720px !important;
  margin: 22px 0 28px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 19px !important;
  line-height: 1.9 !important;
}

.hero-actions {
  display: flex !important;
  gap: 14px !important;
  margin: 0 !important;
}

.hero-stats {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  width: min(780px, 100%) !important;
  margin-top: 46px !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  background: rgba(10, 15, 23, 0.72) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(10px) !important;
}

.hero-stats div {
  min-width: 0 !important;
  padding: 22px 24px !important;
}

.hero-stats strong {
  display: block !important;
  color: #fff !important;
  font-size: 22px !important;
  line-height: 1.2 !important;
}

.hero-stats span {
  display: block !important;
  margin-top: 8px !important;
  color: rgba(255, 255, 255, 0.76) !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}

.intro-video-card .intro-video,
.intro-video-card video {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  object-fit: cover !important;
  background: #111827 !important;
}

.factory {
  display: grid !important;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr) !important;
  gap: 42px !important;
  align-items: center !important;
}

.factory-gallery {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.factory-shot {
  position: relative !important;
  min-height: 0 !important;
  aspect-ratio: 4 / 3 !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  background: #111827 !important;
}

.factory-shot-main {
  grid-column: 1 / -1 !important;
  aspect-ratio: 16 / 8.2 !important;
}

.factory-shot img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  opacity: 1 !important;
  filter: none !important;
}

.factory-shot div {
  position: absolute !important;
  inset: auto 0 0 0 !important;
  padding: 18px !important;
  background: linear-gradient(180deg, transparent, rgba(6, 10, 18, 0.86)) !important;
}

.product-card {
  overflow: hidden !important;
  background: #fff !important;
}

.product-visual {
  min-height: 260px !important;
  display: grid !important;
  place-items: center !important;
  padding: 24px !important;
  background:
    radial-gradient(circle at 50% 30%, rgba(28, 115, 180, 0.1), transparent 38%),
    linear-gradient(145deg, #ffffff 0%, #f6f8fb 52%, #edf2f7 100%) !important;
}

.product-visual img {
  width: 100% !important;
  max-height: 210px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 24px 28px rgba(15, 23, 42, 0.12)) !important;
}

.product-modal {
  align-items: center !important;
  padding: 24px !important;
  overflow-y: auto !important;
}

.product-modal-panel {
  max-height: calc(100vh - 48px) !important;
  overflow: hidden !important;
}

.product-modal-copy {
  max-height: calc(100vh - 72px) !important;
  overflow-y: auto !important;
}

.credential-relationship-note {
  width: 100% !important;
  max-width: 100% !important;
  margin: 16px 0 10px !important;
  padding: 10px 4px 0 !important;
  border-top: 1px solid rgba(201, 22, 47, 0.28) !important;
  color: #667085 !important;
  font-size: 12px !important;
  line-height: 1.65 !important;
}

.credential-relationship-note strong {
  color: #111827 !important;
}

.patent-file-card,
.patent-card.image-failed {
  display: none !important;
}

@media (max-width: 820px) {
  .hero {
    min-height: 620px !important;
    align-items: end !important;
  }

  .hero-media {
    position: absolute !important;
    inset: 0 !important;
    height: 100% !important;
    background-image: url("assets/factory/workshop-main.jpg") !important;
  }

  .hero-video {
    object-position: center top !important;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(8, 12, 18, 0.08) 0%, rgba(8, 12, 18, 0.38) 35%, rgba(8, 12, 18, 0.96) 100%),
      radial-gradient(circle at 0% 42%, rgba(201, 22, 47, 0.3), transparent 46%) !important;
  }

  .hero-inner {
    width: 100% !important;
    min-height: 620px !important;
    padding: 220px 18px 24px !important;
    justify-content: flex-end !important;
  }

  .hero .eyebrow {
    margin-bottom: 14px !important;
    padding: 8px 12px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
  }

  .hero h1 {
    max-width: 9em !important;
    font-size: clamp(30px, 8.5vw, 39px) !important;
    line-height: 1.16 !important;
  }

  .hero-copy {
    margin: 16px 0 18px !important;
    font-size: 14px !important;
    line-height: 1.75 !important;
  }

  .hero-actions {
    width: 100% !important;
  }

  .hero-actions .btn {
    width: 100% !important;
    min-height: 52px !important;
  }

  .hero-actions .ghost {
    display: none !important;
  }

  .hero-stats {
    width: 100% !important;
    margin-top: 12px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .hero-stats div {
    padding: 12px 7px !important;
  }

  .hero-stats strong {
    font-size: 15px !important;
    line-height: 1.25 !important;
  }

  .hero-stats span {
    margin-top: 5px !important;
    font-size: 10px !important;
  }

  .factory {
    display: block !important;
  }

  .factory-content {
    margin-bottom: 22px !important;
  }

  .factory-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .factory-shot-main {
    grid-column: 1 / -1 !important;
    aspect-ratio: 16 / 10 !important;
  }

  .factory-shot {
    aspect-ratio: 1 / 1.08 !important;
    border-radius: 7px !important;
  }

  .factory-shot div {
    padding: 12px !important;
  }

  .factory-shot b {
    font-size: 17px !important;
  }

  .factory-shot span {
    font-size: 10px !important;
  }

  .featured-certificate-grid,
  .certificate-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .featured-certificate-card,
  .certificate-card {
    min-height: 0 !important;
    padding: 6px !important;
    border-radius: 7px !important;
  }

  .featured-certificate-card img,
  .featured-certificate-card.is-portrait img,
  .featured-certificate-card.is-landscape img,
  .certificate-card img {
    width: 100% !important;
    height: 94px !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
  }

  .featured-certificate-card span,
  .certificate-card span {
    min-height: 30px !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
  }

  .credential-relationship-note {
    margin: 10px 0 8px !important;
    font-size: 10px !important;
    line-height: 1.55 !important;
  }

  .patent-carousel {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    overflow: visible !important;
  }

  .patent-card {
    min-width: 0 !important;
    width: auto !important;
  }

  .patent-card:nth-child(n + 10) {
    display: none !important;
  }

  .patent-card img {
    width: 100% !important;
    height: 120px !important;
    object-fit: contain !important;
  }

  .patent-card > span:last-child {
    min-height: 30px !important;
    font-size: 9px !important;
    line-height: 1.25 !important;
  }

  .patent-showcase .carousel-controls {
    display: none !important;
  }

  .product-visual {
    min-height: 170px !important;
    padding: 16px !important;
  }

  .product-visual img {
    max-height: 142px !important;
  }

  .product-modal {
    padding: 12px !important;
    align-items: stretch !important;
  }

  .product-modal-panel {
    width: min(100%, 520px) !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .product-modal-copy {
    max-height: none !important;
    overflow: visible !important;
  }
}

/* Unified product presentation: consistent order, framing and full-machine visibility. */
.products .product-view {
  display: none !important;
}

.products .product-card:nth-child(3) { order: 1; }
.products .product-card:nth-child(4) { order: 2; }
.products .product-card:nth-child(6) { order: 3; }
.products .product-card:nth-child(1) { order: 4; }
.products .product-card:nth-child(2) { order: 5; }
.products .product-card:nth-child(5) { order: 6; }

.products .product-visual {
  aspect-ratio: 16 / 10 !important;
  min-height: 0 !important;
  padding: 0 !important;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.98) 0 30%, rgba(241, 246, 252, 0.84) 64%, rgba(226, 235, 246, 0.76) 100%),
    linear-gradient(145deg, #f9fbfe 0%, #eaf1f8 100%) !important;
}

.products .product-visual::before {
  content: "" !important;
  position: absolute !important;
  top: 14% !important;
  right: -9% !important;
  z-index: 0 !important;
  width: 58% !important;
  aspect-ratio: 1 !important;
  border: 1px solid rgba(36, 96, 165, 0.1) !important;
  border-radius: 50% !important;
  box-shadow: inset 0 0 0 34px rgba(255, 255, 255, 0.16) !important;
  pointer-events: none !important;
}

.products .product-visual::after {
  content: "" !important;
  position: absolute !important;
  right: 12% !important;
  bottom: 7% !important;
  left: 12% !important;
  z-index: 0 !important;
  height: 4% !important;
  border-radius: 999px !important;
  background: rgba(19, 37, 61, 0.11) !important;
  filter: blur(16px) !important;
  pointer-events: none !important;
}

.products .product-visual img,
.products .product-card:nth-child(2) .product-visual img,
.products .product-card:nth-child(5) .product-visual img {
  position: relative !important;
  z-index: 1 !important;
  width: 96% !important;
  height: 96% !important;
  max-width: none !important;
  max-height: none !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  mix-blend-mode: multiply !important;
  filter: contrast(1.025) saturate(1.035) drop-shadow(0 18px 20px rgba(26, 50, 78, 0.16)) !important;
  transform: none !important;
}

.products .product-card:hover .product-visual img,
.products .product-card:nth-child(2):hover .product-visual img,
.products .product-card:nth-child(5):hover .product-visual img {
  transform: scale(1.018) !important;
}

@media (max-width: 820px) {
  .products .product-visual img,
  .products .product-card:nth-child(2) .product-visual img,
  .products .product-card:nth-child(5) .product-visual img {
    width: 95% !important;
    height: 95% !important;
  }
}

/* Desktop safety gutter: keep wide machines clear of card edges and floating tools. */
@media (min-width: 821px) {
  .products .product-grid {
    width: min(1480px, calc(100% - 220px)) !important;
    margin-right: 180px !important;
    margin-left: auto !important;
  }

  .products .product-card:nth-child(2) .product-visual img,
  .products .product-card:nth-child(5) .product-visual img {
    width: 86% !important;
    height: 86% !important;
    transform: none !important;
  }

  .products .product-card:nth-child(2):hover .product-visual img,
  .products .product-card:nth-child(5):hover .product-visual img {
    transform: scale(1.012) !important;
  }
}

@media (min-width: 960px) {
  .products .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 960px) and (max-width: 1250px) {
  .products .product-grid {
    width: calc(100% - 320px) !important;
    margin-right: 260px !important;
    margin-left: auto !important;
  }

  .products .product-visual img {
    width: 82% !important;
    height: 82% !important;
  }

  .products .product-card:nth-child(2) .product-visual img,
  .products .product-card:nth-child(5) .product-visual img {
    width: 78% !important;
    height: 78% !important;
  }
}

@media (max-width: 420px) {
  .hero {
    min-height: 600px !important;
  }

  .hero-inner {
    min-height: 600px !important;
    padding: 190px 16px 22px !important;
  }

  .hero h1 {
    font-size: 32px !important;
  }

  .hero-copy {
    font-size: 13px !important;
  }
}

/* Ultimate live polish 20260717 - must remain at the end of the stylesheet. */
.product-details {
  display: none !important;
}

.hero {
  position: relative !important;
  display: block !important;
  min-height: min(780px, 82vh) !important;
  overflow: hidden !important;
  background: #080b10 !important;
}

.hero-media,
.hero-video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
}

.hero-media {
  background: #080b10 url("assets/factory/workshop-main.jpg") center / cover no-repeat !important;
}

.hero-video {
  object-fit: cover !important;
  object-position: center 42% !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.hero-overlay {
  position: absolute !important;
  inset: 0 !important;
  background:
    linear-gradient(90deg, rgba(8, 10, 15, 0.76) 0%, rgba(8, 10, 15, 0.38) 48%, rgba(8, 10, 15, 0.62) 100%),
    linear-gradient(180deg, rgba(8, 10, 15, 0.58) 0%, rgba(8, 10, 15, 0.16) 42%, rgba(8, 10, 15, 0.72) 100%),
    radial-gradient(circle at 8% 42%, rgba(201, 22, 47, 0.34), transparent 36%) !important;
}

.hero-inner {
  position: relative !important;
  z-index: 2 !important;
  width: min(1180px, calc(100% - 72px)) !important;
  min-height: min(780px, 82vh) !important;
  margin: 0 auto !important;
  padding: 126px 0 78px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
}

.hero-title-line {
  display: inline !important;
}

.hero h1 {
  max-width: 940px !important;
  letter-spacing: 0 !important;
  text-wrap: balance !important;
}

.hero-copy {
  max-width: 720px !important;
}

.hero-stats {
  backdrop-filter: blur(14px) !important;
  background: rgba(15, 20, 28, 0.54) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2) !important;
}

.product-card {
  overflow: hidden !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 20px 48px rgba(22, 35, 56, 0.08) !important;
}

.product-visual {
  position: relative !important;
  background:
    radial-gradient(circle at 50% 46%, rgba(62, 116, 184, 0.12), transparent 34%),
    linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%) !important;
}

.product-visual::after {
  content: "" !important;
  position: absolute !important;
  inset: auto 13% 18px !important;
  height: 16px !important;
  border-radius: 999px !important;
  background: rgba(15, 23, 42, 0.12) !important;
  filter: blur(14px) !important;
  pointer-events: none !important;
}

.product-visual img {
  position: relative !important;
  z-index: 1 !important;
  filter: drop-shadow(0 18px 22px rgba(35, 54, 82, 0.18)) !important;
}

.industry-card img.image-missing,
.industry-card.image-failed img,
.factory-shot img.image-missing,
.factory-shot.image-failed img {
  display: none !important;
}

.industry-card.image-failed::before {
  opacity: 1 !important;
}

.credential-relationship-note {
  max-width: 100% !important;
  margin: 12px 0 18px !important;
  padding: 9px 0 0 !important;
  border-top: 1px solid rgba(201, 22, 47, 0.28) !important;
  color: #667085 !important;
  font-size: 12px !important;
  line-height: 1.65 !important;
}

.credential-relationship-note strong {
  color: #111827 !important;
}

.patent-card.image-failed,
.patent-card:empty {
  display: none !important;
}

.product-modal {
  align-items: flex-start !important;
  overflow-y: auto !important;
  padding: 24px !important;
}

.product-modal-panel {
  max-height: calc(100vh - 48px) !important;
  overflow: hidden !important;
}

.product-modal-copy {
  max-height: calc(100vh - 64px) !important;
  overflow-y: auto !important;
  padding-bottom: 22px !important;
}

@media (max-width: 820px) {
  .hero {
    min-height: 620px !important;
  }

  .hero-video {
    object-position: center top !important;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(7, 10, 15, 0.08) 0%, rgba(7, 10, 15, 0.32) 28%, rgba(7, 10, 15, 0.88) 64%, rgba(7, 10, 15, 0.98) 100%),
      radial-gradient(circle at 0% 55%, rgba(201, 22, 47, 0.34), transparent 45%) !important;
  }

  .hero-inner {
    width: 100% !important;
    min-height: 620px !important;
    padding: 176px 18px 26px !important;
    justify-content: flex-end !important;
  }

  .hero-title-line {
    display: block !important;
  }

  .hero-title-line + .hero-title-line {
    margin-top: 0.34em !important;
  }

  .hero h1 {
    max-width: 8.6em !important;
    font-size: clamp(30px, 8.2vw, 38px) !important;
    line-height: 1.06 !important;
  }

  html[lang="en"] .hero h1 {
    max-width: 10.8em !important;
    font-size: clamp(27px, 7.2vw, 35px) !important;
    line-height: 1.08 !important;
  }

  .hero-copy {
    margin: 16px 0 18px !important;
    font-size: 14px !important;
    line-height: 1.72 !important;
  }

  .hero-actions {
    width: 100% !important;
    display: block !important;
  }

  .hero-actions .btn {
    width: 100% !important;
    min-height: 52px !important;
  }

  .hero-actions .ghost {
    display: none !important;
  }

  .hero-stats {
    width: 100% !important;
    margin-top: 12px !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .hero-stats div {
    min-width: 0 !important;
    padding: 12px 6px !important;
  }

  .hero-stats strong {
    font-size: 14px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
  }

  .hero-stats span {
    margin-top: 4px !important;
    font-size: 9px !important;
    line-height: 1.25 !important;
  }

  .factory {
    padding-top: 54px !important;
    padding-bottom: 54px !important;
  }

  .factory-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .factory-shot-main {
    grid-column: 1 / -1 !important;
    aspect-ratio: 16 / 10 !important;
  }

  .factory-shot {
    aspect-ratio: 1 / 1.02 !important;
    border-radius: 8px !important;
  }

  .factory-shot div {
    padding: 12px !important;
  }

  .factory-shot b {
    font-size: 16px !important;
    line-height: 1.25 !important;
  }

  .featured-certificate-grid,
  .certificate-grid.compact {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .featured-certificate-card,
  .certificate-card {
    min-height: 0 !important;
    padding: 6px !important;
  }

  .featured-certificate-card img,
  .certificate-card img {
    width: 100% !important;
    height: 92px !important;
    object-fit: contain !important;
  }

  .featured-certificate-card span,
  .certificate-card span {
    min-height: 28px !important;
    font-size: 9px !important;
    line-height: 1.25 !important;
  }

  .patent-carousel {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    overflow: visible !important;
  }

  .patent-card {
    min-width: 0 !important;
    width: auto !important;
  }

  .patent-card img {
    width: 100% !important;
    height: 112px !important;
    object-fit: contain !important;
  }

  .patent-card > span:last-child {
    min-height: 28px !important;
    padding: 6px 2px !important;
    font-size: 9px !important;
    line-height: 1.25 !important;
  }

  .patent-showcase .carousel-controls {
    display: none !important;
  }

  .product-modal {
    padding: 12px !important;
  }

  .product-modal-panel,
  .product-modal-copy {
    max-height: none !important;
    overflow: visible !important;
  }
}

/* Final polish 20260717: keep the video as a business-style background and stabilize mobile modules. */
.product-details {
  display: none !important;
}

.hero {
  position: relative !important;
  min-height: min(780px, 82vh) !important;
  overflow: hidden !important;
  background: #080b10 !important;
  display: block !important;
}

.hero-media,
.hero-video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
}

.hero-media {
  background: #080b10 url("assets/factory/workshop-main.jpg") center / cover no-repeat !important;
}

.hero-video {
  object-fit: cover !important;
  object-position: center 42% !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.hero-overlay {
  position: absolute !important;
  inset: 0 !important;
  background:
    linear-gradient(90deg, rgba(8, 10, 15, 0.76) 0%, rgba(8, 10, 15, 0.38) 48%, rgba(8, 10, 15, 0.62) 100%),
    linear-gradient(180deg, rgba(8, 10, 15, 0.58) 0%, rgba(8, 10, 15, 0.16) 42%, rgba(8, 10, 15, 0.72) 100%),
    radial-gradient(circle at 8% 42%, rgba(201, 22, 47, 0.34), transparent 36%) !important;
}

.hero-inner {
  position: relative !important;
  z-index: 2 !important;
  width: min(1180px, calc(100% - 72px)) !important;
  min-height: min(780px, 82vh) !important;
  margin: 0 auto !important;
  padding: 126px 0 78px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
}

.hero-title-line {
  display: inline !important;
}

.hero .eyebrow {
  border-radius: 5px !important;
  box-shadow: 0 14px 32px rgba(201, 22, 47, 0.24) !important;
}

.hero h1 {
  max-width: 940px !important;
  letter-spacing: 0 !important;
  text-wrap: balance !important;
}

.hero-copy {
  max-width: 720px !important;
}

.hero-stats {
  backdrop-filter: blur(14px) !important;
  background: rgba(15, 20, 28, 0.54) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2) !important;
}

.products-grid {
  align-items: stretch !important;
}

.product-card {
  overflow: hidden !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 20px 48px rgba(22, 35, 56, 0.08) !important;
}

.product-visual {
  position: relative !important;
  background:
    radial-gradient(circle at 50% 46%, rgba(62, 116, 184, 0.12), transparent 34%),
    linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%) !important;
}

.product-visual::after {
  content: "" !important;
  position: absolute !important;
  inset: auto 13% 18px !important;
  height: 16px !important;
  border-radius: 999px !important;
  background: rgba(15, 23, 42, 0.12) !important;
  filter: blur(14px) !important;
  pointer-events: none !important;
}

.product-visual img {
  position: relative !important;
  z-index: 1 !important;
  filter: drop-shadow(0 18px 22px rgba(35, 54, 82, 0.18)) !important;
}

.industry-card.image-failed img,
.industry-card img.image-missing,
.factory-shot.image-failed img,
.factory-shot img.image-missing {
  display: none !important;
}

.industry-card.image-failed::before,
.industry-card:not(:has(img))::before {
  opacity: 1 !important;
}

.certificate-featured {
  overflow: visible !important;
}

.credential-relationship-note {
  max-width: 100% !important;
  margin: 12px 0 18px !important;
  padding: 9px 0 0 !important;
  border-top: 1px solid rgba(201, 22, 47, 0.28) !important;
  color: #667085 !important;
  font-size: 12px !important;
  line-height: 1.65 !important;
}

.patent-card.image-failed,
.patent-card:empty {
  display: none !important;
}

.product-modal {
  align-items: flex-start !important;
  overflow-y: auto !important;
  padding: 24px !important;
}

.product-modal-panel {
  max-height: calc(100vh - 48px) !important;
  overflow: hidden !important;
}

.product-modal-copy {
  max-height: calc(100vh - 64px) !important;
  overflow-y: auto !important;
  padding-bottom: 22px !important;
}

@media (max-width: 820px) {
  .hero {
    min-height: 620px !important;
  }

  .hero-media {
    position: absolute !important;
    height: 100% !important;
  }

  .hero-video {
    object-position: center top !important;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(7, 10, 15, 0.08) 0%, rgba(7, 10, 15, 0.32) 28%, rgba(7, 10, 15, 0.88) 64%, rgba(7, 10, 15, 0.98) 100%),
      radial-gradient(circle at 0% 55%, rgba(201, 22, 47, 0.34), transparent 45%) !important;
  }

  .hero-inner {
    width: 100% !important;
    min-height: 620px !important;
    padding: 176px 18px 26px !important;
    justify-content: flex-end !important;
  }

  .hero-title-line {
    display: block !important;
  }

  .hero-title-line + .hero-title-line {
    margin-top: 0.34em !important;
  }

  .hero h1 {
    max-width: 8.6em !important;
    font-size: clamp(30px, 8.2vw, 38px) !important;
    line-height: 1.06 !important;
  }

  html[lang="en"] .hero h1 {
    max-width: 10.8em !important;
    font-size: clamp(27px, 7.2vw, 35px) !important;
    line-height: 1.08 !important;
  }

  .hero-copy {
    margin: 16px 0 18px !important;
    font-size: 14px !important;
    line-height: 1.72 !important;
  }

  .hero-actions {
    width: 100% !important;
    display: block !important;
  }

  .hero-actions .btn {
    width: 100% !important;
    min-height: 52px !important;
  }

  .hero-actions .ghost {
    display: none !important;
  }

  .hero-stats {
    width: 100% !important;
    margin-top: 12px !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .hero-stats div {
    min-width: 0 !important;
    padding: 12px 6px !important;
  }

  .hero-stats strong {
    font-size: 14px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
  }

  .hero-stats span {
    margin-top: 4px !important;
    font-size: 9px !important;
    line-height: 1.25 !important;
  }

  .factory {
    padding-top: 54px !important;
    padding-bottom: 54px !important;
  }

  .factory-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .factory-shot-main {
    grid-column: 1 / -1 !important;
    aspect-ratio: 16 / 10 !important;
  }

  .factory-shot {
    aspect-ratio: 1 / 1.02 !important;
    border-radius: 8px !important;
  }

  .factory-shot div {
    padding: 12px !important;
  }

  .factory-shot b {
    font-size: 16px !important;
    line-height: 1.25 !important;
  }

  .certificate-featured-grid,
  .featured-certificate-grid,
  .certificate-grid.compact {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .featured-certificate-card,
  .certificate-card {
    min-height: 0 !important;
    padding: 6px !important;
  }

  .featured-certificate-card img,
  .certificate-card img {
    width: 100% !important;
    height: 92px !important;
    object-fit: contain !important;
  }

  .featured-certificate-card span,
  .certificate-card span {
    min-height: 28px !important;
    font-size: 9px !important;
    line-height: 1.25 !important;
  }

  .patent-carousel {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    overflow: visible !important;
  }

  .patent-card {
    min-width: 0 !important;
    width: auto !important;
  }

  .patent-card img {
    width: 100% !important;
    height: 112px !important;
    object-fit: contain !important;
  }

  .patent-card > span:last-child {
    min-height: 28px !important;
    padding: 6px 2px !important;
    font-size: 9px !important;
    line-height: 1.25 !important;
  }

  .patent-showcase .carousel-controls {
    display: none !important;
  }

  .product-modal {
    padding: 12px !important;
  }

  .product-modal-panel {
    max-height: none !important;
    overflow: visible !important;
  }

  .product-modal-copy {
    max-height: none !important;
    overflow: visible !important;
  }
}

/* 2026-07-17 hardening pass: keep the first screen as one polished video-background hero. */
.hero,
.hero * {
  box-sizing: border-box;
}

.hero-media,
.hero-video {
  pointer-events: none;
}

.hero-video {
  filter: none !important;
  transform: none !important;
}

.product-card {
  overflow: hidden;
}

.product-visual {
  position: relative;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.98), rgba(245, 248, 252, 0.92) 48%, rgba(232, 238, 246, 0.7) 100%) !important;
}

.product-visual::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.12);
  filter: blur(12px);
  z-index: 0;
}

.product-visual img {
  position: relative;
  z-index: 1;
}

.product-modal {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

.product-modal-panel {
  max-height: min(92vh, 880px) !important;
  overflow-y: auto !important;
}

.product-modal-copy {
  max-height: none !important;
  overflow: visible !important;
}

@media (max-width: 820px) {
  .hero {
    position: relative !important;
    display: flex !important;
    min-height: 640px !important;
    background: #10141b !important;
    overflow: hidden !important;
  }

  .hero-media {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
  }

  .hero-video {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: center top !important;
  }

  .hero-overlay {
    position: absolute !important;
    inset: 0 !important;
    background:
      linear-gradient(180deg, rgba(10, 14, 22, 0.1) 0%, rgba(10, 14, 22, 0.28) 34%, rgba(10, 14, 22, 0.9) 100%),
      radial-gradient(circle at 2% 48%, rgba(201, 22, 47, 0.38), transparent 45%) !important;
  }

  .hero-inner {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    width: 100% !important;
    min-height: 640px !important;
    padding: 225px 18px 26px !important;
  }

  .hero h1 {
    max-width: 9em !important;
    letter-spacing: 0 !important;
  }

  .hero-stats {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    background: rgba(12, 18, 26, 0.62) !important;
    backdrop-filter: blur(8px);
  }

  .hero-stats div {
    min-width: 0 !important;
  }

  .product-modal {
    align-items: flex-start !important;
    padding: 10px !important;
  }

  .product-modal-panel {
    width: 100% !important;
    max-height: calc(100svh - 20px) !important;
    overflow-y: auto !important;
  }

  .product-detail-table {
    min-width: 0 !important;
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 620px !important;
  }

  .hero-inner {
    min-height: 620px !important;
    padding: 205px 16px 22px !important;
  }

  .hero h1 {
    font-size: 32px !important;
    line-height: 1.18 !important;
  }

  .hero-copy {
    font-size: 13px !important;
    line-height: 1.72 !important;
  }

  .hero-stats strong {
    font-size: 14px !important;
  }

  .hero-stats span {
    font-size: 10px !important;
  }
}

/* 2026-07-17 homepage executive hero: remove video-player feel and present a premium static business cover. */
.hero {
  min-height: 680px;
  isolation: isolate;
  background:
    linear-gradient(120deg, rgba(7, 10, 16, 0.9) 0%, rgba(10, 15, 23, 0.74) 38%, rgba(10, 15, 23, 0.4) 100%),
    url("assets/videos/yiyan-promo-poster.jpg") center 48% / cover no-repeat;
}

.hero-media {
  display: none !important;
}

.hero-overlay {
  background:
    radial-gradient(circle at 20% 32%, rgba(201, 22, 47, 0.32), transparent 31%),
    linear-gradient(90deg, rgba(8, 12, 20, 0.84) 0%, rgba(8, 12, 20, 0.58) 46%, rgba(8, 12, 20, 0.3) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 190px;
  background: linear-gradient(180deg, transparent, rgba(7, 10, 16, 0.88));
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 720px);
  align-content: center;
  min-height: inherit;
  padding-top: 118px;
  padding-bottom: 70px;
}

.hero .eyebrow {
  box-shadow: 0 14px 34px rgba(201, 22, 47, 0.24);
}

.hero h1 {
  max-width: 780px;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

.hero-copy {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  margin-top: 6px;
}

.hero-stats {
  width: min(780px, 100%);
  margin-top: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(11, 16, 24, 0.68);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.hero-stats div {
  padding: 22px 24px;
}

.hero-stats strong {
  color: #fff;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.76);
}

@media (min-width: 1180px) {
  .hero-inner::after {
    content: "SOURCE FACTORY  /  HIGH POWER  /  STANDARD WORKSHOP";
    position: absolute;
    right: 7vw;
    bottom: 72px;
    max-width: 260px;
    padding-left: 18px;
    border-left: 3px solid var(--red);
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.8;
    letter-spacing: 0.12em;
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: 570px;
    background:
      linear-gradient(180deg, rgba(9, 13, 20, 0.1) 0%, rgba(9, 13, 20, 0.58) 44%, rgba(9, 13, 20, 0.96) 100%),
      url("assets/videos/yiyan-promo-poster.jpg") center top / cover no-repeat;
  }

  .hero-overlay {
    background: linear-gradient(145deg, rgba(201, 22, 47, 0.2), transparent 52%);
  }

  .hero::before {
    height: 120px;
  }

  .hero-inner {
    display: block;
    min-height: 570px;
    padding: 166px 18px 28px;
  }

  .hero .eyebrow {
    margin-bottom: 14px;
    font-size: 11px;
  }

  .hero h1 {
    max-width: 8.6em;
    font-size: clamp(32px, 8.4vw, 40px);
  }

  .hero-copy {
    margin: 16px 0 20px;
    font-size: 13px;
    line-height: 1.7;
  }

  .hero-stats {
    margin-top: 14px;
  }
}

/* 2026-07-17 hero video business layer: keep the video as background, not as a visible player block. */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 680px;
  isolation: isolate;
  overflow: hidden;
  background: #0d1118;
}

.hero-media {
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: url("assets/videos/yiyan-promo-poster.jpg") center 45% / cover no-repeat;
}

.hero-video {
  display: block !important;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.98) contrast(1.04) brightness(0.9);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 12, 20, 0.88) 0%, rgba(8, 12, 20, 0.65) 42%, rgba(8, 12, 20, 0.3) 100%),
    linear-gradient(180deg, rgba(8, 12, 20, 0.08) 0%, rgba(8, 12, 20, 0.84) 100%),
    radial-gradient(circle at 18% 42%, rgba(201, 22, 47, 0.3), transparent 34%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 190px;
  background: linear-gradient(180deg, transparent, rgba(7, 10, 16, 0.9));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 760px);
  align-content: center;
  width: min(1180px, calc(100% - 64px));
  min-height: inherit;
  margin: 0 auto;
  padding: 118px 0 70px;
}

.hero .eyebrow {
  width: max-content;
  box-shadow: 0 14px 34px rgba(201, 22, 47, 0.24);
}

.hero h1 {
  max-width: 800px;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

.hero-copy {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  margin-top: 8px;
}

.hero-stats {
  width: min(780px, 100%);
  margin-top: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(11, 16, 24, 0.68);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.hero-stats div {
  padding: 22px 24px;
}

.hero-stats strong {
  color: #fff;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.76);
}

@media (min-width: 1180px) {
  .hero-inner::after {
    content: "SOURCE FACTORY  /  HIGH POWER  /  STANDARD WORKSHOP";
    position: absolute;
    right: 0;
    bottom: 82px;
    max-width: 260px;
    padding-left: 18px;
    border-left: 3px solid var(--red);
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.8;
    letter-spacing: 0.12em;
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: 620px;
    align-items: end;
    background: #101318;
  }

  .hero-media {
    display: block !important;
    inset: 0;
    height: 100%;
    background: url("assets/videos/yiyan-promo-poster.jpg") center top / cover no-repeat;
  }

  .hero-video {
    display: block !important;
    object-position: center top;
    filter: saturate(0.98) contrast(1.03) brightness(0.9);
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(8, 12, 20, 0.08) 0%, rgba(8, 12, 20, 0.44) 38%, rgba(8, 12, 20, 0.98) 100%),
      radial-gradient(circle at 0% 42%, rgba(201, 22, 47, 0.28), transparent 46%);
  }

  .hero::before {
    height: 130px;
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    min-height: 620px;
    padding: 142px 18px 28px;
  }

  .hero .eyebrow {
    max-width: 100%;
    margin-bottom: 14px;
    font-size: 11px;
    white-space: normal;
  }

  .hero h1 {
    max-width: 9em;
    font-size: clamp(30px, 8vw, 38px);
    line-height: 1.14;
  }

  .hero-copy {
    margin: 16px 0 20px;
    font-size: 13px;
    line-height: 1.7;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    margin-top: 14px;
    background: rgba(12, 17, 25, 0.76);
  }

  .hero-stats div {
    min-width: 0;
    padding: 14px 10px;
  }

  .hero-stats strong {
    font-size: 16px;
    line-height: 1.25;
  }

  .hero-stats span {
    font-size: 11px;
    line-height: 1.35;
  }
}

@media (max-width: 420px) {
  .hero {
    min-height: 590px;
  }

  .hero-inner {
    min-height: 590px;
    padding: 128px 16px 24px;
  }

  .hero h1 {
    font-size: 31px;
  }

  .hero-copy {
    font-size: 12px;
  }

  .hero-stats div {
    padding: 12px 8px;
  }
}

/* 2026-07-17 final override: keep the hero video as a background and clean mobile sections. */
.hero {
  position: relative !important;
  display: grid !important;
  align-items: center !important;
  min-height: 680px !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #0b1018 !important;
}

.hero-media {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  background: #0b1018 url("assets/factory/workshop-main.jpg") center / cover no-repeat !important;
}

.hero-video {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  object-position: center 44% !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  transform: none !important;
}

.hero-overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background:
    linear-gradient(90deg, rgba(8, 12, 18, 0.84) 0%, rgba(8, 12, 18, 0.58) 44%, rgba(8, 12, 18, 0.18) 100%),
    linear-gradient(180deg, rgba(8, 12, 18, 0.12) 0%, rgba(8, 12, 18, 0.84) 100%),
    radial-gradient(circle at 16% 48%, rgba(201, 22, 47, 0.32), transparent 38%) !important;
}

.hero-inner {
  position: relative !important;
  z-index: 2 !important;
  width: min(1180px, calc(100% - 64px)) !important;
  min-height: inherit !important;
  margin: 0 auto !important;
  padding: 118px 0 76px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
}

.hero .eyebrow {
  display: inline-flex !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 0 24px !important;
  padding: 10px 16px !important;
  border-radius: 7px !important;
  background: rgba(201, 22, 47, 0.96) !important;
  color: #fff !important;
  box-shadow: 0 16px 38px rgba(201, 22, 47, 0.24) !important;
  letter-spacing: 0 !important;
}

.hero h1 {
  max-width: 860px !important;
  margin: 0 !important;
  color: #fff !important;
  font-size: clamp(46px, 4.7vw, 72px) !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.42) !important;
}

.hero-copy {
  max-width: 720px !important;
  margin: 22px 0 28px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 19px !important;
  line-height: 1.9 !important;
}

.hero-actions {
  display: flex !important;
  gap: 14px !important;
  margin: 0 !important;
}

.hero-stats {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  width: min(780px, 100%) !important;
  margin-top: 46px !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  background: rgba(10, 15, 23, 0.72) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(10px) !important;
}

.hero-stats div {
  min-width: 0 !important;
  padding: 22px 24px !important;
}

.hero-stats strong {
  display: block !important;
  color: #fff !important;
  font-size: 22px !important;
  line-height: 1.2 !important;
}

.hero-stats span {
  display: block !important;
  margin-top: 8px !important;
  color: rgba(255, 255, 255, 0.76) !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}

.intro-video-card .intro-video,
.intro-video-card video {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  object-fit: cover !important;
  background: #111827 !important;
}

.factory {
  display: grid !important;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr) !important;
  gap: 42px !important;
  align-items: center !important;
}

.factory-gallery {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.factory-shot {
  position: relative !important;
  min-height: 0 !important;
  aspect-ratio: 4 / 3 !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  background: #111827 !important;
}

.factory-shot-main {
  grid-column: 1 / -1 !important;
  aspect-ratio: 16 / 8.2 !important;
}

.factory-shot img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  opacity: 1 !important;
  filter: none !important;
}

.factory-shot div {
  position: absolute !important;
  inset: auto 0 0 0 !important;
  padding: 18px !important;
  background: linear-gradient(180deg, transparent, rgba(6, 10, 18, 0.86)) !important;
}

.product-card {
  overflow: hidden !important;
  background: #fff !important;
}

.product-visual {
  min-height: 260px !important;
  display: grid !important;
  place-items: center !important;
  padding: 24px !important;
  background:
    radial-gradient(circle at 50% 30%, rgba(28, 115, 180, 0.1), transparent 38%),
    linear-gradient(145deg, #ffffff 0%, #f6f8fb 52%, #edf2f7 100%) !important;
}

.product-visual img {
  width: 100% !important;
  max-height: 210px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 24px 28px rgba(15, 23, 42, 0.12)) !important;
}

.product-modal {
  align-items: center !important;
  padding: 24px !important;
  overflow-y: auto !important;
}

.product-modal-panel {
  max-height: calc(100vh - 48px) !important;
  overflow: hidden !important;
}

.product-modal-copy {
  max-height: calc(100vh - 72px) !important;
  overflow-y: auto !important;
}

.credential-relationship-note {
  width: 100% !important;
  max-width: 100% !important;
  margin: 16px 0 10px !important;
  padding: 10px 4px 0 !important;
  border-top: 1px solid rgba(201, 22, 47, 0.28) !important;
  color: #667085 !important;
  font-size: 12px !important;
  line-height: 1.65 !important;
}

.credential-relationship-note strong {
  color: #111827 !important;
}

.patent-file-card,
.patent-card.image-failed {
  display: none !important;
}

@media (max-width: 820px) {
  .hero {
    min-height: 620px !important;
    align-items: end !important;
  }

  .hero-media {
    position: absolute !important;
    inset: 0 !important;
    height: 100% !important;
    background-image: url("assets/factory/workshop-main.jpg") !important;
  }

  .hero-video {
    object-position: center top !important;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(8, 12, 18, 0.08) 0%, rgba(8, 12, 18, 0.38) 35%, rgba(8, 12, 18, 0.96) 100%),
      radial-gradient(circle at 0% 42%, rgba(201, 22, 47, 0.3), transparent 46%) !important;
  }

  .hero-inner {
    width: 100% !important;
    min-height: 620px !important;
    padding: 220px 18px 24px !important;
    justify-content: flex-end !important;
  }

  .hero .eyebrow {
    margin-bottom: 14px !important;
    padding: 8px 12px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
  }

  .hero h1 {
    max-width: 9em !important;
    font-size: clamp(30px, 8.5vw, 39px) !important;
    line-height: 1.16 !important;
  }

  .hero-copy {
    margin: 16px 0 18px !important;
    font-size: 14px !important;
    line-height: 1.75 !important;
  }

  .hero-actions {
    width: 100% !important;
  }

  .hero-actions .btn {
    width: 100% !important;
    min-height: 52px !important;
  }

  .hero-actions .ghost {
    display: none !important;
  }

  .hero-stats {
    width: 100% !important;
    margin-top: 12px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .hero-stats div {
    padding: 12px 7px !important;
  }

  .hero-stats strong {
    font-size: 15px !important;
    line-height: 1.25 !important;
  }

  .hero-stats span {
    margin-top: 5px !important;
    font-size: 10px !important;
  }

  .factory {
    display: block !important;
  }

  .factory-content {
    margin-bottom: 22px !important;
  }

  .factory-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .factory-shot-main {
    grid-column: 1 / -1 !important;
    aspect-ratio: 16 / 10 !important;
  }

  .factory-shot {
    aspect-ratio: 1 / 1.08 !important;
    border-radius: 7px !important;
  }

  .factory-shot div {
    padding: 12px !important;
  }

  .factory-shot b {
    font-size: 17px !important;
  }

  .factory-shot span {
    font-size: 10px !important;
  }

  .featured-certificate-grid,
  .certificate-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .featured-certificate-card,
  .certificate-card {
    min-height: 0 !important;
    padding: 6px !important;
    border-radius: 7px !important;
  }

  .featured-certificate-card img,
  .featured-certificate-card.is-portrait img,
  .featured-certificate-card.is-landscape img,
  .certificate-card img {
    width: 100% !important;
    height: 94px !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
  }

  .featured-certificate-card span,
  .certificate-card span {
    min-height: 30px !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
  }

  .credential-relationship-note {
    margin: 10px 0 8px !important;
    font-size: 10px !important;
    line-height: 1.55 !important;
  }

  .patent-carousel {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    overflow: visible !important;
  }

  .patent-card {
    min-width: 0 !important;
    width: auto !important;
  }

  .patent-card:nth-child(n + 10) {
    display: none !important;
  }

  .patent-card img {
    width: 100% !important;
    height: 120px !important;
    object-fit: contain !important;
  }

  .patent-card > span:last-child {
    min-height: 30px !important;
    font-size: 9px !important;
    line-height: 1.25 !important;
  }

  .patent-showcase .carousel-controls {
    display: none !important;
  }

  .product-visual {
    min-height: 170px !important;
    padding: 16px !important;
  }

  .product-visual img {
    max-height: 142px !important;
  }

  .product-modal {
    padding: 12px !important;
    align-items: stretch !important;
  }

  .product-modal-panel {
    width: min(100%, 520px) !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .product-modal-copy {
    max-height: none !important;
    overflow: visible !important;
  }
}

@media (max-width: 420px) {
  .hero {
    min-height: 600px !important;
  }

  .hero-inner {
    min-height: 600px !important;
    padding: 190px 16px 22px !important;
  }

  .hero h1 {
    font-size: 32px !important;
  }

  .hero-copy {
    font-size: 13px !important;
  }
}
/* FINAL-END-OVERRIDES-20260717 */
.product-details { display: none !important; }
.hero { position: relative !important; display: block !important; min-height: min(780px, 82vh) !important; overflow: hidden !important; background: #080b10 !important; }
.hero-media, .hero-video { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; min-height: 0 !important; }
.hero-media { background: #080b10 url("assets/factory/workshop-main.jpg") center / cover no-repeat !important; }
.hero-video { object-fit: cover !important; object-position: center 42% !important; filter: none !important; opacity: 1 !important; transform: none !important; }
.hero-overlay { position: absolute !important; inset: 0 !important; background: linear-gradient(90deg, rgba(8,10,15,.76) 0%, rgba(8,10,15,.38) 48%, rgba(8,10,15,.62) 100%), linear-gradient(180deg, rgba(8,10,15,.58) 0%, rgba(8,10,15,.16) 42%, rgba(8,10,15,.72) 100%), radial-gradient(circle at 8% 42%, rgba(201,22,47,.34), transparent 36%) !important; }
.hero-inner { position: relative !important; z-index: 2 !important; width: min(1180px, calc(100% - 72px)) !important; min-height: min(780px, 82vh) !important; margin: 0 auto !important; padding: 126px 0 78px !important; display: flex !important; flex-direction: column !important; justify-content: center !important; align-items: flex-start !important; }
.hero-title-line { display: inline !important; }
.hero h1 { max-width: 940px !important; letter-spacing: 0 !important; text-wrap: balance !important; }
.hero-copy { max-width: 720px !important; }
.hero-stats { backdrop-filter: blur(14px) !important; background: rgba(15,20,28,.54) !important; border: 1px solid rgba(255,255,255,.22) !important; box-shadow: 0 20px 45px rgba(0,0,0,.2) !important; }
.product-card { overflow: hidden !important; border-radius: 8px !important; background: #fff !important; box-shadow: 0 20px 48px rgba(22,35,56,.08) !important; }
.product-visual { position: relative !important; background: radial-gradient(circle at 50% 46%, rgba(62,116,184,.12), transparent 34%), linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%) !important; }
.product-visual::after { content: "" !important; position: absolute !important; inset: auto 13% 18px !important; height: 16px !important; border-radius: 999px !important; background: rgba(15,23,42,.12) !important; filter: blur(14px) !important; pointer-events: none !important; }
.product-visual img { position: relative !important; z-index: 1 !important; filter: drop-shadow(0 18px 22px rgba(35,54,82,.18)) !important; }
.industry-card img.image-missing, .industry-card.image-failed img, .factory-shot img.image-missing, .factory-shot.image-failed img { display: none !important; }
.industry-card.image-failed::before { opacity: 1 !important; }
.credential-relationship-note { max-width: 100% !important; margin: 12px 0 18px !important; padding: 9px 0 0 !important; border-top: 1px solid rgba(201,22,47,.28) !important; color: #667085 !important; font-size: 12px !important; line-height: 1.65 !important; }
.credential-relationship-note strong { color: #111827 !important; }
.patent-card.image-failed, .patent-card:empty { display: none !important; }
.product-modal { align-items: flex-start !important; overflow-y: auto !important; padding: 24px !important; }
.product-modal-panel { max-height: calc(100vh - 48px) !important; overflow: hidden !important; }
.product-modal-copy { max-height: calc(100vh - 64px) !important; overflow-y: auto !important; padding-bottom: 22px !important; }
@media (max-width: 820px) {
  .hero { min-height: 620px !important; }
  .hero-video { object-position: center top !important; }
  .hero-overlay { background: linear-gradient(180deg, rgba(7,10,15,.08) 0%, rgba(7,10,15,.32) 28%, rgba(7,10,15,.88) 64%, rgba(7,10,15,.98) 100%), radial-gradient(circle at 0% 55%, rgba(201,22,47,.34), transparent 45%) !important; }
  .hero-inner { width: 100% !important; min-height: 620px !important; padding: 176px 18px 26px !important; justify-content: flex-end !important; }
  .hero-title-line { display: block !important; }
  .hero-title-line + .hero-title-line { margin-top: .34em !important; }
  .hero h1 { max-width: 8.6em !important; font-size: clamp(30px, 8.2vw, 38px) !important; line-height: 1.06 !important; }
  html[lang="en"] .hero h1 { max-width: 10.8em !important; font-size: clamp(27px, 7.2vw, 35px) !important; line-height: 1.08 !important; }
  .hero-copy { margin: 16px 0 18px !important; font-size: 14px !important; line-height: 1.72 !important; }
  .hero-actions { width: 100% !important; display: block !important; }
  .hero-actions .btn { width: 100% !important; min-height: 52px !important; }
  .hero-actions .ghost { display: none !important; }
  .hero-stats { width: 100% !important; margin-top: 12px !important; display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .hero-stats div { min-width: 0 !important; padding: 12px 6px !important; }
  .hero-stats strong { font-size: 14px !important; line-height: 1.2 !important; white-space: normal !important; }
  .hero-stats span { margin-top: 4px !important; font-size: 9px !important; line-height: 1.25 !important; }
  .factory { padding-top: 54px !important; padding-bottom: 54px !important; }
  .factory-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .factory-shot-main { grid-column: 1 / -1 !important; aspect-ratio: 16 / 10 !important; }
  .factory-shot { aspect-ratio: 1 / 1.02 !important; border-radius: 8px !important; }
  .factory-shot div { padding: 12px !important; }
  .factory-shot b { font-size: 16px !important; line-height: 1.25 !important; }
  .featured-certificate-grid, .certificate-grid.compact { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; }
  .featured-certificate-card, .certificate-card { min-height: 0 !important; padding: 6px !important; }
  .featured-certificate-card img, .certificate-card img { width: 100% !important; height: 92px !important; object-fit: contain !important; }
  .featured-certificate-card span, .certificate-card span { min-height: 28px !important; font-size: 9px !important; line-height: 1.25 !important; }
  .patent-carousel { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; overflow: visible !important; }
  .patent-card { min-width: 0 !important; width: auto !important; }
  .patent-card img { width: 100% !important; height: 112px !important; object-fit: contain !important; }
  .patent-card > span:last-child { min-height: 28px !important; padding: 6px 2px !important; font-size: 9px !important; line-height: 1.25 !important; }
  .patent-showcase .carousel-controls { display: none !important; }
  .product-modal { padding: 12px !important; }
  .product-modal-panel, .product-modal-copy { max-height: none !important; overflow: visible !important; }
}

/* FINAL-MOBILE-HERO-TITLE-FIX-20260717 */
@media (max-width: 820px) {
  html[lang="zh-CN"] .hero h1,
  html:not([lang="en"]) .hero h1 {
    width: 100% !important;
    max-width: calc(100vw - 36px) !important;
    font-size: clamp(30px, 8.1vw, 36px) !important;
    line-height: 1.06 !important;
    letter-spacing: 0 !important;
    text-wrap: initial !important;
  }

  html[lang="zh-CN"] .hero-title-line,
  html:not([lang="en"]) .hero-title-line {
    display: block !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
  }

  html[lang="zh-CN"] .hero-title-line + .hero-title-line,
  html:not([lang="en"]) .hero-title-line + .hero-title-line {
    margin-top: .32em !important;
  }
}

@media (max-width: 380px) {
  html[lang="zh-CN"] .hero h1,
  html:not([lang="en"]) .hero h1 {
    font-size: clamp(28px, 7.6vw, 33px) !important;
  }
}

/* Factory section layout repair (2026-07-19)
   Keep this final block authoritative: earlier redesign passes contain
   overlapping factory grids that can squeeze the heading to one character. */
.factory {
  display: block !important;
  padding: 76px clamp(24px, 5vw, 82px) 86px !important;
  background: var(--ink) !important;
  color: var(--white) !important;
}

.factory-content {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr) !important;
  grid-template-rows: auto auto auto !important;
  column-gap: clamp(36px, 6vw, 92px) !important;
  align-items: end !important;
  width: 100% !important;
  max-width: 1480px !important;
  margin: 0 auto 38px !important;
  padding: 0 !important;
}

.factory-content > .eyebrow,
.factory-content > h2,
.factory-content > p {
  grid-column: 1 !important;
}

.factory-content > h2 {
  max-width: 820px !important;
  margin: 12px 0 14px !important;
  font-size: clamp(34px, 3vw, 50px) !important;
  line-height: 1.18 !important;
  writing-mode: horizontal-tb !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  white-space: normal !important;
}

.factory-content > p {
  max-width: 820px !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.74) !important;
  line-height: 1.8 !important;
}

.factory-points {
  grid-column: 2 !important;
  grid-row: 1 / 4 !important;
  display: grid !important;
  gap: 12px !important;
  min-width: 0 !important;
}

.factory-gallery {
  display: grid !important;
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 0.65fr)) !important;
  grid-template-rows: repeat(2, clamp(230px, 18vw, 340px)) !important;
  grid-auto-rows: auto !important;
  gap: 14px !important;
  width: 100% !important;
  max-width: 1480px !important;
  margin: 0 auto !important;
}

.factory-shot,
.factory-shot-main {
  grid-column: auto !important;
  grid-row: auto !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  overflow: hidden !important;
  border-radius: 8px !important;
}

.factory-shot-main {
  grid-column: 1 !important;
  grid-row: 1 / 3 !important;
}

.factory-shot img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

@media (max-width: 1100px) {
  .factory-content {
    display: block !important;
  }

  .factory-content > h2 {
    max-width: 760px !important;
  }

  .factory-points {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    margin-top: 24px !important;
  }

  .factory-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: auto !important;
  }

  .factory-shot,
  .factory-shot-main {
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
  }

  .factory-shot-main {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    aspect-ratio: 16 / 9 !important;
  }
}

@media (max-width: 820px) {
  .factory {
    padding: 54px 16px !important;
  }

  .factory-content {
    margin-bottom: 24px !important;
  }

  .factory-content > h2 {
    font-size: 28px !important;
    line-height: 1.22 !important;
    word-break: normal !important;
  }

  .factory-content > p {
    font-size: 13px !important;
    line-height: 1.75 !important;
  }

  .factory-points {
    grid-template-columns: 1fr !important;
    gap: 4px !important;
    margin-top: 20px !important;
  }

  .factory-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .factory-shot {
    aspect-ratio: 1 / 1.02 !important;
  }

  .factory-shot-main {
    grid-column: 1 / -1 !important;
    aspect-ratio: 16 / 10 !important;
  }
}

/* FINAL-MOBILE-HERO-TITLE-LAYOUT-LOCK-20260717 */
@media (max-width: 820px) {
  html[lang="zh-CN"] .hero h1,
  html:not([lang="en"]) .hero h1 {
    width: min(100%, 390px) !important;
    max-width: none !important;
    font-size: clamp(30px, 7.8vw, 35px) !important;
    line-height: 1.08 !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
  }

  html[lang="zh-CN"] .hero h1 .hero-title-line,
  html:not([lang="en"]) .hero h1 .hero-title-line {
    display: block !important;
    width: max-content !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
  }

  html[lang="zh-CN"] .hero h1 .hero-title-line + .hero-title-line,
  html:not([lang="en"]) .hero h1 .hero-title-line + .hero-title-line {
    margin-top: .34em !important;
  }

  html[lang="en"] .hero h1 {
    width: min(100%, 420px) !important;
    max-width: none !important;
    font-size: clamp(27px, 7vw, 34px) !important;
    line-height: 1.08 !important;
  }

  html[lang="en"] .hero h1 .hero-title-line {
    display: block !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 380px) {
  html[lang="zh-CN"] .hero h1,
  html:not([lang="en"]) .hero h1 {
    font-size: clamp(28px, 7.2vw, 32px) !important;
  }
}

/* Product cards + credential carousel refresh (2026-07-19) */
.products .product-grid {
  width: min(1480px, 100%) !important;
  gap: 28px !important;
}

.products .product-card {
  border: 1px solid rgba(23, 35, 55, 0.1) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 18px 46px rgba(23, 35, 55, 0.08) !important;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease !important;
}

.products .product-card:hover {
  border-color: rgba(201, 22, 47, 0.32) !important;
  box-shadow: 0 26px 58px rgba(23, 35, 55, 0.14) !important;
  transform: translateY(-6px) !important;
}

.products .product-visual {
  display: grid !important;
  place-items: center !important;
  min-height: 330px !important;
  aspect-ratio: 16 / 10 !important;
  padding: 0 !important;
  border: 0 !important;
  background:
    radial-gradient(circle at 50% 48%, rgba(77, 128, 190, 0.17), transparent 38%),
    linear-gradient(145deg, #ffffff 0%, #f4f7fb 55%, #e8eef5 100%) !important;
}

.products .product-visual::before {
  position: absolute;
  z-index: 0;
  right: -12%;
  bottom: -42%;
  width: 68%;
  aspect-ratio: 1;
  border: 1px solid rgba(28, 115, 180, 0.1);
  border-radius: 50%;
  content: "";
}

.products .product-visual::after {
  right: 22px !important;
  bottom: 17px !important;
  left: auto !important;
  height: auto !important;
  color: rgba(23, 35, 55, 0.3) !important;
  background: none !important;
  content: "YIYAN LASER" !important;
  font-size: 10px !important;
  letter-spacing: 0.14em !important;
  filter: none !important;
}

.products .product-visual img {
  z-index: 1 !important;
  width: 92% !important;
  max-width: none !important;
  height: 92% !important;
  max-height: none !important;
  padding: 8px 4px 0 !important;
  object-fit: contain !important;
  mix-blend-mode: multiply !important;
  filter: contrast(1.035) saturate(1.03) drop-shadow(0 24px 22px rgba(23, 35, 55, 0.16)) !important;
  transform: none !important;
  transition: transform 0.32s ease !important;
}

.products .product-card:nth-child(2) .product-visual img,
.products .product-card:nth-child(5) .product-visual img {
  width: 88% !important;
  height: 88% !important;
  transform: none !important;
}

.products .product-card:hover .product-visual img {
  transform: scale(1.025) !important;
}

.products .product-card:nth-child(2):hover .product-visual img,
.products .product-card:nth-child(5):hover .product-visual img {
  transform: scale(1.025) !important;
}

.products .product-no,
.products .product-view {
  top: 18px !important;
  min-height: 34px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
}

.products .product-no {
  left: 18px !important;
  width: 44px !important;
  background: rgba(15, 23, 35, 0.9) !important;
}

.products .product-view {
  right: 18px !important;
  padding: 0 14px !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(10px) !important;
}

.products .product-card > div:not(.product-visual):not(.product-icon) {
  padding: 26px 28px 30px !important;
  border-top: 3px solid rgba(201, 22, 47, 0.12) !important;
}

.products .product-card:hover > div:not(.product-visual):not(.product-icon) {
  border-top-color: var(--red) !important;
}

.products .product-card h3 {
  margin: 9px 0 12px !important;
  font-size: clamp(22px, 1.45vw, 28px) !important;
  line-height: 1.3 !important;
}

.patent-showcase {
  overflow: hidden !important;
}

.patent-carousel {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 22px !important;
  padding: 12px 8px 26px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-behavior: smooth !important;
  scroll-snap-type: x mandatory !important;
  scrollbar-width: none !important;
  overscroll-behavior-inline: contain !important;
}

.patent-carousel::-webkit-scrollbar {
  display: none !important;
}

.patent-carousel > .patent-card {
  display: grid !important;
  flex: 0 0 calc((100% - 44px) / 3) !important;
  width: auto !important;
  min-width: 0 !important;
  scroll-snap-align: start !important;
  overflow: hidden !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 16px 36px rgba(23, 35, 55, 0.1) !important;
}

.patent-carousel > .patent-card img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 3 / 4 !important;
  padding: 10px !important;
  border: 8px solid #d8b766 !important;
  object-fit: contain !important;
  background: #fffdf7 !important;
}

.patent-carousel > .patent-card > span:last-child {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 58px !important;
  margin: 0 !important;
  padding: 12px 10px !important;
  color: var(--ink) !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  text-align: center !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}

.patent-card.image-failed,
.patent-card:empty {
  display: none !important;
}

@media (max-width: 820px) {
  .featured-certificate-grid,
  .certificate-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .featured-certificate-card,
  .certificate-card {
    display: grid !important;
    grid-template-rows: auto minmax(40px, auto) !important;
    padding: 5px !important;
    overflow: hidden !important;
    border-radius: 9px !important;
    background: #fff !important;
  }

  .featured-certificate-card img,
  .featured-certificate-card.is-portrait img,
  .featured-certificate-card.is-landscape img,
  .certificate-card img {
    width: 100% !important;
    height: 128px !important;
    object-fit: contain !important;
  }

  .featured-certificate-card span,
  .certificate-card span {
    display: block !important;
    position: static !important;
    inset: auto !important;
    width: auto !important;
    height: auto !important;
    min-height: 36px !important;
    margin-top: 8px !important;
    padding: 3px 2px 2px !important;
    color: var(--ink) !important;
    background: #fff !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  .patent-carousel {
    display: flex !important;
    gap: 8px !important;
    padding: 8px 2px 18px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
  }

  .patent-carousel > .patent-card,
  .patent-carousel > .patent-card:nth-child(n) {
    display: grid !important;
    flex: 0 0 calc((100% - 16px) / 3) !important;
    width: auto !important;
    min-width: 0 !important;
    border-radius: 8px !important;
  }

  .patent-carousel > .patent-card img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 4 !important;
    padding: 3px !important;
    border-width: 4px !important;
  }

  .patent-carousel > .patent-card > span:last-child {
    min-height: 42px !important;
    padding: 6px 2px !important;
    font-size: 9px !important;
    line-height: 1.25 !important;
  }

  .patent-showcase .carousel-controls {
    display: flex !important;
    z-index: 6 !important;
    right: 2px !important;
    left: 2px !important;
  }

  .patent-showcase .carousel-controls button {
    width: 36px !important;
    height: 36px !important;
    font-size: 24px !important;
  }

  .products .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .products .product-card {
    border-radius: 10px !important;
  }

  .products .product-visual {
    min-height: 155px !important;
    aspect-ratio: 4 / 3 !important;
  }

  .products .product-visual img,
  .products .product-card:nth-child(2) .product-visual img,
  .products .product-card:nth-child(5) .product-visual img {
    width: 92% !important;
    height: 92% !important;
    max-height: none !important;
    transform: none !important;
  }

  .products .product-no,
  .products .product-view {
    top: 8px !important;
    min-height: 24px !important;
    font-size: 9px !important;
  }

  .products .product-no {
    left: 8px !important;
    width: 28px !important;
  }

  .products .product-view {
    right: 8px !important;
    padding: 0 7px !important;
  }

  .products .product-card > div:not(.product-visual):not(.product-icon) {
    padding: 13px 12px 16px !important;
  }

  .products .product-card h3 {
    margin: 6px 0 0 !important;
    font-size: 14px !important;
    line-height: 1.32 !important;
  }

  .products .product-card p:not(.tag) {
    display: none !important;
  }
}

@media (max-width: 380px) {
  .featured-certificate-card img,
  .featured-certificate-card.is-portrait img,
  .featured-certificate-card.is-landscape img,
  .certificate-card img {
    height: 116px !important;
  }
}

/* Desktop company-name lock: two intentional lines, no mid-name wrapping. */
@media (min-width: 821px) {
  html[lang="zh-CN"] .hero h1,
  html:not([lang="en"]) .hero h1 {
    display: block !important;
    width: min(100%, 980px) !important;
    max-width: none !important;
    margin: 24px 0 0 !important;
    font-size: clamp(58px, 4.5vw, 78px) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.035em !important;
    text-wrap: nowrap !important;
    text-shadow: 0 10px 32px rgba(0, 0, 0, 0.24) !important;
  }

  html[lang="zh-CN"] .hero h1 .hero-title-line,
  html:not([lang="en"]) .hero h1 .hero-title-line {
    display: block !important;
    width: max-content !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
  }

  html[lang="zh-CN"] .hero h1 .hero-title-line + .hero-title-line,
  html:not([lang="en"]) .hero h1 .hero-title-line + .hero-title-line {
    margin-top: 0.08em !important;
    font-size: 0.88em !important;
    letter-spacing: 0.035em !important;
  }
}

/* Mobile usability: keep quick actions out of the reading area and fit English stats. */
@media (max-width: 820px) {
  .float-tools {
    position: static !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 4px !important;
    width: auto !important;
    margin: 0 18px 18px !important;
    transform: none !important;
  }

  .float-tools a,
  .float-tools button {
    width: auto !important;
    height: 46px !important;
    font-size: 12px !important;
  }

  html[lang="en"] .profile-stats {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 0.62fr) minmax(0, 1.66fr) !important;
  }

  html[lang="en"] .profile-stats div {
    min-width: 0 !important;
    padding-inline: 4px !important;
    text-align: center !important;
  }

  html[lang="en"] .profile-stats div:first-child {
    padding-left: 0 !important;
  }

  html[lang="en"] .profile-stats div:last-child {
    padding-right: 0 !important;
  }

  html[lang="en"] .profile-stats div:last-child strong {
    font-size: clamp(22px, 6.4vw, 26px) !important;
    white-space: nowrap !important;
  }

  html[lang="en"] .profile-stats div:last-child span {
    font-size: 11px !important;
    white-space: normal !important;
  }
}

/* Final requested refinements: fully show product 02 and remove patent captions. */
.products .product-card:nth-child(2) .product-visual img {
  width: 82% !important;
  height: 82% !important;
  object-position: center 46% !important;
  transform: translateY(-2%) !important;
}

.products .product-card:nth-child(2):hover .product-visual img {
  transform: translateY(-2%) scale(1.02) !important;
}

.patent-carousel > .patent-card > span:last-child {
  display: none !important;
}

/* English desktop intro: keep the video card compact and protect long place names. */
@media (min-width: 821px) {
  html[lang="en"] .intro-grid {
    align-items: stretch !important;
  }

  html[lang="en"] .intro-video-card {
    display: flex !important;
    flex-direction: column !important;
    align-self: stretch !important;
    height: auto !important;
    min-height: 0 !important;
  }

  html[lang="en"] .intro-video-card .intro-video,
  html[lang="en"] .intro-video-card video {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  html[lang="en"] .profile-stats {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 0.72fr) minmax(0, 1.46fr) !important;
  }

  html[lang="en"] .profile-stats div {
    min-width: 0 !important;
    padding-inline: 20px !important;
  }

  html[lang="en"] .profile-stats div:first-child {
    padding-left: 0 !important;
  }

  html[lang="en"] .profile-stats div:last-child {
    padding-right: 0 !important;
  }

  html[lang="en"] .profile-stats div:last-child strong {
    font-size: clamp(34px, 2.35vw, 44px) !important;
    white-space: nowrap !important;
  }
}

/* Mobile hero video compatibility: override legacy poster-only rules. */
@media (max-width: 820px) {
  .hero .hero-media {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .hero .hero-video {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
  }
}

/* 2026-07-29 final responsive product guard
   Keep three complete product cards at 100% browser zoom and prevent quick actions
   from covering the third column on medium desktop viewports. */
@media (min-width: 821px) and (max-width: 1250px) {
  .products .product-grid {
    width: calc(100% - 48px) !important;
    margin-right: auto !important;
    margin-left: auto !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }

  .products .product-visual {
    min-height: 0 !important;
    aspect-ratio: 16 / 10 !important;
  }

  .products .product-visual img {
    width: 78% !important;
    height: 78% !important;
    max-width: 78% !important;
    max-height: 78% !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
  }

  .products .product-card:nth-child(2) .product-visual img,
  .products .product-card:nth-child(5) .product-visual img {
    width: 74% !important;
    height: 74% !important;
    max-width: 74% !important;
    max-height: 74% !important;
    object-position: center center !important;
    transform: none !important;
  }

  .products .product-card:hover .product-visual img,
  .products .product-card:nth-child(2):hover .product-visual img,
  .products .product-card:nth-child(5):hover .product-visual img {
    transform: scale(1.015) !important;
  }

  .products .product-card > div:not(.product-visual):not(.product-icon) {
    padding: 22px 20px 25px !important;
  }

  .products .product-card h3 {
    font-size: clamp(18px, 2vw, 23px) !important;
  }

  .float-tools {
    position: static !important;
    inset: auto !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 4px !important;
    width: min(520px, calc(100% - 48px)) !important;
    margin: 0 auto 22px !important;
    transform: none !important;
  }

  .float-tools a,
  .float-tools button {
    width: auto !important;
    height: 48px !important;
    font-size: 13px !important;
  }
}

/* Product imagery should stay clean and technical: remove decorative rings everywhere. */
.products .product-visual::before {
  display: none !important;
  content: none !important;
}

.products .product-visual::after {
  display: none !important;
  content: none !important;
}

.products .product-visual img,
.products .product-card:nth-child(2) .product-visual img,
.products .product-card:nth-child(5) .product-visual img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
  mix-blend-mode: normal !important;
  transform: none !important;
}

.products .product-card:hover .product-visual img,
.products .product-card:nth-child(2):hover .product-visual img,
.products .product-card:nth-child(5):hover .product-visual img {
  transform: scale(1.012) !important;
}

/* 100% browser zoom fix:
   legacy product-visual padding was content-box sizing, so the visual became wider
   than its grid card and the right side of wide machines was clipped. */
.products .product-card {
  min-width: 0 !important;
}

.products .product-visual {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.products .product-visual img {
  display: block !important;
}

/* Mobile header language switch: always visible and easy to recognize. */
.language-btn-mobile {
  display: none;
}

/* Product artwork already includes the brand mark, so keep its top-left corner clear. */
.products .product-no {
  display: none !important;
}

/* Product category labels repeat information already conveyed by the titles. */
.products .product-card .tag {
  display: none !important;
}

.products .product-card h3 {
  margin-top: 0 !important;
}

/* Background video must remain an inline, non-interactive decorative layer. */
.hero-video {
  pointer-events: none !important;
}

.hero .hero-video {
  opacity: 0 !important;
  transition: opacity 360ms ease !important;
}

.hero .hero-video.is-ready {
  opacity: 1 !important;
}

.hero-video::-webkit-media-controls,
.hero-video::-webkit-media-controls-enclosure,
.hero-video::-webkit-media-controls-panel,
.hero-video::-webkit-media-controls-overlay-play-button,
.hero-video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none !important;
  opacity: 0 !important;
}

@media (max-width: 820px) {
  .site-header .brand {
    order: 1;
    min-width: 0 !important;
    max-width: calc(100% - 128px);
  }

  .site-header .language-btn-mobile {
    order: 2;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    min-width: 44px;
    width: 44px;
    height: 44px;
    margin-top: 0 !important;
    margin-right: 8px;
    margin-bottom: 0 !important;
    margin-left: auto;
    padding: 0;
    border: 1px solid currentColor !important;
    border-radius: 8px;
    color: inherit !important;
    background: transparent !important;
    box-shadow: none;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  .site-header .nav-toggle {
    order: 3;
    flex: 0 0 auto;
  }

  .site-header .main-nav {
    order: 4;
  }

  .main-nav > .language-btn:not(.language-btn-mobile) {
    display: none !important;
  }
}
