/* Shared finishing layer: preserve each page's composition and visual stage. */
.neural-stage-page {
    --site-type-section-size: clamp(1.6875rem, 2.5vw, 2.25rem);
    --site-type-module-size: clamp(1.125rem, 1.6vw, 1.25rem);
    --site-type-card-size: 0.9375rem;
    --site-card-gap: 20px;
    --site-card-padding: clamp(20px, 2.2vw, 28px);
    --site-glass-line: rgba(255, 255, 255, 0.12);
}

.neural-stage-page:is(.products-page, .technology-page, .info-page) {
    --site-type-module-size: clamp(1.125rem, 1.6vw, 1.25rem);
}

/* Soften only decorative stages. Text, navigation and cards stay unfiltered.
 * Home already has its own Aurora veil and is deliberately excluded. */
.neural-stage-page:not(.index-page) {
    --stage-soft-blur: 1.5px;
    --stage-reading-veil:
        radial-gradient(ellipse at 28% 44%, rgba(3, 6, 8, 0.4), transparent 70%),
        linear-gradient(180deg, rgba(3, 6, 8, 0.16), rgba(3, 6, 8, 0.08) 48%, rgba(3, 6, 8, 0.5));
}

.neural-stage-page:not(.index-page) > :is(.neural-hero-scene, .data-aero-scene) {
    filter: blur(var(--stage-soft-blur));
    transform: scale(1.008);
    transform-origin: center;
}

.neural-stage-page:not(.index-page)::before {
    background-image: var(--stage-reading-veil), var(--page-stage-image);
    filter: blur(var(--stage-soft-blur));
    transform: scale(1.008);
}

.neural-stage-page:not(.index-page) .neural-hero-veil,
.data-page .data-aero-scene::after {
    background: var(--stage-reading-veil);
}

.neural-stage-page:not(.index-page) :is(.hero-title, .hero-subtitle) {
    text-shadow: 0 2px 10px rgba(3, 6, 8, 0.72);
}

@media (max-width: 640px) {
    .neural-stage-page:not(.index-page) {
        --stage-soft-blur: 1px;
        --stage-reading-veil:
            radial-gradient(ellipse at 32% 40%, rgba(3, 6, 8, 0.44), transparent 74%),
            linear-gradient(180deg, rgba(3, 6, 8, 0.12), rgba(3, 6, 8, 0.14) 50%, rgba(3, 6, 8, 0.5));
    }
}

/* The Chinese statement is one phrase, including on a 320px viewport. */
html:lang(zh) .index-page .neural-hero-statement {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    max-width: 100%;
    font-size: clamp(24px, 5vw, 46px);
    line-height: 1.35;
    white-space: nowrap;
}

html:lang(zh) .index-page .neural-hero-statement > span {
    display: inline;
}

/* Same-level headings share a scale; display wordmarks retain Michroma. */
.neural-stage-page :is(.data-section-heading h2, .community-statement h2) {
    font-size: var(--site-type-section-size);
    font-weight: 600;
    line-height: 1.28;
    letter-spacing: 0;
    text-wrap: balance;
}

.neural-stage-page:is(.index-page, .products-page, .technology-page, .info-page, .data-page) :is(
    .product-overlay h3,
    .feature-content h3,
    .series-content h3,
    .intro-content h3,
    .core-tech-title,
    .info-title,
    .dataset-main h3,
    .release-step h3,
    .community-pillars h3
) {
    font-family: var(--site-type-body);
    font-size: var(--site-type-module-size);
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    text-wrap: pretty;
}

.neural-stage-page :is(
    .product-overview,
    .product-cases,
    .series-features,
    .product-specs,
    .core-tech,
    .tech-summary,
    .info-showcase
) > .container > h2,
.index-page :is(#products, #technology, .team, .awards, #news) > .container > h2 {
    margin-bottom: clamp(28px, 3.5vw, 48px);
}

/* The summary surface aligns with the complete core-technology grid above. */
.neural-stage-page.technology-page .tech-summary .summary-text {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(24px, 3vw, 40px);
    text-align: left;
    line-height: 1.9;
}

.technology-page :is(.tech-intro-grid, .core-tech-grid),
.products-page .series-grid,
.info-page .info-grid {
    gap: var(--site-card-gap);
}

.technology-page :is(.tech-intro-item, .core-tech-item),
.products-page .series-item {
    padding: var(--site-card-padding);
}

.technology-page .tech-intro-item {
    min-width: 0;
}

.technology-page .intro-number {
    margin-bottom: 24px;
}

.technology-page .intro-content h3,
.technology-page .core-tech-title,
.products-page .series-content h3 {
    margin-bottom: 12px;
}

