/* =========================================================
   Laravel 專案開發服務頁（/service/laravel）專用樣式
   以 sl- 為前綴，避免與 service.css 其他服務頁的樣式互相干擾
   ========================================================= */

/* 設計變數：集中管理色彩，所有文字配色皆已確認符合 AA 對比度 4.5:1 */
.sl-page {
    --sl-ink: #0f172a; /* 深色：首屏與行動呼籲背景，呼應程式編輯器的深色主題 */
    --sl-ink-2: #1e293b; /* 深色第二層：程式碼視窗與漸層 */
    --sl-red: #c0281c; /* Laravel 紅加深版：與白色對比約 5.9:1，可用於淺底小字與按鈕底色 */
    --sl-red-bright: #ff6b61; /* 深底上的紅色強調：與深色背景對比約 6.4:1 */
    --sl-red-soft: #fdf3f2; /* 淺紅：圖示底色與標籤背景 */
    --sl-blue: #1170b7; /* 品牌主色，沿用網站既有藍色，用於焦點框 */
    --sl-text: #1f2937; /* 內文主色 */
    --sl-muted: #4b5563; /* 次要文字，與白色對比約 7.5:1 */
    --sl-line: #e5e7eb; /* 分隔線與卡片框線 */
    --sl-bg-alt: #f7f7f8; /* 交錯區塊背景，中性灰避免與紅色強調色衝突 */
    --sl-radius: 16px; /* 卡片與圖片統一圓角 */
    --sl-shadow: 0 12px 32px rgba(15, 23, 42, 0.1); /* 統一陰影，營造浮起層次 */

    display: block; /* main 在舊瀏覽器預設為 inline，明確指定避免版面錯亂 */
    overflow-x: clip; /* 裁切 AOS 滑入動畫的初始位移，避免手機出現水平捲軸；不用 hidden 是因為會讓本頁導覽的 sticky 失效 */
    color: var(--sl-text);
    font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif; /* 中文優先使用 layouts 已載入的 Noto Sans TC */
    line-height: 1.8; /* 中文長段落閱讀較舒適的行高 */
    letter-spacing: 0.03em;
}

/* 跳到主要內容後 main 會取得焦點，但 main 本身不需要顯示焦點框 */
.sl-page:focus {
    outline: none;
}

/* 錨點跳轉時預留固定選單與本頁導覽的高度，避免標題被遮住 */
.sl-page [id],
#contact {
    scroll-margin-top: 130px;
}

/* 使用者點擊本頁錨點時平滑捲動；偏好減少動態者維持瞬間跳轉 */
@media (prefers-reduced-motion: no-preference) {
    html:has(.sl-page) {
        scroll-behavior: smooth;
    }
}

/* ---------- 共用：按鈕 ---------- */

.sl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px; /* 觸控目標至少 44px，方便手指點擊 */
    padding: 10px 26px;
    border: 2px solid transparent;
    border-radius: 999px; /* 膠囊形按鈕，與網站浮動按鈕風格一致 */
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.sl-btn:hover {
    transform: translateY(-2px); /* 輕微上浮，提示可點擊 */
}

.sl-btn img {
    width: 20px;
    height: 20px;
}

/* LINE 按鈕：使用 LINE 官方綠色加深版，白字對比約 4.6:1 */
.sl-btn-line {
    background-color: #06833a;
    color: #fff;
}

.sl-btn-line:hover,
.sl-btn-line:focus {
    background-color: #056b30;
    color: #fff;
}

/* 深色背景上的次要按鈕：白框白字 */
.sl-btn-outline-light {
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}

.sl-btn-outline-light:hover,
.sl-btn-outline-light:focus {
    background-color: #fff;
    color: var(--sl-ink);
}

/* 淺色背景上的次要按鈕：紅框紅字，與白底對比約 5.9:1 */
.sl-btn-outline {
    border-color: var(--sl-red);
    background-color: #fff;
    color: var(--sl-red);
}

.sl-btn-outline:hover,
.sl-btn-outline:focus {
    background-color: var(--sl-red);
    color: #fff;
}

/* 服務列表下方的延伸連結：置中並與卡片保留距離，讓按鈕與卡片內容區分開來 */
.sl-service-more {
    margin-top: 40px;
    text-align: center;
}

/* 鍵盤焦點：加粗外框並與元素保留距離，淺色背景使用品牌藍 */
.sl-toc a:focus-visible,
.sl-related a:focus-visible,
.sl-faq-item summary:focus-visible {
    outline: 3px solid var(--sl-blue);
    outline-offset: 3px;
}

