/* 研发能力 — 对齐 voyawave.com/zh-hans/capabilities/ */
.page-capabilities {
    background: #fff;
}

/* 首屏：左文右图 */
.cap-hero {
    padding: 48px 0 56px;
    background: #fff;
}
.cap-hero .marginAuto {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px 48px;
}
.cap-hero-main {
    flex: 1 1 420px;
    min-width: 0;
}
.cap-hero-title {
    font-size: 40px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 24px;
    line-height: 1.2;
}
.cap-hero-body {
    font-size: 15px;
    line-height: 1.9;
    color: #555;
    text-align: justify;
}
.cap-hero-body p,
.cap-hero-body .des {
    margin: 0 0 12px;
}
.cap-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 48px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid #eee;
}
.cap-hero-stats .cap-stat {
    flex: 1 1 120px;
    text-align: left;
    padding: 0;
}
.cap-hero-stats .cap-stat-num {
    font-size: 36px;
    font-weight: 700;
    color: #b81d22;
    line-height: 1;
    margin-bottom: 10px;
}
.cap-hero-stats .cap-stat-num em {
    font-size: 22px;
    font-style: normal;
    font-weight: 600;
    margin-left: 2px;
}
.cap-hero-stats .cap-stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}
.cap-hero-visual {
    flex: 1 1 380px;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.cap-hero-visual img {
    max-width: 100%;
    width: min(520px, 100%);
    height: auto;
    display: block;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.08));
}

/* 建立研发实验室 — 四图 */
.cap-lab {
    padding: 56px 0 64px;
    background: #fff;
}
.cap-section-head {
    text-align: center;
    margin-bottom: 36px;
}
.cap-section-head .name {
    font-size: 34px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}
.cap-lab-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.cap-lab-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    display: block;
    text-decoration: none;
    color: #fff;
}
.cap-lab-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.cap-lab-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.55) 72%, rgba(0, 0, 0, 0.75) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px 16px;
    box-sizing: border-box;
}
.cap-lab-overlay h3 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
}
.cap-lab-overlay p {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    opacity: 0.92;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease, margin 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
    .cap-lab-item:hover img {
        transform: scale(1.06);
    }
    .cap-lab-item:hover .cap-lab-overlay p {
        max-height: 120px;
        margin-top: 4px;
        opacity: 1;
    }
}

/* 图文交替 */
.cap-blocks {
    padding: 0 0 72px;
}
.cap-block {
    padding: 56px 0;
}
.cap-block--alt {
    background: #f4f7fb;
}
.cap-block .marginAuto {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 48px 56px;
}
.cap-block-text {
    flex: 1 1 340px;
    min-width: 0;
}
.cap-block-text h3 {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 20px;
    padding-bottom: 14px;
    position: relative;
}
.cap-block-text h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 3px;
    background: #b81d22;
    border-radius: 2px;
}
.cap-block-text p {
    margin: 0;
    font-size: 15px;
    line-height: 1.9;
    color: #555;
    text-align: justify;
    white-space: pre-line;
}
.cap-block-media {
    flex: 1 1 340px;
    min-width: 0;
}
.cap-block-media .cap-img {
    border-radius: 24px;
    overflow: hidden;
    background: #e8ecf0;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}
.cap-block-media .cap-img img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
}
.cap-block.cap-block--reverse .marginAuto {
    flex-direction: row-reverse;
}

@media only screen and (max-width: 1024px) {
    .cap-lab-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cap-block.cap-block--reverse .marginAuto {
        flex-direction: column;
    }
    .cap-hero-title {
        font-size: 32px;
    }
}

@media only screen and (max-width: 768px) {
    .cap-hero {
        padding: 32px 0 40px;
    }
    .cap-hero-title {
        font-size: 26px;
    }
    .cap-hero-stats {
        gap: 20px;
    }
    .cap-hero-stats .cap-stat {
        flex: 1 1 calc(50% - 12px);
    }
    .cap-lab-grid {
        grid-template-columns: 1fr;
    }
    .cap-lab-item {
        aspect-ratio: 16 / 10;
    }
    .cap-lab-overlay p {
        max-height: none;
        opacity: 0.95;
    }
    .cap-section-head .name {
        font-size: 24px;
    }
    .cap-block {
        padding: 36px 0;
    }
    .cap-block-text h3 {
        font-size: 22px;
    }
    .cap-block-media .cap-img {
        border-radius: 16px;
    }
}
