/* About page — layout tokens; brand colors: design-system/tokens.css */

.about-page {
    --about-max: min(var(--rm-container-full), 100%);
    --about-gutter: var(--rm-gutter-fluid);
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: clip;
    color: var(--about-text);
}

.about-container {
    width: 100%;
    max-width: var(--about-max);
    margin: 0 auto;
    padding-left: var(--about-gutter);
    padding-right: var(--about-gutter);
    box-sizing: border-box;
}

.about-hero,
.about-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.about-eyebrow {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--about-brand);
}

.about-heading {
    /* margin: 0 0 20px; */
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--about-text);
}

.about-heading--center {
    text-align: center;
    margin-bottom: 32px;
}

.about-heading--light {
    color: #fff;
}

.about-lead,
.about-body {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--about-text-muted);
}

.about-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--about-brand);
    text-decoration: none;
}

.about-link:hover {
    color: var(--about-brand-dark);
}

.about-section {
    padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.about-section:nth-child(even) {
    background: var(--about-brand-muted);
}

/* 全球市场 — 始终白底 */

.about-page > section.about-global::before {
    content: "";
    display: block;
    height: 1px;
    margin: 0 auto;
    max-width: min(1480px, calc(100% - 2 * clamp(20px, 4vw, 80px)));
    background: linear-gradient(90deg, transparent, rgba(0, 133, 111, 0.12), transparent);
}

/* ── Hero ── */
.about-hero {
    position: relative;
    width: 100%;
    max-width: none;
    min-height: min(88vh, 820px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
}

.about-hero__media {
    position: absolute;
    inset: 0;
    background: #061512;
}

.about-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-hero__mobile-poster {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 35, 30, 0.55) 0%, rgba(0, 45, 38, 0.72) 45%, rgba(0, 30, 26, 0.85) 100%);
}

.about-hero__content.rm-hero__content {
    position: relative;
    z-index: 2;
    padding: 120px var(--about-gutter) 80px;
    max-width: 900px;
}

/* Hero title typography — design-system/hero.css (.rm-hero__title) */
.rm-hero__title {
    margin: 0 0 1.5rem;
    font-size: var(--rm-hero-title, clamp(1.75rem, 4.5vw, 3rem));
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    text-wrap: balance;
}

.rm-hero__title-line {
    display: block;
    color: #fff;
    /* 允许换行，避免长标题（尤其 en/es 或较长中文）横向溢出被 about-hero 的
       overflow:hidden 裁剪隐藏；overflow-wrap 兜底超长单词/连续字符断行 */
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.rm-hero__title-accent {
    color: var(--rm-color-brand-bright, #6ee7c7);
    margin-top: 0.5rem;
}

.about-hero__video-desc {
    margin: 1rem 0 0;
    max-width: 640px;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
     [lang="es"]  .rm-hero__title {
        font-size: 1.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-actions {
        flex-direction: row;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .solutions-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }

     [lang="es"]  .rm-hero__title {
        font-size: 2rem;
    }
    
    .solutions-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}


.text-brand{
    color: var(--about-brand);
    margin-bottom: 20px;
}

.about-hero__play {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    backdrop-filter: blur(6px);
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.25s, border-color 0.25s;
}

.about-hero__play:hover {
    background: rgba(0, 133, 111, 0.35);
    border-color: var(--about-brand-bright);
    color: #fff;
}

.about-hero__play-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--about-brand-light);
}

.about-hero__scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.75);
}

.about-hero__scroll-line {
    display: block;
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent);
    animation: about-scroll-pulse 2s ease-in-out infinite;
}

@keyframes about-scroll-pulse {
    0%, 100% { opacity: 0.4; transform: scaleY(0.85); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ── Intro ── */
.about-intro__grid {
    display: grid;
    gap: 40px;
    align-items: center;
    margin-bottom: 56px;
}

@media (min-width: 992px) {
    .about-intro__grid {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

.about-intro__img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    box-shadow: 0 20px 50px rgba(0, 133, 111, 0.12);
}

.about-intro__video {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #0a2520;
    box-shadow: 0 20px 50px rgba(0, 133, 111, 0.12);
    aspect-ratio: 4 / 3;
    font-family: inherit;
}

.about-intro__video:focus-visible {
    outline: 2px solid var(--about-brand);
    outline-offset: 3px;
}

.about-intro__video-poster {
    display: block;
    width: 100%;
    height: 100%;
}

.about-intro__video-poster.isp-video-card__poster,
.about-intro__video-poster .isp-video-card__poster {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.about-intro__video-poster .isp-video-card__poster-img,
.about-intro__video-poster .isp-video-card__poster-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-intro__video-poster .isp-video-card__poster-video {
    pointer-events: none;
}

.about-intro__video-poster .isp-video-card__poster-fallback {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0a2520, #123830);
}

.about-intro__video-poster .isp-video-card__poster-fallback[hidden] {
    display: none;
}

.about-intro__video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.22);
    transition: background 0.25s;
    pointer-events: none;
}

.about-intro__video-play svg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    padding-left: 4px;
    border-radius: 50%;
    background: var(--about-brand-light);
    color: #fff;
    box-shadow: 0 8px 32px rgba(0, 133, 111, 0.45);
    transition: transform 0.2s, background 0.2s;
}

.about-intro__video:hover .about-intro__video-play {
    background: rgba(0, 0, 0, 0.32);
}

.about-intro__video:hover .about-intro__video-play svg {
    transform: scale(1.06);
    background: var(--about-brand);
}

.about-stats__title {
    margin: 0 0 28px;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    color: var(--about-text);
}

.about-stats__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 768px) {
    .about-stats__grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
    .about-stats__grid--count-1 { grid-template-columns: 1fr; max-width: 280px; margin-inline: auto; }
    .about-stats__grid--count-2 { grid-template-columns: repeat(2, 1fr); }
    .about-stats__grid--count-3 { grid-template-columns: repeat(3, 1fr); }
    .about-stats__grid--count-4 { grid-template-columns: repeat(4, 1fr); }
    .about-stats__grid--count-5 { grid-template-columns: repeat(5, 1fr); }
}

