/* ===== iAI 共用設定：卡片強調色、標題與內文 ===== */
.iai-page {
    --system-card-accent: #df8181;

}
.iai-page
.system-title {
    letter-spacing: 0;

}
.iai-page
h2.system-title {
    font-size: var(--dek-text-section-title);
    font-weight: 700;
    line-height: 1.25;

}
.iai-page
.system-kicker {
    color: #d76565;
    font-size: var(--dek-text-label);
    font-weight: 400;
    letter-spacing: 0;

}
.iai-page
.system-copy {
    line-height: 1.65;
    color: #737373;

}
/* ===== Hero section主視覺：間距、圖片縮放、主標題與摘要 ===== */
.iai-page
.system-hero {
    padding: 72px 0 86px;

}
/* 桌面版放大主視覺圖片。 */
@media (min-width: 992px) {
    .iai-page
    .system-hero .system-product-image {
        transform: scale(1.06);

    }

}
.iai-page
.system-hero h1 {
    line-height: 1.28;

}
.iai-page
.iai-product-name {
    font-size: var(--dek-text-product);
    font-weight: 700;
    margin-bottom: 20px;

}
.iai-page
.iai-hero-summary {
    border-left: 2px solid #dd7a7a;
    padding-left: 12px;
    line-height: 1.5;

}
/* 共用淺色區塊背景。 */
.iai-page
.iai-muted {
    background: #f6f4f4;

}
.iai-page
.iai-card-label {
    color: #c45a5a;
    margin-bottom: 10px;
    font-size: var(--dek-text-note);

}
/* ===== 企業困境：區塊標題、三張卡片與圖示 ===== */
.iai-page
.iai-challenge {
    padding-block: 96px 90px;
    background: #f5f5f7;

}
.iai-page
.iai-challenge .container {
    max-width: 1100px;

}
.iai-page
.iai-challenge .system-kicker {
    margin-bottom: 20px;
    color: #ce202d;
    font-size: var(--dek-text-note);
    font-weight: 700;

}
.iai-page
.iai-challenge h2 {
    font-size: var(--dek-text-section-title);
    line-height: 1.3;

}
.iai-page
.iai-challenge-grid {
    margin-top: 14px;
    --ins-gutter-x: 20px;

}
.iai-page
.iai-challenge-card {
    margin-bottom: 0;
    border: 1px solid #dfe1e7;
    border-top: 3px solid #cc2332;
    border-radius: 6px 6px 15px 15px;
    box-shadow: none;

}
.iai-page
.iai-challenge-card .card-body {
    padding: 27px 27px 28px;

}
.iai-page
.iai-challenge-icon {
    display: block;
    margin-bottom: 24px;
    color: #cc2332;
    font-size: 28px;
    line-height: 1;

}
.iai-page
.iai-challenge-card h3 {
    font-size: var(--dek-text-card-title);
    font-weight: 700;
    margin-bottom: 12px;
    color: #111;

}
.iai-page
.iai-challenge-card p:last-child {
    color: #596579;
    font-size: var(--dek-text-body);
    line-height: 1.75;

}
/* ===== 產品介紹：左右圖文垂直置中與重點文字 ===== */
.iai-page
.iai-introduction {
    padding-block: 90px 110px;

}
.iai-page
.iai-introduction > .container > .row {
    align-items: center;

}
.iai-page
.iai-introduction .col-lg-6 {
    display: flex;
    flex-direction: column;
    justify-content: center;

}
.iai-page
.iai-answer-emphasis {
    margin-bottom: 0;
    font-size: var(--dek-text-card-title);
    color: #222;
    font-weight: 700;

}
/* ===== 介紹動畫容器：以偽元素建立背景光暈與偏移裝飾框 ===== */
.iai-page
.iai-video {
    position: relative;
    isolation: isolate;
    width: 100%;
    margin-inline: auto;

}
.iai-page
.iai-video::before {
    content: '';
    position: absolute;
    z-index: -2;
    inset: -26px -18px;
    background: radial-gradient(ellipse at 75% 30%, rgba(223, 129, 129, .22), transparent 65%), radial-gradient(ellipse at 20% 80%, rgba(223, 129, 129, .12), transparent 60%);
    border-radius: 32px;
    pointer-events: none;

}
.iai-page
.iai-video::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 12px -12px -12px 12px;
    border: 1px solid rgba(215, 101, 101, .25);
    border-radius: 18px;
    pointer-events: none;

}
.iai-page
.iai-video img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(91, 43, 43, .1);

}
/* ===== 核心功能：圖文間距與交錯排列 ===== */
.iai-page
.iai-capabilities {
    padding-block: 65px 105px;

}
.iai-page
.iai-feature {
    gap: 100px;
    margin-bottom: 110px;

}
.iai-page
.iai-feature:last-child {
    margin-bottom: 0;

}
.iai-page
.iai-feature-reverse > :first-child {
    order: 2;

}
/* ===== 審核流程標籤：橫向排列並以箭頭串接，可自動換行 ===== */
.iai-page
.iai-review-steps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 22px;
    padding: 0;
    margin: 24px 0 0;
    list-style: none;

}
.iai-page
.iai-review-steps li {
    position: relative;
    padding: 5px 10px;
    border-radius: 20px;
    background: #fff;
    color: #c64b4b;
    font-size: var(--dek-text-note);

}
.iai-page
.iai-review-steps li + li::before {
    position: absolute;
    left: -16px;
    content: '›';
    font-size: 23px;
    top: -2px;

}
/* ===== 知識管理流程：桌面版四欄，使用編號與連線串接 ===== */
.iai-page
.iai-flow {
    padding-block: 96px 90px;
    text-align: center;

}
.iai-page
.iai-flow .container {
    max-width: 1100px;

}
.iai-page
.iai-flow .system-kicker {
    margin-bottom: 20px;
    color: #ce202d;
    font-size: var(--dek-text-note);
    font-weight: 700;

}
.iai-page
.iai-flow h2 {
    font-size: var(--dek-text-section-title);
    line-height: 1.3;

}
.iai-page
.iai-flow-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 50px 0 0;
    padding: 0;
    list-style: none;

}
.iai-page
.iai-flow-steps li {
    position: relative;
    padding-inline: 12px;

}
.iai-page
.iai-flow-steps li:not(:last-child)::after {
    position: absolute;
    top: 27px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #dfe1e5;
    content: '';

}
.iai-page
.iai-step-number {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 22px;
    border: 2px solid #ce202d;
    border-radius: 50%;
    background: #fff;
    color: #ce202d;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;

}
.iai-page
.iai-flow-steps li:last-child .iai-step-number {
    border-color: #bc2330;
    background: #bc2330;
    color: #fff;

}
.iai-page
.iai-flow h3 {
    position: relative;
    font-size: var(--dek-text-card-title);
    font-weight: 700;
    margin: 0 0 12px;
    color: #111;

}
.iai-page
.iai-flow-steps p {
    margin: 0;
    color: #596579;
    font-size: var(--dek-text-body);
    line-height: 1.75;

}
/* ===== 手機版流程：改為直向排列，連線同步轉為垂直 ===== */
@media (max-width: 767.98px) {
    .iai-page
    .iai-flow-steps {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 36px;
        text-align: left;

    }
    .iai-page
    .iai-flow-steps li {
        padding: 0 0 0 78px;
        min-height: 78px;

    }
    .iai-page
    .iai-step-number {
        position: absolute;
        left: 0;
        top: 0;
        margin: 0;

    }
    .iai-page
    .iai-flow-steps li:not(:last-child)::after {
        top: 28px;
        left: 27px;
        width: 2px;
        height: calc(100% + 30px);

    }
    .iai-page
    .iai-flow h3 {
        padding-top: 4px;

    }

}
/* ===== 問答情境：角色頁籤、回答卡片與參考資料 ===== */
.iai-page
.iai-scenarios {
    padding-block: 60px;

}
.iai-page
.iai-role-tabs {
    margin-bottom: 24px;

}
.iai-page
.iai-role-tabs .nav-link {
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    color: #555;
    background: #fff;

}
.iai-page
.iai-role-tabs .nav-link.active {
    background: #d77b7b;
    color: #fff;

}
.iai-page
.iai-role-tabs .nav-link:focus-visible {
    outline: 2px solid var(--system-accent);
    outline-offset: 3px;

}
.iai-page
.iai-answer-card {
    padding: 18px;
    background: #fff;
    border-radius: 12px;
    min-height: 250px;

}
.iai-page
.iai-answer-card h3 {
    padding: 10px 14px;
    background: #26323e;
    color: #fff;
    font-size: var(--dek-text-body);
    line-height: 1.5;
    border-radius: 4px;

}
.iai-page
.iai-answer-card p {
    font-size: var(--dek-text-body);
    line-height: 1.6;
    color: #777;

}
.iai-page
.iai-answer-source {
    border: 1px solid #eee;
    padding: 10px 14px;
    color: #777;
    font-size: var(--dek-text-note);
    margin-top: 24px;

}
.iai-page
.iai-answer-source strong {
    display: block;
    margin-top: 3px;
    color: #359f91;
    font-weight: 500;

}
.iai-page
.iai-demo-caption {
    text-align: right;
    margin: 8px 0 0;
    color: #777;
    font-size: var(--dek-text-note);

}
/* ===== 導入效益：頂部強調線與角色效益文字 ===== */
.iai-page
.iai-outcomes {
    padding-block: 80px 100px;

}
.iai-page
.iai-outcome {
    text-align: left;
    border-top: 2px solid #e56e75;
    padding-top: 16px;

}
.iai-page
.iai-outcome h3 {
    font-size: var(--dek-text-card-title);
    color: #333;
    margin-bottom: 20px;

}
.iai-page
.iai-outcome p:last-child {
    color: #888;
    font-size: var(--dek-text-body);
    line-height: 1.6;
    margin: 0;

}
/* ===== 頁尾行動呼籲（CTA）與品牌署名 ===== */
.iai-page
.iai-cta {
    background: #333;
    padding: 65px 0 24px;

}
.iai-page
.iai-cta h2 {
    font-size: var(--dek-text-cta-title);
    line-height: 1.3;

}
.iai-page
.iai-cta .btn {
    background: var(--system-accent);
    border-color: var(--system-accent);
    color: #fff;
    min-width: 150px;
    margin-top: 32px;

}
.iai-page
.iai-cta .btn:hover {
    background: #a81116;

}
.iai-page
.iai-cta-note {
    font-size: var(--dek-text-body);
    margin-top: 10px;

}
.iai-page
.iai-signature {
    margin-top: 58px;
    font-size: var(--dek-text-note);

}
.iai-page
.iai-signature strong {
    font-size: var(--dek-text-product);
    margin-right: 14px;

}
.iai-page
.iai-signature strong span {
    color: #e33c3c;

}
/* ===== 進場動畫：依卡片與步驟順序設定延遲 ===== */
.iai-page.is-motion-ready :is(.iai-challenge-grid, .iai-flow-steps, .system-outcome-grid) > .system-reveal:nth-child(2) {
    transition-delay: .1s;

}
.iai-page.is-motion-ready :is(.iai-challenge-grid, .iai-flow-steps, .system-outcome-grid) > .system-reveal:nth-child(3) {
    transition-delay: .2s;

}
.iai-page.is-motion-ready .iai-flow-steps > .system-reveal:nth-child(4) {
    transition-delay: .3s;

}
/* 無障礙設定：使用者偏好減少動態效果時，清除進場延遲。 */
@media (prefers-reduced-motion: reduce) {
    .iai-page.is-motion-ready .system-reveal {
        transition-delay: 0s !important;

    }

}
/* ===== 平板版：調整主視覺、介紹區與功能圖文間距 ===== */
@media (max-width: 991.98px) {
    .iai-page
    .system-hero {
        padding-block: 50px;

    }
    .iai-page
    .iai-hero-summary {
        max-width: 560px;
        text-align: left;

    }
    .iai-page
    .iai-feature {
        gap: 38px;
        margin-bottom: 75px;

    }
    .iai-page
    .iai-introduction {
        padding-block: 65px;

    }

}
/* ===== 手機版整體調整：字級、區塊間距、圖文順序與裝飾框 ===== */
@media (max-width: 767.98px) {
    .iai-page
    .iai-challenge {
        padding-block: 54px;

    }
    .iai-page
    .iai-feature-reverse > :first-child {
        order: 0;

    }
    .iai-page
    .iai-capabilities, .iai-page .iai-flow, .iai-page .iai-outcomes {
        padding-block: 54px;

    }
    .iai-page
    .iai-feature {
        gap: 28px;
        margin-bottom: 64px;

    }
    .iai-page
    .iai-role-tabs {
        justify-content: flex-start !important;

    }
    .iai-page
    .iai-role-tabs .nav-link {
        padding-inline: 10px;

    }
    .iai-page
    .iai-video::before {
        inset: -18px -10px;

    }
    .iai-page
    .iai-video::after {
        inset: 8px -8px -8px 8px;

    }
    .iai-page
    .iai-outcome {
        margin-top: 16px;

    }

}