/* Product attributes and technical capabilities use the same numbered layout. */
.products-page .series-item {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.products-page .series-number {
    width: auto;
    color: var(--primary-color);
    font-size: 15px;
}

.products-page .series-content {
    min-width: 0;
    margin-left: 0;
}

.products-page .series-content h3 {
    padding-left: 0;
}

.products-page .series-content p {
    padding-left: 0;
    border-left: 0;
}

/* Let translated product copy grow without clipping the card body. */
.info-page .info-item {
    height: auto;
    min-height: 308px;
    padding: var(--site-card-padding);
    gap: clamp(24px, 3vw, 40px);
}

.info-page .info-content {
    height: auto;
    min-height: 250px;
    overflow: visible;
}

/* News previews use one treatment on Home and on the News listing. */
.index-page #news .news-grid,
.news-page .news-grid {
    gap: var(--site-card-gap);
}

.index-page #news .news-image,
.news-page .news-image {
    height: auto;
    aspect-ratio: 16 / 10;
}

.index-page #news .news-content-text,
.news-page .news-content-text {
    padding: 22px 22px 20px;
}

.index-page #news .news-content h3,
.news-page .news-content h3 {
    min-height: calc(1.5em * 2);
    margin-bottom: 12px;
    font-family: var(--site-type-body);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0;
    text-wrap: pretty;
}

.index-page #news .news-content p,
.news-page .news-content p {
    display: -webkit-box;
    max-height: calc(1.75em * 3);
    color: var(--site-type-body-color);
    font-size: var(--site-type-card-size);
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.index-page #news .news-meta,
.news-page .news-meta {
    min-width: 0;
    gap: 12px;
    padding: 14px 20px;
    align-items: center;
    flex-wrap: wrap;
}

.index-page #news .meta-left,
.news-page .meta-left {
    gap: 8px;
}

.index-page #news .date,
.news-page .date {
    font-size: 12px;
    line-height: 1.5;
}

.index-page #news .tag,
.news-page .tag {
    padding: 4px 7px;
    font-size: 11px;
    line-height: 1.3;
}

.index-page #news .news-meta .view-more,
.news-page .news-meta .view-more {
    min-height: 40px;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.3;
}

/* Keyboard access and touch targets follow the same treatment across pages. */
.neural-stage-page :is(a, button, input, textarea):focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

.neural-stage-page :is(.tag-btn, .page-btn, .back-link) {
    min-height: 44px;
}

.neural-stage-page .footer-content {
    gap: 24px;
    flex-wrap: wrap;
}

.neural-stage-page .footer-info {
    min-width: 0;
    overflow-wrap: anywhere;
}

.neural-stage-page .social-links {
    flex-wrap: wrap;
    gap: 12px;
}

.neural-stage-page .social-link {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

.neural-stage-page .footer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.neural-stage-page .footer-filing { display: inline-block; max-width: 100%; }

.neural-stage-page .footer-employee-login {
    display: inline-flex;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.neural-stage-page .footer-employee-login:is(:hover, :focus-visible) {
    color: #031a14;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.neural-stage-page .footer-employee-login:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

@media (max-width: 560px) {
    .neural-stage-page .footer-actions { width: 100%; }
    .neural-stage-page .footer-actions .view-more { flex: 1; width: auto; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .neural-stage-page .footer-employee-login { transition: none; }
}

@media (max-width: 920px) {
    .neural-stage-page #menu-toggle {
        width: 44px;
        height: 44px;
    }

    .neural-stage-page .navbar-links :is(a, .language-btn) {
        min-height: 44px;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .neural-stage-page {
        --site-card-gap: 16px;
    }

    html:lang(zh) .index-page .neural-hero-statement {
        justify-content: flex-start;
        font-size: clamp(24px, 5vw, 36px);
    }

    .neural-stage-page :is(
        .product-overview,
        .product-cases,
        .series-features,
        .product-specs,
        .tech-intro,
        .core-tech,
        .tech-summary,
        .info-showcase,
        .news-list
    ) {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .info-page .info-content {
        min-height: 0;
    }

    .neural-stage-page .footer-top {
        gap: 24px;
        flex-wrap: wrap;
    }

    .neural-stage-page .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .index-page .neural-hero-actions .neural-hero-secondary {
        min-height: 44px;
    }

    .index-page #news .news-grid {
        width: 100%;
    }

    .index-page #news .news-content-text,
    .news-page .news-content-text {
        padding: 20px;
    }

    /* Long English display titles still fit narrow viewports after translation. */
    .neural-stage-page:not(.index-page):not(.data-page) .hero-title {
        font-size: clamp(26px, 7.5vw, 32px);
        overflow-wrap: anywhere;
    }
}
