/* ===== Hero section 主視覺：間距、產品名稱、標語與圖片 ===== */
.ipm-page
.system-hero {
    padding: 72px 0 48px;

}
.ipm-page
.system-hero .ipm-product-name {
    font-size: var(--dek-text-product);
    font-weight: 700;
    margin: 0 0 18px;
    white-space: normal;

}
.ipm-page
.system-hero .ipm-hero-tagline {
    color: #000;
    white-space: normal;
    line-height: 1.35;

}
.ipm-page
.system-hero-copy {
    margin: 12px 0 22px;

}
.ipm-hero-image {
    display: block;
    width: 100%;

}
/* ===== iPM 共用文字：標題與區塊 ===== */
.ipm-page
.system-title {
    letter-spacing: 0;

}
.ipm-page
h2.system-title {
    font-size: var(--dek-text-section-title);
    line-height: 1.3;

}
.ipm-page
.system-kicker {
    font-size: var(--dek-text-label);
    font-weight: 500;
    color: #e16969;
    margin-bottom: 10px;

}
/* ===== 功能快捷導覽：桌面版四欄與項目分隔線 ===== */
.ipm-shortcuts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 940px;
    margin: 0 auto;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 10px 24px #00000005;

}
.ipm-shortcuts a {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 22px 18px;
    color: #333;

}
.ipm-shortcuts a + a {
    border-left: 1px solid #eee;

}
.ipm-shortcuts svg, .ipm-steps svg {
    width: 22px;
    height: 22px;
    color: #e64545;

}
.ipm-shortcuts strong, .ipm-shortcuts small {
    display: block;

}
.ipm-shortcuts strong {
    font-size: var(--dek-text-label);

}
.ipm-shortcuts small {
    color: #888;
    font-size: var(--dek-text-note);
    margin-top: 3px;

}
/* ===== 專案工作流程：桌面版六欄 ===== */
.ipm-workflow {
    padding: 90px 0 80px;
    scroll-margin-top: 100px;

}
.ipm-steps {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 38px;
    list-style: none;
    margin: 42px auto 0;
    padding: 0;
    max-width: 1040px;

}
.ipm-steps li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #e9e9e9;
    border-radius: 12px;
    padding: 32px 10px 25px;

}
.ipm-steps li > span {
    position: absolute;
    top: 9px;
    left: 12px;
    font-size: var(--dek-text-note);
    color: #bbb;

}
/* 以偽元素在相鄰步驟之間加入箭頭。 */
.ipm-steps li + li::before {
    content: '›';
    position: absolute;
    left: -24px;
    top: 44%;
    color: #ccc;

}
.ipm-steps strong {
    margin-top: 12px;
    font-size: var(--dek-text-label);

}
.ipm-steps small {
    margin-top: 4px;
    color: #888;
    font-size: var(--dek-text-note);

}
/* ===== 流程進場動畫：各步驟依序延遲顯示 ===== */
.ipm-page.is-motion-ready .ipm-steps .system-reveal:nth-child(2) {
    transition-delay: .1s;

}
.ipm-page.is-motion-ready .ipm-steps .system-reveal:nth-child(3) {
    transition-delay: .2s;

}
.ipm-page.is-motion-ready .ipm-steps .system-reveal:nth-child(4) {
    transition-delay: .3s;

}
.ipm-page.is-motion-ready .ipm-steps .system-reveal:nth-child(5) {
    transition-delay: .4s;

}
.ipm-page.is-motion-ready .ipm-steps .system-reveal:nth-child(6) {
    transition-delay: .5s;

}
/* ===== 核心功能：圖文間距、圖片與條列說明 ===== */
:is(.ipm-features, .ipm-collaboration, .ipm-performance) h2.system-title {
    font-size: var(--dek-text-feature-title);
}

:is(.ipm-features, .ipm-collaboration, .ipm-performance) .system-copy,
.ipm-details {
    font-size: var(--dek-text-feature);
}

