/* Home only: the existing inner-page stylesheet remains independent. */
/* Entrance motion only runs after an element reaches the viewport. */
.home-enter {
  animation: home-enter-rise 680ms cubic-bezier(.22, 1, .36, 1) var(--home-enter-delay, 0ms) both;
}
.home-enter.home-enter--fade { animation-name: home-enter-fade; }
@keyframes home-enter-rise {
  from { opacity: 0; translate: 0 26px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes home-enter-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (max-width: 639px) {
  .home-enter { animation-duration: 520ms; }
  @keyframes home-enter-rise {
    from { opacity: 0; translate: 0 16px; }
    to { opacity: 1; translate: 0 0; }
  }
}
@media (prefers-reduced-motion: reduce), print {
  .home-enter { animation: none !important; }
}

/* ============ Variables & Base ============ */
:root {
  --green: #00b99e;
  --company-green: #00b99e;
  --green-dark: #008b79;
  --ink: #222827;
  --muted: #747f80;
  --dark: #003e43;
  --pale: #effbfc;
  --container: 1450px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd { margin: 0; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid #008477;
  outline-offset: 5px;
}
button { border: 0; }
a, button { touch-action: manipulation; }
[hidden] { display: none !important; }
/* ============ Layout & shared ============ */
.container {
  width: calc(100% - 96px);
  max-width: var(--container);
  margin-inline: auto;
}

.company-page {
    width: 100%;
    overflow: hidden;
    background: #fff;
    font-family: "Microsoft YaHei", Arial, sans-serif;
    color: var(--company-ink);
}

.company-hero {
    position: relative;
}

.company-hero img {
    display: block;
    width: 100%;
    height: auto;
}

.company-hero-text {
    position: absolute;
    top: 62%;
    right: 15%;
    transform: translateY(-50%);
    color: #fff;
    text-align: left;
    z-index: 2;
}

.company-hero-text h1 {
    margin: 0 0 12px 0;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.company-hero-text p {
    margin: 0;
    font-size: 1.1rem;
    letter-spacing: 1px;
    opacity: 0.92;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.company-container {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

.company-section {
    position: relative;
    margin-top: 50px;
}

.company-section-title {
    position: relative;
    z-index: 1;
    margin: 0 0 25px;
    text-align: center;
}

.company-section-title::before {
    content: attr(data-en);
    position: absolute;
    left: 50%;
    top: -30px;
    z-index: -1;
    transform: translateX(-50%);
    color: rgba(8, 191, 168, .07);
    font-size: 54px;
    font-weight: 800;
    letter-spacing: 7px;
    white-space: nowrap;
}

.company-section-title h2 {
    margin: 0;
    color: #202932;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 2px;
}

.company-section-title h2 span {
    color: var(--company-green);
}

.company-section-title i {
    display: block;
    width: 52px;
    height: 8px;
    margin: 16px auto 0;
    border-radius: 99px;
    background: var(--company-green);
}


.company-about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 292px;
    gap: 96px;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding-left: 30px;
    padding-right: 30px;
}

.company-about-text {
    color: #4b565f;
    font-size: 24px;
    line-height: 2.15;
    text-align: justify;
    overflow-wrap: anywhere;
}

.company-phone-frame {
    position: relative;
    width: 272px;
    padding: 14px 12px 28px;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 8px 34px rgba(30, 88, 82, .12);
}

.company-phone-frame video {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    border-radius: 22px;
    background: #061413;
}

.company-phone-caption {
    margin: 10px 0 0;
    color: #9aa7aa;
    font-size: 10px;
    text-align: center;
}

.company-service-band {
    position: relative;
    padding: 30px 0 30px;
    background: url("./../images/compay-desc.webp") no-repeat center/cover;;
    overflow: hidden;
}

.company-service-band::before,
.company-service-band::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .22);
}

.company-service-band::before {
    width: 520px;
    height: 520px;
    left: -160px;
    top: -245px;
}

.company-service-band::after {
    width: 430px;
    height: 430px;
    right: -130px;
    bottom: -230px;
}

.company-service-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    grid-template-rows: auto auto;
    gap: 10px 20px;
    align-items: end;
    min-height: 320px;
}

.company-service-visual {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: end;
    margin-left: 60px;
    margin-bottom: 30px;
}

.company-dashboard {
    position: relative;
    width: 290px;
    height: 160px;
    margin: 14px auto 0;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 16px;
    background: rgba(255, 255, 255, .16);
    box-shadow: 0 18px 42px rgba(0, 56, 65, .22);
}

.company-dashboard::before {
    content: "";
    position: absolute;
    left: 30px;
    top: 32px;
    width: 84px;
    height: 84px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .72);
}

.company-dashboard::after {
    content: "";
    position: absolute;
    right: 26px;
    top: 38px;
    width: 120px;
    height: 14px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 32px 0 rgba(255, 255, 255, .45), 0 64px 0 rgba(255, 255, 255, .28);
}

.company-band-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 5px 20px;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    border: 1px solid rgba(2, 178, 160, .72);
    border-radius: 999px;
    white-space: nowrap;
}

