/* 404 錯誤頁專用樣式
 * ---------------------------------------------------------------
 * 2026-09-08 資安修補：AppScan「Application Error」
 * 原本任何不存在的網址都會回 IIS 預設錯誤頁，洩漏後端伺服器指紋，
 * 改為由 Web.config 的 <httpErrors> 導向 /404.html。
 *
 * ⚠ CSP 的 style-src 沒有 'unsafe-inline'，所以 404.html 不得使用
 *   <style> 區塊或 style="" 屬性 —— 樣式一律寫在這個檔案裡。
 */

/* 跳過區塊（WCAG 2.4.1）：平常移出畫面，鍵盤 focus 時才出現 */
.skiplink {
    position: absolute;
    top: 0;
    left: -9999px;
    z-index: 100;
    padding: 10px 16px;
    background: #24bcdc;
    color: #fff;
    text-decoration: none;
}

.skiplink:focus {
    left: 0;
}

.errpage {
    padding-top: 80px;
    padding-bottom: 100px;
    text-align: center;
    color: #4d4d4d;
}

.errpage__code {
    margin: 0;
    font-size: 96px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #24bcdc;
}

.errpage__title {
    margin: 16px 0 0;
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.errpage__desc {
    max-width: 34em;
    margin: 16px auto 0;
    font-size: 16px;
    line-height: 1.8;
}

.errpage__nav {
    margin-top: 40px;
}

.errpage__nav-title {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.errpage__links {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-pack: center;
    justify-content: center;
    margin: 0 -6px;
    padding: 0;
    list-style: none;
}

.errpage__links-item {
    margin: 6px;
}

.errpage__links-link {
    display: block;
    padding: 10px 22px;
    border: 1px solid #24bcdc;
    border-radius: 999px;
    font-size: 15px;
    color: #0e7a8f;
    text-decoration: none;
}

.errpage__links-link:hover,
.errpage__links-link:focus {
    background: #24bcdc;
    color: #fff;
}

@media (max-width: 768px) {
    .errpage {
        padding-top: 48px;
        padding-bottom: 64px;
    }

    .errpage__code {
        font-size: 64px;
    }

    .errpage__title {
        font-size: 22px;
    }
}