.about-stats__item {
    padding: 24px 16px;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0, 133, 111, 0.12);
}

.about-stats__value {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--about-brand);
    line-height: 1.2;
}

.about-stats__label {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--about-text-muted);
}

/* ── Innovation ── */
.about-innovation {
    background: #fff !important;
}

.about-innovation__grid {
    display: grid;
    gap: 40px;
    align-items: center;
}

@media (min-width: 992px) {
    .about-innovation__grid {
        grid-template-columns: 1fr 1fr;
        gap: 46px;
    }
}

.about-innovation__media img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    aspect-ratio: 16 / 10;
}

.about-innovation__text .about-heading strong {
    display: block;
    color: var(--about-brand);
    font-weight: 700;
    text-wrap: balance;
}


.about-values__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(0, 133, 111, 0.2);
}

.about-values__tab {
    flex: 1;
    min-width: 120px;
    padding: 14px 20px;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--about-text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s, border-color 0.2s;
}

.about-values__tab.is-active,
.about-values__tab:hover {
    color: var(--about-brand);
    border-bottom-color: var(--about-brand);
}

.about-values__panel {
    display: none;
    padding: 8px 0;
}

.about-values__panel.is-active {
    display: block;
}

.about-values__content {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.9;
    color: var(--about-text-muted);
}

/* ── History timeline tabs ── */
.about-chain {
    padding-top: 72px;
    padding-bottom: 80px;
}

.about-chain__header {
    text-align: center;
    margin-bottom: 40px;
}

.about-chain__subtitle {
    margin: -8px 0 0;
    font-size: 15px;
    color: var(--about-text-muted);
    letter-spacing: 0.06em;
}

.about-chain__tabs-wrap {
    margin-bottom: 36px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.about-chain__tabs-wrap::-webkit-scrollbar {
    display: none;
}

.about-chain__tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
    justify-content: center;
    min-width: min-content;
    padding: 4px 2px 8px;
}

.about-chain__tab-sep {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    flex-shrink: 0;
    color: rgba(0, 133, 111, 0.42);
    padding: 0 4px;
    line-height: 0;
}

.about-chain__tab-sep svg,
.about-chain__tab-sep img {
    display: block;
    width: 1rem;
    height: 1rem;
}

.about-chain__tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1 1 160px;
    max-width: 240px;
    min-height: 52px;
    padding: 12px 20px;
    border: 1px solid rgba(0, 133, 111, 0.16);
    border-radius: 999px;
    background: #fff;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    color: var(--about-text-muted);
    box-shadow: 0 2px 8px rgba(0, 40, 32, 0.04);
    transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.about-chain__tab:hover:not(.is-active) {
    border-color: rgba(0, 133, 111, 0.35);
    color: var(--about-brand);
    box-shadow: 0 4px 14px rgba(0, 133, 111, 0.08);
}

.about-chain__tab.is-active {
    background: var(--about-brand);
    border-color: var(--about-brand);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 133, 111, 0.28);
}

.about-chain__tab-index {
    flex-shrink: 0;
    min-width: 2em;
    font-size: 0.9375rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
    color: var(--about-brand);
    transition: color 0.22s ease;
}

.about-chain__tab.is-active .about-chain__tab-index {
    color: #fff;
}

.about-chain__tab-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: inherit;
}

.about-chain__cards {
    position: relative;
}

.about-chain__card {
    display: none;
    animation: aboutChainFadeIn 0.4s ease;
}

.about-chain__card.is-active {
    display: block;
}

@keyframes aboutChainFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.about-chain__card-grid {
    display: grid;
    gap: 0;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 40, 32, 0.08);
    border: 1px solid rgba(0, 133, 111, 0.08);
}

@media (min-width: 992px) {
    .about-chain__card-grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        align-items: start;
    }
}