.ipm-features .system-feature {
    margin-bottom: 115px;
    gap: 72px;
    scroll-margin-top: 110px;

}
.ipm-media img {
    display: block;
    width: 100%;
    height: auto;

}
.ipm-details {
    padding: 0 0 0 24px;
    margin-top: 25px;
    list-style: none;
    color: #777;
    line-height: 2.2;

}
.ipm-details li {
    position: relative;

}
.ipm-details li::before {
    content: "✓";
    position: absolute;
    left: -24px;
    color: var(--system-accent);
    font-weight: 800;

}
/* ===== 數據重點：突出顯示數值與說明 ===== */
.ipm-stats {
    display: flex;
    gap: 85px;
    margin-top: 24px;

}
.ipm-stats strong {
    display: block;
    font-size: 36px;
    color: var(--system-accent);
    line-height: 1.2;

}
.ipm-stats span {
    color: #777;

}
/* ===== 專案檢視切換：按鈕群組、選取狀態 ===== */
.ipm-view-tabs {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;

}
.ipm-view-tabs button {
    border: 1px solid #ddd;
    background: white;
    color: #333;
    padding: 5px 10px;
    font-size: var(--dek-text-body);

}
.ipm-view-tabs button:first-child {
    border-radius: 6px 0 0 6px;

}
.ipm-view-tabs button:last-child {
    border-radius: 0 6px 6px 0;

}
.ipm-view-tabs button.active {
    background: var(--system-accent);
    color: white;
    border-color: var(--system-accent);

}
.ipm-view-tabs button:focus-visible, .ipm-shortcuts a:focus-visible {
    outline: 2px solid var(--system-accent);
    outline-offset: 4px;

}
/* 檢視圖片維持容器比例 */
.ipm-project-view {
    aspect-ratio: 1.7;
    display: flex;
    align-items: flex-start;

}
.ipm-project-view img {
    max-height: 100%;
    object-fit: contain;
    object-position: top;

}
/* ===== 協作溝通：左右圖片與中央連結圖示 ===== */
.ipm-collaboration {
    background: #f6f4f4;
    padding: 44px 0;
    scroll-margin-top: 90px;

}
.ipm-conversation {
    display: grid;
    grid-template-columns: 1fr 50px 1fr;
    align-items: center;
    margin-top: 46px;

}
.ipm-conversation img {
    width: 100%;

}
.ipm-connection {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    background: #c00404;
    color: #fff;
    border: 7px solid #f4dada;
    border-radius: 50%;
    animation: ipm-connection-pulse 1.6s ease-in-out infinite;

}
.ipm-connection i {
    font-size: 24px;
    line-height: 1;

}
/* 中央連結圖示透過縮放與透明度產生脈動效果。 */
@keyframes ipm-connection-pulse {
    0%, 100% {
        transform: scale(.9);
        opacity: .75;

    }
    50% {
        transform: scale(1.15);
        opacity: 1;

    }

}
/* 無障礙設定：使用者偏好減少動態效果時，停用脈動動畫。 */
@media (prefers-reduced-motion: reduce) {
    .ipm-connection {
        animation: none;

    }

}
/* ===== 成效區塊：高度、間距與錨點跳轉空間 ===== */
.ipm-performance {
    padding: 65px 0 140px;
    min-height: 390px;
    scroll-margin-top: 90px;

}
@media (min-width: 992px) {
    .ipm-page .ipm-collaboration .container {
        max-width: 1280px;
    }

    .ipm-performance .row > .ipm-media {
        width: 62.5%;
    }

    .ipm-performance .row > :first-child {
        width: 37.5%;
    }
}

/* ===== 頁尾行動呼籲（CTA）與品牌署名 ===== */
.ipm-cta {
    padding: 68px 0 25px;
    background: #333;

}
.ipm-cta h2 {
    font-size: var(--dek-text-cta-title);

}
.ipm-cta .btn {
    margin-top: 62px;
    min-width: 150px;
    background: #c00404;
    border-color: #c00404;
    color: white;

}
.ipm-cta .btn:hover {
    background: #990303;

}
.ipm-cta small {
    color: #ccc;

}
.ipm-signature {
    margin-top: 45px;
    font-size: var(--dek-text-note);
    color: #ccc;

}
.ipm-signature strong {
    font-size: var(--dek-text-product);
    margin-right: 8px;
    color: white;

}
.ipm-signature strong span {
    color: #e33c3c;

}
/* ===== 平板版：快捷導覽改為兩欄，縮小流程與圖文間距 ===== */
@media (max-width: 991.98px) {
    .ipm-shortcuts {
        grid-template-columns: repeat(2, 1fr);

    }
    .ipm-shortcuts a:nth-child(3) {
        border-left: 0;

    }
    .ipm-shortcuts a:nth-child(n+3) {
        border-top: 1px solid #eee;

    }
    .ipm-steps {
        gap: 20px;

    }
    .ipm-steps li + li::before {
        left: -15px;

    }
    .ipm-features .system-feature {
        gap: 35px;

    }

}
/* ===== 手機版：流程改為三欄，協作圖片改為單欄並調整間距 ===== */
@media (max-width: 767.98px) {
    .ipm-page
    .system-hero {
        padding-top: 40px;

    }
    .ipm-workflow {
        padding: 60px 0;

    }
    .ipm-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;

    }
    .ipm-steps li:nth-child(4)::before {
        content: none;

    }
    .ipm-features .system-feature {
        margin-bottom: 65px;

    }
    .ipm-reverse .ipm-media {
        order: 2;

    }
    .ipm-conversation {
        grid-template-columns: 1fr;
        gap: 20px;

    }
    .ipm-connection {
        margin: auto;
        width: 40px;
        height: 40px;
        border-width: 5px;

    }
    .ipm-connection i {
        font-size: 20px;

    }
    .ipm-performance {
        padding: 60px 0 80px;
        min-height: 0;

    }
    .ipm-shortcuts a {
        padding: 16px 10px;
        gap: 8px;

    }
    .ipm-cta .btn {
        margin-top: 35px;

    }

}
