.yanfa-page {
    background:
            radial-gradient(circle at top, rgba(34, 112, 255, 0.08), transparent 28%),
            linear-gradient(180deg, #f7fbff 0%, #ffffff 18%, #ffffff 100%);
    color: #1e293b;
    overflow: hidden;
}

.yanfa-page,
.yanfa-page * {
    box-sizing: border-box;
}

.yanfa-shell {
    width: min(1680px, calc(100% - 80px));
    margin: 0 auto;
}

.yanfa-section {
    position: relative;
}

.yanfa-hero {
    background:
            radial-gradient(circle at center top, rgba(82, 157, 255, 0.22), transparent 45%),
            linear-gradient(180deg, #f2f7ff 0%, #f8fbff 100%);
}

.yanfa-hero__image {
    display: block;
    width: 100%;
    height: auto;
}

.yanfa-overview {
    padding: clamp(28px, 3vw, 56px) 0 clamp(12px, 1.6vw, 22px);
}

.yanfa-panel {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: clamp(24px, 2vw, 32px);
    align-items: stretch;
    margin-bottom: clamp(16px, 1.6vw, 26px);
    padding: clamp(24px, 2.4vw, 38px);
    border-radius: clamp(22px, 2vw, 32px);
    background: #E5F1FF;
}

.yanfa-panel__intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.yanfa-panel__icon {
    width: clamp(64px, 5vw, 92px);
    height: clamp(64px, 5vw, 92px);
    object-fit: contain;
    margin-bottom: clamp(18px, 1.6vw, 26px);
}

.yanfa-panel__title {
    margin: 0 0 12px;
    font-size: clamp(34px, 2vw, 48px);
    font-weight: 700;
    line-height: 1.14;
    color: #1f2937;
}

.yanfa-panel__subtitle {
    margin: 0;
    font-size: clamp(18px, 1.5vw, 24px);
    line-height: 1.6;
    color: #475569;
}

.yanfa-panel__items {
    display: flex;
    gap: clamp(16px, 1.2vw, 20px);
    flex-direction: column;
}

.yanfa-feature-card {
    display: flex;
    gap: clamp(18px, 1.6vw, 28px);
    align-items: center;
    border-radius: clamp(16px, 1.4vw, 24px);
}

.yanfa-feature-card__media {
    flex: 0 0 44%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(150px, 14vw, 220px);
    padding: 4px;
    border-radius: clamp(16px, 1.3vw, 22px);
}

.yanfa-feature-card__media img {
    display: block;
    width: 100%;
    height: auto;
}

.yanfa-feature-card__body {
    flex: 1;
}

.yanfa-feature-card__title {
    margin: 0 0 8px;
    font-size: clamp(24px, 2vw, 34px);
    color: #333;
    line-height: 1.24;
}

.yanfa-feature-card__text {
    margin: 0;
    font-size: clamp(16px, 1.15vw, 22px);
    line-height: 1.7;
    color: #475569;
}

.yanfa-section-heading {
    text-align: center;
    margin-bottom: clamp(24px, 2.4vw, 40px);
}

.yanfa-section-heading h2 {
    margin: 0;
    font-size: clamp(34px, 2.6vw, 52px);
    font-weight: 700;
    line-height: 1.3;
    color: #2b313d;
}

.yanfa-roadmap {
    padding: clamp(30px, 2.6vw, 48px) 0 clamp(12px, 1.4vw, 20px);
}

.yanfa-roadmap .yanfa-section-heading {
    margin-bottom: 22px;
}

.yanfa-roadmap .yanfa-section-heading h2 {
    font-size: clamp(34px, 2.6vw, 52px);
    line-height: 1.3;
}

.yanfa-ecosystem .yanfa-section-heading h2 {
    font-size: clamp(34px, 2.6vw, 52px);
    line-height: 1.3;
}

.yanfa-roadmap__switch {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    margin-top: 18px;
    padding: 6px;
    border-radius: 999px;
    background: #edf4ff;
}

.yanfa-roadmap__button {
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #5b6474;
    font-size: 16px;
    line-height: 1;
    padding: 12px 22px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.yanfa-roadmap__button.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, #1e80ff 0%, #0f5ce4 100%);
    box-shadow: 0 16px 32px rgba(30, 128, 255, 0.22);
}

.yanfa-roadmap__board {
    padding: 24px 28px 10px;
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 14px 36px rgba(30, 64, 175, 0.05);
}

.yanfa-roadmap__stages {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
    /* align-items: end; */
}

.yanfa-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

.yanfa-stage--1 {
    margin-top: 190px;
}

.yanfa-stage--2 {
    margin-top: 117px;
}

.yanfa-stage--3 {
    margin-top: 92px;
}

.yanfa-stage--4 {
    margin-top: 34px;
}

.yanfa-stage--5 {
    margin-top: -30px;
}

.yanfa-stage__title {
    min-height: 66px;
    margin: 0;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
    color: #3b4250;
}

.yanfa-stage__card {
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #b9d7ff;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.03);
}

.yanfa-stage__lead {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 8px;
    border-radius: 6px;
    background: linear-gradient(135deg, #1e80ff 0%, #1265ef 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.yanfa-stage__grid {
    display: grid;
    gap: 6px;
    margin-top: 8px;
}

.yanfa-stage--1 .yanfa-stage__grid,
.yanfa-stage--2 .yanfa-stage__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.yanfa-stage--3 .yanfa-stage__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.yanfa-stage--4 .yanfa-stage__grid,
.yanfa-stage--5 .yanfa-stage__grid {
    grid-template-columns: minmax(0, 1fr);
}

.yanfa-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 6px;
    border-radius: 6px;
    background: #f5f5f5;
    color: #555f6d;
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
}

.yanfa-chip--accent {
    background: #1e80ff;
    color: #ffffff;
}

.yanfa-chip--tall {
    min-height: 84px;
}

.yanfa-stage--3 .yanfa-stage__lead,
.yanfa-stage--4 .yanfa-stage__lead,
.yanfa-stage--5 .yanfa-stage__lead {
    min-height: 56px;
}

.yanfa-roadmap__track {
    position: relative;
    margin-top: -22px;
}

.yanfa-roadmap__curve {
    display: block;
    width: 100%;
    height: 150px;
}

.yanfa-roadmap__curve path {
    fill: none;
    stroke: url(#yanfaRoadmapGradient);
    stroke-width: 12;
    stroke-linecap: round;
}

.yanfa-roadmap__milestones {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: -204px;
    position: relative;
    z-index: 1;
    align-items: start;
}

.yanfa-milestone {
    --point-offset: 120px;
    position: relative;
    padding-top: calc(var(--point-offset) + 28px);
    color: #475569;
    text-align: center;
}

.yanfa-milestone__year {
    position: absolute;
    top: calc(var(--point-offset) + 10px);
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #1e80ff;
    white-space: nowrap;
}

.yanfa-milestone__year--rule {
    top: calc(var(--point-offset) - 50px);
    color: #000000;
}



.yanfa-milestone::before {
    content: "";
    position: absolute;
    top: var(--point-offset);
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1e80ff;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px rgba(30, 128, 255, 0.2);
    transform: translateX(-50%);
}

.yanfa-milestone__detail {
    display: flex;
    /* align-items: flex-start; */
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: max-content;
    margin: 0 auto;
    margin-top: 10px;
}

.yanfa-milestone__icon {
    flex: 0 0 auto;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yanfa-milestone__icon img {
    max-width: 100%;
    max-height: 40px;
    width: auto;
    height: auto;
}

.yanfa-milestone__text {
    margin: 0;
    font-size: 11px;
    line-height: 1.45;
    color: #4b5563;
    max-width: 138px;
    padding-top: 2px;
    text-align: left;
}

.yanfa-milestone--1 {
    --point-offset: 178px;
}

.yanfa-milestone--2 {
    --point-offset: 168px;
}

.yanfa-milestone--3 {
    --point-offset: 144px;
}

.yanfa-milestone--4 {
    --point-offset: 111px;
}

.yanfa-milestone--5 {
    --point-offset: 76px;
}

.yanfa-roadmap[data-mode="rule"] .yanfa-stage--3,
.yanfa-roadmap[data-mode="rule"] .yanfa-stage--4,
.yanfa-roadmap[data-mode="rule"] .yanfa-stage--5 {
    opacity: 0.38;
    filter: saturate(0.72);
    transform: translateY(12px);
}

.yanfa-ecosystem {
    padding: clamp(28px, 2.6vw, 48px) 0 clamp(18px, 2vw, 30px);
}

.yanfa-ecosystem__card {
    padding: clamp(18px, 1.8vw, 28px);
    border-radius: clamp(22px, 2vw, 36px);
    background:
            radial-gradient(circle at top, rgba(67, 144, 255, 0.2), transparent 42%),
            linear-gradient(180deg, #ffffff 0%, #f5faff 100%);
    box-shadow: 0 30px 70px rgba(29, 78, 216, 0.08);
}

.yanfa-ecosystem__card img {
    display: block;
    width: 70%;
    max-width: 1380px;
    height: auto;
    margin: 0 auto;
}

.yanfa-manufacturing {
    padding: clamp(34px, 3vw, 56px) 0 clamp(12px, 1.6vw, 22px);
}

.yanfa-manufacturing__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 1.8vw, 28px);
}

.yanfa-manufacturing__card {
    padding: clamp(20px, 1.8vw, 30px);
    border-radius: clamp(20px, 1.8vw, 28px);
    background: #ffffff;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.06);
}

.yanfa-manufacturing__icon {
    width: clamp(64px, 4.8vw, 88px);
    height: clamp(64px, 4.8vw, 88px);
    object-fit: contain;
    display: block;
    margin: 0 auto 18px;
}

.yanfa-manufacturing__title {
    margin: 0 0 18px;
    text-align: center;
    font-size: clamp(24px, 2vw, 32px);
    font-weight: 700;
    color: #1f2937;
}

.yanfa-manufacturing__media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(220px, 20vw, 310px);
    margin-bottom: 18px;
    padding: 12px;
    border-radius: 24px;
    background: linear-gradient(180deg, #fdfefe 0%, #f5f9ff 100%);
    border: 1px solid rgba(116, 165, 255, 0.18);
}

.yanfa-manufacturing__media img {
    display: block;
    width: 100%;
    height: auto;
}

.yanfa-manufacturing__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.yanfa-manufacturing__list li,
.yanfa-manufacturing__summary {
    font-size: clamp(16px, 1.1vw, 20px);
    line-height: 1.75;
    color: #475569;
}

.yanfa-projects {
    padding: clamp(30px, 2.6vw, 48px) 0 12px;
}

.yanfa-projects__summary {
    max-width: 1480px;
    margin: 18px auto 0;
    font-size: clamp(18px, 1.35vw, 26px);
    line-height: 1.75;
    color: #374151;
}

.yanfa-projects__summary span {
    display: inline-block;
    position: relative;
    color: #1e80ff;
    font-size: clamp(38px, 3.5vw, 58px);
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
    margin: 0 8px;
    transform: translateY(-6px);
}

.yanfa-projects__summary span sup {
    position: absolute;
    top: 0.04em;
    right: -0.58em;
    font-size: 0.42em;
    line-height: 1;
}

.yanfa-projects__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 18px 34px;
    margin-top: 36px;
}

.yanfa-project {
    text-align: center;
}

.yanfa-project__image {
    height: clamp(100px, 8vw, 138px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 8px;
}

.yanfa-project__image img {
    display: block;
    max-width: 88%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.yanfa-project__name {
    margin: 0;
    font-size: clamp(13px, 0.85vw, 16px);
    line-height: 1.45;
    color: #2b313d;
}

.yanfa-enhanced [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition:
            opacity 0.72s ease,
            transform 0.72s cubic-bezier(0.21, 1, 0.28, 1);
}

.yanfa-enhanced [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media screen and (max-width: 1400px) {
    .yanfa-roadmap .yanfa-section-heading h2 {
        font-size: 34px;
    }

    .yanfa-panel {
        grid-template-columns: 270px minmax(0, 1fr);
        padding: 28px;
    }

    .yanfa-panel__title {
        font-size: 30px;
    }

    .yanfa-panel__subtitle,
    .yanfa-feature-card__text,
    .yanfa-manufacturing__list li,
    .yanfa-manufacturing__summary {
        font-size: 17px;
    }

    .yanfa-feature-card__title,
    .yanfa-manufacturing__title {
        font-size: 22px;
    }

    .yanfa-section-heading h2 {
        font-size: 34px;
    }

    .yanfa-projects__summary {
        font-size: 22px;
    }
}

@media screen and (max-width: 1180px) {
    .yanfa-shell {
        width: calc(100% - 40px);
    }

    .yanfa-roadmap .yanfa-section-heading h2 {
        font-size: 30px;
    }

    .yanfa-panel {
        grid-template-columns: 1fr;
    }

    .yanfa-panel__items {
        grid-template-columns: 1fr;
    }

    .yanfa-feature-card {
        gap: 16px;
    }

    .yanfa-roadmap__board {
        padding: 20px 18px 16px;
    }

    .yanfa-roadmap__stages {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .yanfa-stage {
        margin-top: 0;
    }

    .yanfa-stage--5 {
        grid-column: 1 / -1;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }

    .yanfa-roadmap__curve {
        display: none;
    }

    .yanfa-roadmap__milestones {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
        margin-top: 14px;
        align-items: stretch;
    }

    .yanfa-milestone {
        --point-offset: 0px;
        padding-top: 0;
        padding: 18px 14px;
        border-radius: 18px;
        background: #f7fbff;
        border: 1px solid #d7e7ff;
        text-align: center;
    }

    .yanfa-milestone::before {
        display: none;
    }

    .yanfa-milestone__year {
        position: static;
        transform: none;
        margin: 0 0 8px;
    }

    .yanfa-milestone__detail {
        min-height: 0;
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .yanfa-milestone__text {
        max-width: none;
        padding-top: 0;
    }

    .yanfa-milestone--1 .yanfa-milestone__detail,
    .yanfa-milestone--2 .yanfa-milestone__detail,
    .yanfa-milestone--5 .yanfa-milestone__detail {
        justify-content: center;
    }

    .yanfa-manufacturing__grid {
        grid-template-columns: 1fr;
    }

    .yanfa-projects__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px 14px;
    }
}

@media screen and (max-width: 767px) {
    .yanfa-shell {
        width: calc(100% - 24px);
    }

    .yanfa-overview {
        padding-top: 28px;
    }

    .yanfa-panel {
        gap: 16px;
        padding: 20px 16px;
        margin-bottom: 16px;
        border-radius: 20px;
    }

    .yanfa-panel__icon {
        width: 64px;
        height: 64px;
        margin-bottom: 18px;
    }

    .yanfa-panel__title {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .yanfa-panel__subtitle {
        font-size: 16px;
    }

    .yanfa-feature-card {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        padding: 18px;
    }

    .yanfa-feature-card__media {
        min-height: 0;
    }

    .yanfa-feature-card__title {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .yanfa-feature-card__text {
        font-size: 16px;
        line-height: 1.65;
    }

    .yanfa-section-heading {
        margin-bottom: 24px;
    }

    .yanfa-section-heading h2 {
        font-size: 28px;
    }

    .yanfa-roadmap {
        padding-top: 24px;
    }

    .yanfa-roadmap .yanfa-section-heading h2 {
        font-size: 22px;
        line-height: 1.5;
    }

    .yanfa-roadmap__switch {
        gap: 8px;
        margin-top: 16px;
        padding: 6px;
    }

    .yanfa-roadmap__button {
        font-size: 14px;
        padding: 10px 14px;
    }

    .yanfa-roadmap__board {
        padding: 16px 12px 12px;
        border-radius: 18px;
    }

    .yanfa-roadmap__stages,
    .yanfa-roadmap__milestones {
        grid-template-columns: 1fr;
    }

    .yanfa-stage--5 {
        max-width: none;
    }

    .yanfa-stage__title {
        min-height: 0;
        font-size: 15px;
    }

    .yanfa-stage__lead {
        min-height: 44px;
        font-size: 12px;
    }

    .yanfa-chip {
        min-height: 34px;
        font-size: 11px;
    }

    .yanfa-chip--tall {
        min-height: 78px;
    }

    .yanfa-milestone__year {
        font-size: 14px;
    }

    .yanfa-milestone__icon {
        height: 56px;
    }

    .yanfa-milestone__icon img {
        max-height: 46px;
    }

    .yanfa-milestone__text {
        font-size: 12px;
    }

    .yanfa-ecosystem,
    .yanfa-manufacturing,
    .yanfa-projects {
        padding-top: 26px;
    }

    .yanfa-ecosystem__card,
    .yanfa-manufacturing__card {
        padding: 18px;
        border-radius: 24px;
    }

    .yanfa-manufacturing__icon {
        width: 64px;
        height: 64px;
    }

    .yanfa-manufacturing__title {
        font-size: 22px;
    }

    .yanfa-manufacturing__media {
        min-height: 0;
        margin-bottom: 16px;
    }

    .yanfa-manufacturing__list li,
    .yanfa-manufacturing__summary,
    .yanfa-project__name {
        font-size: 16px;
    }

    .yanfa-projects__summary {
        font-size: 16px;
        line-height: 1.75;
        margin-top: 14px;
    }

    .yanfa-projects__summary span {
        display: inline-block;
        font-size: 34px;
        margin: 0 4px;
    }

    .yanfa-projects__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 10px;
        margin-top: 30px;
    }

    .yanfa-project__image {
        height: 110px;
        margin-bottom: 6px;
    }
}