.company-band-pill::before {
    content: "★";
    font-size: 30px;
}

.company-band-years {
    margin-top: 10px;
    font-size: 28px;
     color: #fff;
    letter-spacing: 4px;
    white-space: nowrap;
}

.company-service-copy {
    grid-column: 2;
    grid-row: 1;
     color: #fff;
    align-self: start;
    margin: 0 0 0 -80px;
    font-size: 20px;
    line-height: 2;
    text-align: justify;
    overflow-wrap: anywhere;
    padding-right: 50px;
}

.company-anniversary {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    align-self: center;
    margin-right:150px;
}

.company-anniversary img {
    display: block;
    width: 210px;
}

.company-gallery-section {
    background:
        radial-gradient(circle at -40px 38%, rgba(15, 191, 168, .1), transparent 230px),
        radial-gradient(circle at calc(100% + 20px) 6%, rgba(15, 191, 168, .12), transparent 220px),
        #fff;
}

.company-photo-grid {
    display: grid;
    grid-template-columns: repeat(20, 1fr);
    gap: 14px;
    padding-left: 30px;
    padding-right: 30px;
}

.company-photo {
    margin: 0;
    height: 260px;
    overflow: hidden;
    background: #eef6f5;
}

.company-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform .35s ease;
}

.company-photo:hover img {
    transform: scale(1.06);
}

/* 行1: 6+3+3+4+4 | 行2: 6+4+4+6 | 行3: 6+4+6+4 (共20列) */
.company-photo:nth-child(1) { grid-column: span 6; }
.company-photo:nth-child(2) { grid-column: span 3; }
.company-photo:nth-child(3) { grid-column: span 3; }
.company-photo:nth-child(4) { grid-column: span 4; }
.company-photo:nth-child(5) { grid-column: span 4; }

.company-photo:nth-child(6) { grid-column: span 6; }
.company-photo:nth-child(7) { grid-column: span 4; }
.company-photo:nth-child(8) { grid-column: span 4; }
.company-photo:nth-child(9) { grid-column: span 6; }

.company-photo:nth-child(10) { grid-column: span 6; }
.company-photo:nth-child(11) { grid-column: span 4; }
.company-photo:nth-child(12) { grid-column: span 6; }
.company-photo:nth-child(13) { grid-column: span 4; }

/* 空白行根因: figure 上有默认 margin，且 row height 由最高的 auto 图决定，
   其余固定 260px 的图无法填满行高，上下留白。全部统一 260px + cover。 */
.company-photo:nth-child(1) img,
.company-photo:nth-child(6) img,
.company-photo:nth-child(9) img,
.company-photo:nth-child(10) img,
.company-photo:nth-child(12) img {
    object-position: center;
}

.company-certs {
    background: url("./../images/cert-bg.webp") no-repeat center bottom / 100% auto;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 34px 30px;
     padding-left: 30px;
    padding-right: 30px;
}

.cert-card {
    text-align: center;
}

.cert-card img {
    display: block;
    width: 100%;
    height: auto;
    background: #fff;
    border: 7px solid #9fe8df;
    box-shadow: 0 10px 22px rgba(41, 123, 116, .13);
    transition: transform .3s ease, box-shadow .3s ease;
    cursor: pointer;
}

.cert-card:hover img {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(41, 123, 116, .22);
}

/* 证书图片放大查看 */
.cert-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .85);
    align-items: center;
    justify-content: center;
}

.cert-lightbox.show {
    display: flex;
}

.cert-lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border: 4px solid rgba(159, 232, 223, .5);
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.show{
    width: 100%;
}
.cert-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    user-select: none;
}

.cert-lightbox-close:hover {
    color: #9fe8df;
}

/* 视频弹层播放 */
.video-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .9);
    align-items: center;
    justify-content: center;
}

.video-lightbox.show {
    display: flex;
}

