﻿/* 基礎字型設定 */
body {
    font-family: "Helvetica Neue", "Helvetica", "Arial", "sans-serif", "Microsoft JhengHei";
}

/* 字型樣式 */
.thcs_font1 {
    font-size: 1.125em;
    font-weight: bold;
}

.thcs_font2 {
    font-size: 0.875em;
}

/* 引用區塊 */
blockquote:not([class]) {
    margin: 1em 40px;
    border-left: 4px solid #eaecf0;
    padding: 8px 32px;
}

/* 列表項目間距 */
li {
    margin-top: 10px;
}

/* 焦點樣式 */
a:focus {
    outline: 2px solid #0056b3 !important;
    outline-offset: 2px;
    position: relative;
    z-index: 9999;
}

/* JS 選單容器 */
#js-enabled-menu {
    display: flex;
    gap: 0;
}

/* 移除 Bootstrap 預設的下拉箭頭背景 */
.dropdown-toggle::after {
    display: none !important;
}

/* 按鈕樣式 */
.btn.btn-danger {
    border-radius: 0px;
    padding: 0.375rem 0.75rem;
}

/* 下拉選單容器 */
.dropdown {
    position: relative;
    display: inline-block;
}

/* 子選單 */
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    z-index: 1050;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 展開條件 */
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.dropdown.open .dropdown-menu {
    display: block;
}

/* 子選單項目 */
.dropdown-item {
    padding: 8px 16px;
    display: block;
    color: black;
    text-decoration: none;
}

    .dropdown-item:hover,
    .dropdown-item:focus {
        background-color: #f1f1f1;
        outline: none;
    }

/* ===== 自訂工具類別 ===== */

/* 容器上方間距 */
.mt-10 {
    margin-top: 10px;
}

/* Flex 靠右對齊 */
.justify-end {
    display: flex;
    justify-content: flex-end;
}

/* 字型調整區塊 Flex */
.font-adjust-wrapper {
    display: flex;
    align-items: center;
    justify-content: right;
    padding: 0;
}

/* 按鈕透明外框 */
.btn-outline-transparent {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

/* 搜尋框最大寬度 */
.search-input-width {
    max-width: 180px;
}

/* 搜尋按鈕垂直對齊 */
.btn-search-align {
    vertical-align: middle;
}

/* 圖片 100% 寬高 */
.img-full {
    width: 100%;
    height: 100%;
}

/* 標題文字樣式 */
.sitemap-title {
    color: black;
    font-size: 0.563em;
}

/* Logo 尺寸 */
.logo-img {
    width: 110px;
    height: 73px;
}

/* 頁尾文字樣式 */
.footer-text {
    font-size: 0.875em;
}

.footer-text-sm {
    font-size: 0.75em;
}

/* 連結列表文字大小 */
.link-text {
    font-size: 0.875em;
}

/* 頁尾機關名稱字距 */
.org-name {
    font-size: 0.875em;
    letter-spacing: 6px;
}

/* 頁尾 Logo 左間距 */
.footer-logo-text {
    margin-left: 1rem;
}

/* noscript 樣式 */
.noscript-alert {
    background-color: #fff3cd;
    padding: 1em;
    border: 1px solid #ffeeba;
}

.noscript-alert-title {
    font-size: 1.25em;
    color: #856404;
}

/* 隱藏元素 */
.hidden {
    display: none;
}

/* E政府圖片 */
.gov-img {
    width: 31px;
    height: 31px;
}

/* 無障礙圖片 */
.accessibility-img {
    width: 88px;
    height: 31px;
    border: 0;
}
