/* ========== Page ========== */
#installer-incentive-page {
    overflow-x: hidden;
    padding-bottom: 120px;
}

#installer-incentive-page section {
    padding: 80px 0;
}

#iip-banner {
    padding: 0 !important;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    color: #000;
    text-align: center;
    margin-bottom: 32px;
}

.section-title.left {
    text-align: left;
}

.section-subtitle {
    text-align: center;
    margin: 0 auto 40px;
}

.section-subtitle.left {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}

/* ========== Banner ========== */
#iip-banner .banner-inner {
    position: relative;
    width: 100%;
    min-height: 480px;
    padding-top: 42%;
    overflow: hidden;
}

#iip-banner .banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

#iip-banner .banner-content {
    position: absolute;
    top: 50%;
    left: 46%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 70%;
    padding: 0 20px;
    color: #000;
}

#iip-banner .banner-title {
    color: #000 !important;
    margin-bottom: 16px;
    white-space: pre-line;
}

#iip-banner .banner-desc {
    color: #000 !important;
    margin-bottom: 24px;
    max-width: 80%;
    min-height: 100px;
}

#iip-banner .banner-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

#iip-banner .banner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    height: 44px;
    border: 2px solid #000;
    border-radius: 100px;
    color: #000 !important;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 180px;
}

#iip-banner .banner-btn:hover {
    background: #000;
    color: #fff !important;
}

/* ========== Year-Round Support ========== */
#iip-year-round {
    background: #fff;
    padding-top: 160px !important;
}

.support-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.support-card {
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.support-card-img img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.support-card-body {
    border: 1px solid #c8c8c8;
    border-top: none;
    border-radius: 0 0 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.support-card-title {
    color: #000;
    padding: 47px 38px 0px 60px;
}

.support-card-content {
    padding: 18px 38px 10px 60px;
}

.support-card-content p {
    margin-bottom: 0;
}

.support-card-content ul {
    padding-left: 40px;
    margin: 8px 0 30px;
    color: #000;
}

.support-card-content li {
    margin-bottom: 4px;
}

.support-tip {
    color: #000;
    text-align: center;
}

.support-tip a {
    text-decoration: underline;
}

/* ========== Roadmap ========== */
#iip-roadmap {
    background: #fff;
}

.roadmap-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 0 16px;
    align-items: start;
}

.roadmap-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto auto auto auto;
    /* icon, phase, title, action, unlock */
    gap: 16px;
    align-items: start;
}

.roadmap-step {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 5;
    border: 1px solid #c8c8c8;
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
    padding: 28px 24px;
    gap: 0;
    align-content: start;
}

.roadmap-step-upper {
    display: contents;
    /* 让子元素直接参与父级 subgrid */
}

.roadmap-step-lower {
    padding-top: 16px;
    border-top: 1px solid #c8c8c8;
}

.roadmap-step-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 12px;
}

.roadmap-step-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0;
    align-self: start;
}

.roadmap-step-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.roadmap-step-phase {
    color: #00c85a;
    font-weight: 600;
    margin-bottom: 0;
    margin-top: 12px;
    align-self: start;
}

.roadmap-step-title {
    color: #000;
    margin-bottom: 0;
    padding-bottom: 26px;
    width: 100%;
    align-self: start;
}

.roadmap-step-title--highlight {
    display: inline-block;
    background: #F5C842;
    color: #000;
    padding: 2px 10px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.roadmap-step-block {
    padding-top: 16px;
    border-top: 1px solid #c8c8c8;
    margin-top: 4px;
}

.roadmap-step-action {
    padding-bottom: 0;
    border-top: 1px solid #c8c8c8;
    padding: 16px 0;
    margin-top: 4px;
}

.roadmap-step-unlock {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.roadmap-block-label {
    color: #979697;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.roadmap-block-content {
    font-size: 14px;
    line-height: 1.6;
}

.roadmap-block-content p {
    margin-bottom: 0;
}

.roadmap-block-content ul {
    padding-left: 24px;
    margin: 0;
}

.roadmap-block-content li {
    margin-bottom: 4px;
}

/* ========== Seasonal Rewards ========== */
#iip-seasonal {
    background: #fff;
}

.pro-rewards {
    margin-top: 16px;
}

.pro-rewards-title {
    color: #000;
    text-align: center;
    margin-bottom: 32px;
    margin-top: 80px;
}

.region-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.region-card {
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 32px;
}

.region-card-title {
    color: #000;
    margin-bottom: 16px;
    padding-bottom: 10px;
}

.region-card-content {
    color: #333;
}

.region-card-content p {
    margin-bottom: 8px;
}

.how-to-claim {
    text-align: center;
    padding-top: 16px;
}

.claim-title {
    color: #000;
    margin-bottom: 16px;
}

.claim-content {
    margin: 0 auto;
}

/* ========== FAQ ========== */
#iip-faq {
    background: #fff;
}

