/* ===== 頁面共用設定 ===== */
.system-page {
    --system-accent: #c51c22;
    --system-ink: #202020;
    --dek-text-feature: 18px;
    --dek-text-feature-title: 34px;
    width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
    color: #333;
    background: #fff;

}
.system-page
.container {
    max-width: 1180px;

}
.system-kicker {
    margin: 0 0 12px;
    color: #d06363;
    font-size: var(--dek-text-label);
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;

}
.system-title {
    margin: 0;
    color: #171717;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.035em;

}
.system-title span, .system-accent {
    color: var(--system-accent);

}
.system-copy {
    color: #555;
    font-size: var(--dek-text-body);
    line-height: 1.75;

}
.system-page :where(#capabilities) .system-copy {
    font-size: var(--dek-text-feature);
}

#capabilities h2.system-title {
    font-size: var(--dek-text-feature-title);
}

/* ===== 首頁主視覺（Hero） ===== */
.system-hero {
    padding: 76px 0 54px;
    overflow: hidden;

}
.system-hero h1 {
    font-size: var(--dek-text-page-title);

}
.system-hero-copy {
    font-size: var(--dek-text-intro);
    max-width: 590px;
    margin: 24px 0 27px;

}
.system-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;

}
.system-actions .btn {
    min-width: 142px;
    padding: 11px 24px;
    border-radius: 7px;
    box-shadow: 0 6px 16px rgba(197,28,34,.13);

}
.system-hero-visual {
    position: relative;

}
.system-hero-visual::before {
    position: absolute;
    z-index: 0;
    right: -18%;
    bottom: -15%;
    width: 76%;
    aspect-ratio: 1;
    content: "";
    background: #fff3f3;
    border-radius: 50%;

}
.system-hero-visual img {
    position: relative;
    z-index: 1;
    width: 104%;
    max-width: none;
    transform: translateX(-1%);
    filter: drop-shadow(0 18px 28px rgba(0,0,0,.09));

}
@media (min-width: 992px) {
    .system-hero h1 {
        white-space: nowrap;

    }

}
/* ===== 服務特色／服務案例 ===== */
/* 桌面版使用雙欄交錯排列，奇數案例將圖片放在右側。 */
.system-features {
    padding: 60px 0 90px;

}
.system-intro {
    max-width: 520px;
    margin-bottom: 58px;

}
.system-intro .system-title {
    font-size: var(--dek-text-section-title);

}
.system-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 76px;
    margin-bottom: 78px;

}
@media (min-width: 992px) {
    .system-feature {
        display: flex;
    }

    .system-feature > * {
        flex: 1 1 0;
        min-width: 0;
    }

    .system-feature > :is(.system-product-image, .system-feature-media, .system-feature-visual) {
        flex-grow: 1.25;
    }
}