.video-lightbox-video {
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    border: 4px solid rgba(159, 232, 223, .5);
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.company-phone-frame video {
    cursor: pointer;
}

.cert-paper {
    position: relative;
    min-height: 144px;
    padding: 18px 16px;
    background: #f8fffd;
    border: 7px solid #9fe8df;
    box-shadow: 0 10px 22px rgba(41, 123, 116, .13);
}

.cert-paper::before {
    content: "";
    position: absolute;
    inset: 9px;
    border: 1px solid rgba(61, 182, 171, .45);
}

.cert-paper::after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: 15px;
    width: 34px;
    height: 34px;
    border: 3px solid rgba(215, 47, 47, .65);
    border-radius: 50%;
}

.cert-paper h3 {
    position: relative;
    z-index: 1;
    margin: 4px 0 12px;
    color: #2b6f69;
    font-size: 13px;
    font-weight: 800;
}

.cert-paper p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #6e7b84;
    font-size: 10px;
    line-height: 1.7;
}

.cert-card figcaption {
    margin-top: 12px;
    color: #353f46;
    font-size: 13px;
    white-space: nowrap;
}

.cert-more {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 198px;
    color: #7b8d94;
    font-size: 20px;
}

.company-faq {
    background: #fff;
}

.company-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 58px;
     padding-left: 30px;
    padding-right: 30px;
    max-width: 100%;
    margin: 0 auto;
}

.company-faq-item {
    border-radius: 10px;
    background: #effaf8;
    overflow: hidden;
}

.company-faq-question {
    display: flex;
    align-items: center;
    height: 50px;
    color: #26343d;
    font-size: 15px;
    font-weight: 700;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.company-faq-more {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    border-radius: 10px;
    border: 1px solid var(--company-green);
    background: #fff;
    color: var(--company-green);
    font-size: 15px;
    font-weight: 700;
}

.company-faq-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-left: 8px;
    margin-right: 18px;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    background: var(--company-green);
    box-shadow: 0 5px 14px rgba(8, 191, 168, .36);
    flex-shrink: 0;
}

.company-faq-arrow {
    margin-left: auto;
    margin-right: 20px;
    color: #2f7570;
    font-size: 18px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.company-faq-item.active .company-faq-arrow {
    transform: rotate(180deg);
}

.company-faq-answer {
    display: none;
    padding: 0 20px 16px 68px;
}

.company-faq-answer p {
    margin: 0;
    color: #5a6b73;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;
}

@media (max-width: 1024px) {
    .company-about-grid,
    .company-service-inner {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        gap: 34px;
        text-align: center;
        min-height: 0;
    }

    .company-service-visual,
    .company-service-copy,
    .company-anniversary,
    .company-phone-frame {
        grid-column: auto;
        grid-row: auto;
        align-self: auto;
        justify-self: center;
        margin-left: 0;
    }
    .company-anniversary{
         margin-right:20px;
    }
    .cert-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .company-service-copy{
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .company-container {
        width: min(100% - 28px, 520px);
    }

    .company-section {
        padding: 0px 0;
    }

    .company-hero-text {
        right: 5%;
        left: 5%;
        text-align: center;
    }

    .company-hero-text h1 {
        font-size: 1.5rem;
    }

    .company-hero-text p {
        font-size: 0.8rem;
        letter-spacing: 0.5px;
    }

    .company-section-title::before {
        top: -18px;
        font-size: 34px;
        letter-spacing: 3px;
    }

    .company-section-title h2 {
        font-size: 24px;
    }

    .company-about-text {
        font-size: 16px;
        line-height: 1.9;
    }

    .company-service-inner {
        grid-template-columns: 1fr;
    }

    .company-service-visual {
        margin: 0;
        text-align: center;
    }

    .company-band-pill {
        margin-top: 0;
        padding: 6px 16px;
        font-size: 15px;
        line-height: 1.5;
        white-space: normal;
    }

    .company-band-pill::before {
        font-size: 18px;
    }

    .company-band-years {
        margin-top: 12px;
        font-size: 18px;
        letter-spacing: 2px;
    }

    .company-photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding-left: 0;
        padding-right: 0;
    }

    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 10px;
        padding-left: 0;
        padding-right: 0;
    }

    .company-faq-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .cert-card img {
        border-width: 5px;
    }

    .company-photo,
    .company-photo:nth-child(n) {
        grid-column: span 1;
        margin: 0;
        height: 140px;
    }

    .company-photo:nth-child(3) {
        display: none;
    }

    .cert-card figcaption {
        white-space: normal;
    }
}