/* 深色區塊的按鈕改用亮黃色焦點框，藍色在深色底上看不清楚 */
.sl-btn:focus-visible {
    outline: 3px solid #ffbf47;
    outline-offset: 3px;
}

/* 淺色背景的按鈕維持品牌藍焦點框，亮黃色在白底上看不清楚 */
.sl-btn-outline:focus-visible {
    outline-color: var(--sl-blue);
}

/* ---------- 共用：區塊、標題與圖示 ---------- */

.sl-section {
    padding: 88px 0;
}

/* 交錯背景：讓長頁面的段落邊界更清楚 */
.sl-section-alt {
    background-color: var(--sl-bg-alt);
}

.sl-section-head {
    max-width: 780px;
    margin: 0 auto 56px;
    text-align: center;
}

/* 英文小標：增加視覺層次，左側短線引導視線到標題 */
.sl-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    color: var(--sl-red);
    font-family: Montserrat, sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sl-section-head .sl-eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background-color: currentColor;
}

.sl-title {
    margin: 0 0 16px;
    color: var(--sl-ink);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.45;
}

.sl-desc {
    margin: 0;
    color: var(--sl-muted);
    font-size: 1.0625rem;
}

/* 圓角方形圖示底：多個區塊共用 */
.sl-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background-color: var(--sl-red-soft);
    color: var(--sl-red);
    font-size: 1.375rem;
}

/* 重點清單：以勾選圖示呈現，讓長段落有可快速掃讀的摘要 */
.sl-check {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.sl-check li {
    position: relative;
    padding-left: 24px;
    color: var(--sl-text);
    font-size: 0.9375rem;
    line-height: 1.9;
}

.sl-check li::before {
    content: "\f00c";
    position: absolute;
    left: 0;
    color: var(--sl-red);
    font-family: "Font Awesome 5 Free";
    font-size: 0.8125rem;
    font-weight: 900;
}

/* ---------- 首屏 ---------- */

.sl-hero {
    position: relative;
    padding: 80px 0 96px;
    overflow: hidden; /* 裁切背景光暈，避免產生水平捲軸 */
    /* 細格線背景：以漸層繪製，呈現工程與架構感，不需額外圖檔 */
    background-color: var(--sl-ink);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    color: #fff;
}

/* 右上角紅色光暈：呼應 Laravel 品牌色 */
.sl-hero-glow {
    position: absolute;
    top: -200px;
    right: -160px;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 45, 32, 0.35) 0%, rgba(255, 45, 32, 0) 70%);
    pointer-events: none; /* 不攔截滑鼠事件 */
}

/* 內容需疊在光暈之上 */
.sl-hero .container {
    position: relative;
}

.sl-hero .sl-eyebrow {
    color: var(--sl-red-bright);
}

.sl-hero .sl-eyebrow i {
    font-size: 1.125rem;
}

.sl-hero-title {
    margin: 0 0 20px;
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.3;
}

/* 副標：漸層文字強調訴求，不支援 background-clip 的瀏覽器退回亮紅色文字 */
.sl-hero-subtitle {
    display: block;
    margin-top: 8px;
    color: var(--sl-red-bright);
    font-size: 1.625rem;
    font-weight: 700;
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
    .sl-hero-subtitle {
        background: linear-gradient(90deg, #ff6b61 0%, #fdba74 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
}

.sl-hero-lead {
    max-width: 560px;
    margin: 0 0 32px;
    color: #cbd5e1; /* 與深色背景對比約 12:1 */
    font-size: 1.0625rem;
}

.sl-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 40px;
}

/* 核心數據：三欄等寬，以左側線條分隔 */
.sl-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 520px;
    margin: 0;
}

.sl-hero-stats div {
    display: flex;
    flex-direction: column-reverse; /* HTML 中說明（dt）在前符合語意，畫面上數值在上較醒目 */
    padding-left: 16px;
    border-left: 3px solid rgba(255, 107, 97, 0.5);
}

.sl-hero-stats dt {
    color: #94a3b8; /* 與深色背景對比約 7:1 */
    font-size: 0.875rem;
    font-weight: 400;
}

.sl-hero-stats dd {
    margin: 0;
    color: #fff;
    font-family: Montserrat, sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
}

/* 程式碼視窗：承載示意圖並作為浮動標籤的定位基準，深色底色在圖片載入前先撐出視窗外觀 */
.sl-code {
    position: relative;
    max-width: 580px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--sl-radius);
    background-color: var(--sl-ink-2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

/* 程式碼示意圖：滿版於視窗內，圓角比外框少 1px 才能與外框內緣貼合 */
.sl-code-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: calc(var(--sl-radius) - 1px);
}