.system-feature:nth-child(odd) .system-feature-media {
    order: 2;

}
.system-feature-media {
    position: relative;
    overflow: hidden;
    border-radius: 22px;

}
.system-feature-media::after {
    position: absolute;
    z-index: 0;
    inset: 15% -4% -7% 8%;
    content: "";
    background: #f4f4f4;
    border-radius: 22px;
    pointer-events: none;

}
.system-feature-media img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;

}
.system-feature-number {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--system-accent);
    font-size: var(--dek-text-label);
    font-weight: 700;

}
.system-feature-number::before {
    width: 14px;
    height: 14px;
    content: "";
    background: #dedede;
    border-radius: 50%;

}
.system-features .system-feature h3 {
    margin: 0 0 11px;
    color: #000;
    font-size: var(--dek-text-feature-title);
    font-weight: 700;

}
.system-feature p:last-child {
    margin-bottom: 0;

}
.system-capability-list {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;

}
.system-capability-list li {
    padding: 15px 0;
    border-top: 1px solid #ededed;

}
.system-capability-list h4 {
    margin: 0 0 6px;
    color: #202020;
    font-size: var(--dek-text-body);
    font-weight: 700;

}
.system-capability-list h4::before {
    margin-right: 10px;
    color: var(--system-accent);
    content: "\2713";

}
.system-capability-list p {
    margin: 0;

}
/* ===== 步驟處理流程 ===== */
.system-process {
    padding: 64px 0;
    color: #fff;
    background: var(--system-ink);

}
.system-process .system-kicker {
    color: #ce7171;

}
.system-process .system-title {
    color: #fff;
    font-size: var(--dek-text-section-title);

}
.system-process-list {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;

}
.system-process-list::before {
    position: absolute;
    top: 25px;
    bottom: 25px;
    left: 24px;
    width: 1px;
    content: "";
    background: #a65757;

}
.system-process-item {
    position: relative;
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 20px;
    margin-bottom: 27px;

}
.system-process-item:last-child {
    margin-bottom: 0;

}
.system-process-num {
    z-index: 1;
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    color: #df7777;
    background: var(--system-ink);
    border: 1px solid #a65757;
    border-radius: 50%;
    font-weight: 700;

}
.system-process-item h3 {
    margin: 2px 0 3px;
    color: #fff;
    font-size: var(--dek-text-card-title);
    font-weight: 500;

}
.system-process-item p {
    margin: 0;
    color: #aaa;

}
/* ===== 導入成果卡片 ===== */
.system-outcomes {
    padding: 70px 0 92px;
    text-align: center;

}
.system-outcomes .system-title {
    max-width: 570px;
    margin: 0 auto;
    font-size: var(--dek-text-section-title);

}
.system-outcome-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 46px;

}
.system-outcome {
    padding: 28px 24px;
    border: 1px solid #e15358;
    border-radius: 26px;

}
.system-outcome h3 {
    margin-bottom: 12px;
    color: #222;
    font-size: var(--dek-text-card-title);

}
.system-outcome p {
    margin: 0;
    color: #555;

}
.system-cases-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 32px;
    padding: 10px 4px;
    color: var(--system-accent);
    font-size: var(--dek-text-intro);
    font-weight: 700;
    text-decoration: none;
    transition: transform .25s ease, color .25s ease;

}
.system-cases-link span {
    transition: transform .25s ease;

}
.system-cases-link:hover {
    color: #a81116;
    text-decoration: none;
    transform: scale(1.06);

}
.system-cases-link:hover span {
    transform: translateX(4px);

}
.system-cases-link:focus-visible {
    outline: 2px solid var(--system-accent);
    outline-offset: 4px;
    border-radius: 4px;

}
/* ===== 頁尾行動呼籲（CTA） ===== */
.system-cta {
    padding: 54px 0;
    color: #fff;
    background: #a81116;

}
.system-cta .system-kicker {
    color: #e2a4a4;

}
.system-cta h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: var(--dek-text-cta-title);
    font-weight: 600;
    line-height: 1.2;

}
.system-cta p {
    margin: 0;
    color: rgba(255,255,255,.8);

}
.system-cta .btn {
    min-width: 190px;
    padding: 12px 28px;
    color: #a81116;
    background: #fff;
    border-color: #fff;
    font-weight: 700;

}
/* ===== 捲動觸發的進場動畫 ===== */
/* JavaScript 啟用 is-motion-ready 後先隱藏元素；進入視窗時加入 is-visible。 */
.system-page.is-motion-ready .system-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1);

}
.system-page.is-motion-ready .system-reveal[data-reveal="left"] {
    transform: translateX(-34px);

}
.system-page.is-motion-ready .system-reveal[data-reveal="right"] {
    transform: translateX(34px);

}
.system-page.is-motion-ready .system-reveal.is-visible {
    opacity: 1;
    transform: none;

}
.system-page.is-motion-ready .system-process-item.system-reveal:nth-child(2), .system-page.is-motion-ready .system-outcome.system-reveal:nth-child(2) {
    transition-delay: .1s;

}
.system-page.is-motion-ready .system-process-item.system-reveal:nth-child(3), .system-page.is-motion-ready .system-outcome.system-reveal:nth-child(3) {
    transition-delay: .2s;

}
.system-page.is-motion-ready .system-process-item.system-reveal:nth-child(4) {
    transition-delay: .3s;

}
/* ===== 與捲動進度連動的案例圖片動畫 ===== */
/* 圖片會隨著進入及離開視窗的進度產生輕微位移與縮放。 */
@keyframes system-case-scroll {
    from {
        transform: translateY(22px) scale(.96);

    }
    to {
        transform: translateY(-22px) scale(1.03);

    }

}
@supports (animation-timeline: view()) {
    .system-feature-media img {
        animation: system-case-scroll linear both;
        animation-timeline: view();
        animation-range: entry 5% exit 95%;
        will-change: transform;

    }

}
/* ===== 平板版 ===== */
@media (max-width: 991.98px) {
    .system-hero {
        padding-top: 50px;
        text-align: center;

    }
    .system-hero-copy {
        margin-right: auto;
        margin-left: auto;

    }
    .system-actions {
        justify-content: center;

    }
    .system-hero-visual {
        margin-top: 45px;

    }
    .system-hero-visual img {
        width: 100%;
        transform: none;

    }
    .system-feature {
        gap: 38px;

    }
    .system-process-copy {
        margin-bottom: 42px;

    }

}
/* ===== 手機版 ===== */
/* 單欄排列，並限制裝飾背景不超出容器。 */
@media (max-width: 767.98px) {
    .system-page
    .container {
        padding-inline: 24px;

    }
    .system-page
    .row, .section-footer > .container > .row {
        --ins-gutter-x: 24px;

    }
    .system-hero {
        padding: 42px 0 32px;

    }
    .system-features {
        padding: 42px 0 56px;

    }
    .system-feature {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 58px;

    }
    .system-feature:nth-child(odd) .system-feature-media {
        order: 0;

    }
    .system-feature-media::after {
        right: 0;

    }
    .system-outcome-grid {
        grid-template-columns: 1fr;
        gap: 16px;

    }
    .system-cta {
        text-align: center;

    }
    .system-cta .btn {
        margin-top: 28px;

    }

}
/* ===== 無障礙：減少動態效果 ===== */
/* 使用者啟用系統的「減少動態效果」時，停用所有位移與捲動動畫。 */
@media (prefers-reduced-motion: reduce) {
    .system-cases-link, .system-cases-link span {
        transition: none;

    }
    .system-cases-link:hover, .system-cases-link:hover span {
        transform: none;

    }
    .system-page.is-motion-ready .system-reveal, .system-page.is-motion-ready .system-reveal[data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;

    }
    .system-feature-media img {
        animation: none !important;
        transform: none !important;

    }

}
/* 可選用的產品介紹元件，不改動現有頁面的預設樣式。 */
.system-section {
    padding-block: 72px;

}
.system-section[id] {
    scroll-margin-top: 76px;

}
.system-product-image {
    display: block;
    width: 100%;
    height: auto;

}
.system-topline-card {
    border: 0;
    border-top: 8px solid var(--system-card-accent, var(--system-accent));
    border-radius: 12px;

}
@media (max-width: 767.98px) {
    .system-section {
        padding-block: 48px;

    }

}