.faq-content {
    border-top: 1px solid #b5b5b5;
}

.faq-item {
    border-bottom: 1px solid #b5b5b5;
}

.faq-item-inner {
    cursor: pointer;
    padding: 36px 0;
}

.faq-question {
    color: #000;
    flex: 1;
    padding-right: 24px;
}

.faq-answer {
    color: #646464;
    margin-top: 16px;
    display: none;
}

.faq-answer.active {
    display: block;
}

/* Toggle button */
.toggle-button {
    width: 24px;
    height: 24px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.toggle-button::before,
.toggle-button::after {
    content: '';
    position: absolute;
    background: #000;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.toggle-button::before {
    width: 16px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.toggle-button::after {
    width: 2px;
    height: 16px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.toggle-button.active::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

@media (max-width: 1600px) {
    #iip-banner .banner-title {
        max-width: 69%;
    }

    #iip-banner .banner-content {
        left: 50%;
    }

    #iip-banner .banner-desc {
        max-width: 65%;
    }
}

@media (max-width: 1200px) {
    #iip-banner .banner-inner {
        padding-top: 50%;
        min-height: 480px;
    }

    #iip-banner .banner-content {
        left: 0;
        transform: translateY(-50%);
        padding: 0 40px;
    }
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .roadmap-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #installer-incentive-page {
        padding-bottom: 60px;
    }

    #installer-incentive-page section {
        padding: 40px 0;
    }

    /* Banner */
    #iip-banner .banner-inner {
        min-height: 480px;
        padding-top: 0;
        height: 480px;
    }

    #iip-banner .banner-bg {
        width: unset;
        transform: translateX(-30%);
    }

    #iip-banner .banner-inner::after {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(255, 255, 255, 0.45);
        z-index: 1;
    }

    #iip-banner .banner-content {
        left: 0;
        transform: translateY(-50%);
        padding: 0 20px;
        max-width: 100%;
        z-index: 2;
    }

    #iip-banner .banner-title {
        font-size: 24px !important;
        white-space: normal;
        max-width: 100%;
    }

    #iip-banner .banner-desc {
        font-size: 14px !important;
        margin-bottom: 20px;
        max-width: 100%;
    }

    #iip-banner .banner-btns {
        flex-direction: column;
        gap: 10px;
    }

    #iip-banner .banner-btn {
        min-width: 0;
        width: 100%;
        max-width: 280px;
        height: 40px;
    }

    /* Section titles */
    .section-title {
        margin-bottom: 20px;
    }

    .section-subtitle {
        margin-bottom: 24px;
    }

    /* Year-Round Support */
    #iip-year-round {
        padding-top: 40px !important;
    }

    .support-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 24px;
    }

    .support-card-img img {
        height: 200px;
    }

    .support-card-title {
        padding: 20px 20px 0;
    }

    .support-card-content {
        padding: 12px 20px 20px;
    }

    .support-card-content ul {
        padding-left: 20px;
        margin: 6px 0 0;
    }

    /* Roadmap */
    .roadmap-steps {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .roadmap-step {
        grid-row: span 5;
        padding: 20px 16px;
    }

    /* Seasonal Rewards */
    .pro-rewards-title {
        margin-top: 32px;
    }

    .region-cards {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 32px;
    }

    .region-card {
        padding: 20px;
    }

    /* FAQ */
    #iip-faq {
        padding-top: 0 !important;
    }

    .faq-item-inner {
        padding: 20px 0;
    }
}

@media (max-width: 500px) {
    #iip-banner .banner-bg {
        transform: translateX(-50%);
    }
}