.about-chain__card-media-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    background: linear-gradient(165deg, var(--rm-color-surface, #f4faf8) 0%, var(--rm-color-brand-muted) 100%);
    align-self: start;
}

/* About 历程 Tab：只保留第一张主图，隐藏其余 */
.about-chain__card-media-stack .about-chain__card-media:not(:first-child) {
    display: none;
}

@media (min-width: 992px) {
    .about-chain__card-media-stack {
        gap: 16px;
        padding: 16px;
    }
}

.about-chain__card-media {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: visible;
    background: transparent;
    flex-shrink: 0;
}

.about-chain__photo-btn {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 40, 32, 0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.about-chain__photo-btn:hover {
    box-shadow: 0 8px 28px rgba(0, 40, 32, 0.14);
    transform: translateY(-1px);
}

.about-chain__photo-btn:focus-visible {
    outline: 2px solid var(--about-brand);
    outline-offset: 3px;
}

.about-chain__card-media img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.about-chain__photo-hint {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 77, 65, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.about-chain__photo-hint img {
    width: 0.75rem;
    height: 0.75rem;
    filter: brightness(0) invert(1);
}

.about-chain__photo-btn:hover .about-chain__photo-hint,
.about-chain__photo-btn:focus-visible .about-chain__photo-hint {
    opacity: 1;
    transform: translateY(0);
}

.about-chain__card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 4vw, 48px);
}

.about-chain__card-year {
    margin: 0 0 20px;
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--about-text);
    line-height: 1.35;
}

.about-chain__card-phase {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--about-brand);
}

.about-chain__events {
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-chain__event {
    padding: 16px 0;
    border-top: 1px solid rgba(0, 133, 111, 0.08);
}

.about-chain__event:first-child {
    padding-top: 0;
    border-top: 0;
}

.about-chain__event-year {
    display: block;
    margin-bottom: 8px;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--about-brand);
}

.about-chain__event-text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--about-text-muted);
}

.about-chain__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--about-brand);
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.about-chain__more:hover {
    color: var(--about-brand-dark);
    gap: 10px;
}

.about-chain__more img {
    display: block;
    width: 1rem;
    height: 1rem;
}

.about-chain__card-text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.85;
    color: var(--about-text-muted);
}

/* ── Global ── */
.about-global__grid {
    display: grid;
    gap: 40px;
    align-items: center;
}

@media (min-width: 992px) {
    .about-global__grid {
        grid-template-columns: 1fr 1.2fr;
    }
}

.about-global__highlight {
    display: inline-flex;
    flex-direction: column;
    margin-top: 28px;
    padding: 20px 28px;
    background: var(--about-brand-muted);
    border-radius: 12px;
}

.about-global__highlight-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--about-brand);
    line-height: 1.2;
}

.about-global__highlight-label {
    font-size: 14px;
    color: var(--about-text-muted);
}

.about-global__map img {
    width: 100%;
    border-radius: 12px;
}

.about-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: var(--about-brand);
    border-radius: 999px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.about-btn:hover {
    background: var(--about-brand-dark);
    color: #fff;
}

/* ── Mobile ── */
@media (max-width: 767px) {
    .about-hero {
        min-height: 70vh;
    }

    .about-hero__video {
        display: none;
    }

    .about-hero__mobile-poster {
        display: block;
    }

    .about-hero__content.rm-hero__content {
        padding-top: 100px;
        padding-bottom: 64px;
    }

    .about-stats__grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-chain__card-year {
        font-size: 1.5rem;
    }

    .about-chain__tabs {
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        gap: 6px;
    }

    .about-chain__tab-sep svg,
    .about-chain__tab-sep img {
        width: 1rem;
        height: 1rem;
    }

    .about-chain__tab {
        flex: 0 0 auto;
        min-width: 148px;
        max-width: 220px;
        padding: 10px 16px;
        min-height: 48px;
    }

    .about-chain__tab-title {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-hero__scroll-line {
        animation: none;
    }

    .about-chain__card {
        transition: none;
        animation: none;
    }
}

/* ── 视频弹窗 Modal ── */
.reemoon-video-modal[hidden] {
    display: none !important;
}
.reemoon-video-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 3vw, 32px);
}
.reemoon-video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 20, 17, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.reemoon-video-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    max-height: min(90vh, 720px);
    padding: clamp(20px, 3vw, 28px);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0, 35, 30, 0.35);
    overflow: auto;
}
.reemoon-video-modal__title {
    margin: 0 48px 16px 0;
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: 700;
    line-height: 1.35;
    color: var(--about-brand-dark, var(--rm-color-brand-800));
}
.reemoon-video-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: var(--about-brand-dark);
    background: var(--about-brand-muted);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.reemoon-video-modal__close svg {
    width: 20px;
    height: 20px;
}
.reemoon-video-modal__close:hover {
    background: var(--about-brand);
    color: #fff;
    transform: scale(1.05);
}
.reemoon-video-modal .reemoon-player__stage {
    background: var(--about-brand-muted, #f3f6f5);
    box-shadow: inset 0 0 0 1px rgba(0, 77, 65, 0.08);
    border-radius: 8px;
    overflow: hidden;
}
.reemoon-video-modal .reemoon-player__stage video {
    display: block;
    width: 100%;
    height: auto;
    background: #fff;
}

@media (max-width: 640px) {
    .reemoon-video-modal {
        padding: 0;
        align-items: flex-end;
    }
    .reemoon-video-modal__dialog {
        width: 100%;
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
    }
}