/* 浮動標籤：疊在視窗邊緣，增加首屏層次 */
.sl-code-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background-color: #fff;
    color: var(--sl-ink);
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.sl-code-chip i {
    color: var(--sl-red);
}

.sl-code-chip-1 {
    top: -18px;
    right: 24px;
}

.sl-code-chip-2 {
    bottom: -18px;
    left: 24px;
}

/* 浮動標籤緩慢上下浮動，增加首屏生動感；偏好減少動態者不播放 */
@media (prefers-reduced-motion: no-preference) {
    .sl-code-chip-1 {
        animation: sl-float 6s ease-in-out infinite;
    }

    .sl-code-chip-2 {
        animation: sl-float 6s ease-in-out 3s infinite; /* 錯開半個週期，兩個標籤不同步更自然 */
    }
}

@keyframes sl-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* ---------- 本頁導覽 ---------- */

/* 捲動時固定在選單下方，長頁面隨時可跳轉段落 */
.sl-toc {
    position: sticky;
    top: 70px;
    z-index: 10;
    border-bottom: 1px solid var(--sl-line);
    background-color: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px); /* 半透明底搭配模糊，捲過內容時文字仍清楚 */
}

.sl-toc ul {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 10px 0;
    overflow-x: auto; /* 手機上項目過多時改為水平滑動，不換成多行佔用版面 */
    list-style: none;
    scrollbar-width: none; /* 隱藏捲軸保持版面乾淨，仍可滑動 */
}

.sl-toc ul::-webkit-scrollbar {
    display: none;
}

/* 以首尾 auto 外距置中：空間足夠時置中，項目溢出時外距歸零，不像 justify-content: center 會把第一項裁到捲動範圍外 */
.sl-toc li:first-child {
    margin-left: auto;
}

.sl-toc li:last-child {
    margin-right: auto;
}

.sl-toc a {
    display: block;
    padding: 8px 16px;
    border-radius: 999px;
    color: var(--sl-muted);
    font-size: 0.9375rem;
    white-space: nowrap; /* 避免項目文字被擠成兩行 */
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.sl-toc a:hover,
.sl-toc a:focus {
    background-color: var(--sl-red-soft);
    color: var(--sl-red);
}

/* ---------- 為什麼選擇 Laravel ---------- */

.sl-why {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sl-why li {
    position: relative;
    padding: 32px 28px;
    overflow: hidden; /* 裁切上方色條的圓角 */
    border: 1px solid var(--sl-line);
    border-radius: var(--sl-radius);
    background-color: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
}

/* 卡片上方色條：滑過時展開，提示卡片焦點 */
.sl-why li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 48px;
    height: 4px;
    background-color: var(--sl-red);
    transition: width 0.3s;
}

.sl-why li:hover {
    box-shadow: var(--sl-shadow);
    transform: translateY(-3px);
}

.sl-why li:hover::before {
    width: 100%;
}

.sl-why .sl-icon {
    margin-bottom: 18px;
}

.sl-why h3 {
    margin: 0 0 8px;
    color: var(--sl-ink);
    font-size: 1.25rem;
    font-weight: 700;
}

.sl-why p {
    margin: 0;
    color: var(--sl-muted);
    font-size: 0.9375rem;
    line-height: 1.75;
}

/* ---------- 服務內容 ---------- */

/* 重點服務：圖文兩欄的橫向大卡片 */
.sl-featured {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    margin-bottom: 32px;
    overflow: hidden;
    border-radius: var(--sl-radius);
    background-color: #fff;
    box-shadow: var(--sl-shadow);
}

.sl-featured-media {
    display: flex;
    align-items: center;
    background-color: #fff;
}

.sl-featured-media img {
    display: block;
    width: 100%;
    height: auto;
}

.sl-featured-body {
    padding: 40px 44px;
    border-left: 4px solid var(--sl-red); /* 左側紅色邊線，區隔重點服務與一般服務 */
}

/* 選擇器帶上父層，權重才會高於下方 .sl-featured-body > p 的灰色文字設定 */
.sl-featured-body .sl-badge {
    display: inline-block;
    margin: 0 0 12px;
    padding: 2px 12px;
    border-radius: 999px;
    background-color: var(--sl-red);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
}

.sl-featured-body h3 {
    margin: 0 0 12px;
    color: var(--sl-ink);
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1.45;
}

.sl-featured-body > p {
    margin: 0;
    color: var(--sl-muted);
}

/* 重點服務的重點清單改為橫向排列，善用寬版空間 */
.sl-featured .sl-check {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
}

/* 其餘服務：三欄卡片網格 */
.sl-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.sl-card {
    display: flex;
    flex-direction: column;
    overflow: hidden; /* 圖片放大時裁切於卡片內 */
    border: 1px solid var(--sl-line);
    border-radius: var(--sl-radius);
    background-color: #fff;
    transition: box-shadow 0.25s, transform 0.25s;
}

.sl-card:hover {
    box-shadow: var(--sl-shadow);
    transform: translateY(-4px);
}

.sl-card-media {
    overflow: hidden;
    border-bottom: 1px solid var(--sl-line);
}

.sl-card-media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2; /* 與 WebP 尺寸一致，避免延遲載入時版面跳動 */
    object-fit: cover;
    transition: transform 0.4s ease;
}

.sl-card:hover .sl-card-media img {
    transform: scale(1.05);
}

.sl-card-body {
    flex: 1; /* 撐滿卡片高度，同一列卡片底部對齊 */
    padding: 24px 26px 28px;
}

.sl-card-body h3 {
    margin: 0 0 10px;
    color: var(--sl-ink);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.45;
}

.sl-card-body > p {
    margin: 0;
    color: var(--sl-muted);
    font-size: 0.9375rem;
    line-height: 1.75;
}

/* ---------- 技術能力 ---------- */

.sl-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* 依寬度自動決定欄數，群組增減時不需調整 */
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sl-stack > li {
    padding: 24px;
    border: 1px solid var(--sl-line);
    border-radius: var(--sl-radius);
    background-color: #fff;
}

.sl-stack h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    color: var(--sl-ink);
    font-size: 1.125rem;
    font-weight: 700;
}

.sl-stack .sl-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.125rem;
}

.sl-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sl-tags li {
    padding: 4px 12px;
    border-radius: 999px;
    background-color: var(--sl-bg-alt);
    color: var(--sl-text);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ---------- 開發流程 ---------- */

.sl-process {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: sl-step; /* 以 CSS 計數器產生步驟編號，增減步驟時不需手動調整 */
}

.sl-process li {
    position: relative;
    padding: 30px 16px 24px;
    border: 1px solid var(--sl-line);
    border-radius: var(--sl-radius);
    background-color: #fff;
    text-align: center;
    counter-increment: sl-step;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.sl-process li:hover {
    border-color: #f3c4c0;
    box-shadow: var(--sl-shadow);
}

/* 步驟序號：卡片上緣置中的小圓標 */
.sl-process li::before {
    content: counter(sl-step, decimal-leading-zero);
    position: absolute;
    top: -14px;
    left: 50%;
    padding: 2px 12px;
    border-radius: 999px;
    background-color: var(--sl-ink);
    color: #fff;
    font-family: Montserrat, sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    transform: translateX(-50%);
}

.sl-process .sl-icon {
    margin-bottom: 14px;
}

.sl-process h3 {
    margin: 0 0 8px;
    color: var(--sl-ink);
    font-size: 1.125rem;
    font-weight: 700;
}

.sl-process p {
    margin: 0;
    color: var(--sl-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ---------- 常見問題 ---------- */

.sl-faq {
    max-width: 860px;
    margin: 0 auto;
}

.sl-faq-item {
    margin-bottom: 14px;
    border: 1px solid var(--sl-line);
    border-radius: var(--sl-radius);
    background-color: #fff;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.sl-faq-item[open] {
    border-color: #f3c4c0;
    box-shadow: var(--sl-shadow);
}

.sl-faq-item summary {
    position: relative;
    padding: 20px 60px 20px 24px;
    border-radius: var(--sl-radius);
    cursor: pointer;
    list-style: none; /* 移除預設三角形，改用自訂圖示 */
}

/* Safari 需另外移除預設三角形 */
.sl-faq-item summary::-webkit-details-marker {
    display: none;
}

/* 自訂展開圖示：圓形底加號，展開時旋轉成叉號，視覺呈現開合狀態 */
.sl-faq-item summary::after {
    content: "\f067";
    position: absolute;
    top: 50%;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--sl-red-soft);
    color: var(--sl-red);
    font-family: "Font Awesome 5 Free";
    font-size: 0.8125rem;
    font-weight: 900;
    transform: translateY(-50%);
    transition: transform 0.2s, background-color 0.2s, color 0.2s;
}

.sl-faq-item[open] summary::after {
    background-color: var(--sl-red);
    color: #fff;
    transform: translateY(-50%) rotate(45deg);
}

.sl-faq-item summary h3 {
    display: inline; /* 標題在 summary 內維持行內，避免多出額外行距 */
    margin: 0;
    color: var(--sl-ink);
    font-size: 1.125rem;
    font-weight: 700;
}

.sl-faq-item p {
    margin: 0;
    padding: 0 24px 22px;
    color: var(--sl-muted);
}

/* ---------- 相關服務 ---------- */

.sl-related {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sl-related a {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px;
    border: 1px solid var(--sl-line);
    border-radius: var(--sl-radius);
    background-color: #fff;
    color: inherit;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.sl-related a:hover,
.sl-related a:focus {
    border-color: #f3c4c0;
    box-shadow: var(--sl-shadow);
    transform: translateY(-3px);
}

.sl-related .sl-icon {
    margin-bottom: 16px;
}

.sl-related-title {
    margin-bottom: 6px;
    color: var(--sl-ink);
    font-size: 1.125rem;
    font-weight: 700;
}

/* 標題後方的箭頭：提示整張卡片可點擊 */
.sl-related-title::after {
    content: "\f061";
    margin-left: 8px;
    color: var(--sl-red);
    font-family: "Font Awesome 5 Free";
    font-size: 0.875rem;
    font-weight: 900;
    transition: margin-left 0.2s;
}

.sl-related a:hover .sl-related-title::after {
    margin-left: 12px;
}

.sl-related-text {
    color: var(--sl-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ---------- 行動呼籲 ---------- */

.sl-cta {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--sl-ink) 0%, #3b0d0a 100%); /* 深色漸層帶出紅色調，與首屏前後呼應 */
    color: #fff;
    text-align: center;
}

/* 背景大圓形裝飾，增加深色區塊的層次 */
.sl-cta::before {
    content: "";
    position: absolute;
    top: -180px;
    right: -120px;
    width: 420px;
    height: 420px;
    border: 60px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.sl-cta .container {
    position: relative;
}

.sl-cta h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
}

.sl-cta p {
    margin: 0 0 32px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.0625rem;
}

.sl-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

/* ---------- 響應式：大型平板與小筆電 ---------- */

@media (max-width: 1199.98px) {
    /* 六欄過擠，改為三欄兩列 */
    .sl-process {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 36px; /* 預留步驟序號凸出卡片上緣的空間 */
    }

    .sl-hero-title {
        font-size: 2.5rem;
    }

    .sl-featured-body {
        padding: 32px;
    }
}

/* ---------- 響應式：平板 ---------- */

@media (max-width: 991.98px) {
    .sl-section {
        padding: 64px 0;
    }

    .sl-hero {
        padding: 56px 0 72px;
        text-align: center;
    }

    .sl-hero-lead,
    .sl-hero-stats {
        margin-right: auto;
        margin-left: auto;
    }

    .sl-hero-actions {
        justify-content: center;
    }

    .sl-hero-stats div {
        padding-left: 0;
        border-left: 0;
    }

    /* 平板以下選單高度改變，導覽列不再固定，避免與展開的選單重疊 */
    .sl-toc {
        position: static;
    }

    .sl-why,
    .sl-cards,
    .sl-related {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* 重點服務改為上圖下文 */
    .sl-featured {
        grid-template-columns: minmax(0, 1fr);
    }

    .sl-featured-media img {
        max-width: 480px;
        margin: 0 auto;
    }

    .sl-featured-body {
        border-top: 4px solid var(--sl-red);
        border-left: 0;
    }
}

/* ---------- 響應式：手機 ---------- */

@media (max-width: 575.98px) {
    .sl-section {
        padding: 52px 0;
    }

    .sl-title,
    .sl-cta h2 {
        font-size: 1.5rem;
    }

    .sl-hero-title {
        font-size: 2rem;
    }

    .sl-hero-subtitle {
        font-size: 1.1875rem;
    }

    .sl-hero-stats dd {
        font-size: 1.25rem;
    }

    /* 手機按鈕滿版，觸控更容易 */
    .sl-hero-actions .sl-btn,
    .sl-cta-actions .sl-btn {
        width: 100%;
    }

    .sl-why,
    .sl-cards,
    .sl-process,
    .sl-related {
        grid-template-columns: minmax(0, 1fr);
    }

    .sl-featured-body {
        padding: 24px;
    }

    .sl-featured-body h3 {
        font-size: 1.375rem;
    }
}
