@charset "utf-8";
/* ============================================================
   bs5-adapt.css — tw.goodhope86.com 全站 Bootstrap 5.3.3 適配層
   載入順序：bootstrap5/bootstrap.min.css → goodhope86.css → 本檔
   作用：
   1) 補上 BS5 移除、舊頁面仍在用的 BS3 類（img-responsive/thumbnail 等）
   2) 統一字號體系（解決桌面字體過小）
   3) 主導航 / 頂欄 / 麵包屑 / FAQ 手風琴皮膚
   ============================================================ */

/* ---------- 1. 字號體系 ---------- */
body {
    font-size: 16px;
    line-height: 1.7;
}
h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.3; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); line-height: 1.35; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
p  { font-size: 1rem; }

/* ---------- 2. BS3 → BS5 相容類映射 ---------- */
.img-responsive { max-width: 100%; height: auto; }
.pull-left  { float: left !important; }
.pull-right { float: right !important; }
.text-left  { text-align: left !important; }
.text-right { text-align: right !important; }
.well {
    min-height: 20px; padding: 19px; margin-bottom: 20px;
    background-color: #f5f5f5; border: 1px solid #e3e3e3; border-radius: 8px;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.05);
}
.thumbnail {
    display: block; padding: 4px; margin-bottom: 20px; line-height: 1.7;
    background-color: #fff; border: 1px solid #dee2e6; border-radius: 8px;
    transition: border-color .2s ease;
}
.thumbnail > img { margin-left: auto; margin-right: auto; }
a.thumbnail:hover, a.thumbnail:focus { border-color: #ff6600; }
.badge {
    display: inline-block; padding: 3px 8px; font-size: 12px; font-weight: 700;
    line-height: 1; color: #fff; text-align: center; white-space: nowrap;
    vertical-align: baseline; border-radius: 10px; background-color: #6c757d;
}
.badge:empty { display: none; }
.btn-default { background: #fff; color: #333; border: 1px solid #ccc; }
.btn-default:hover { background: #e9ecef; color: #333; }
.btn-primary { background: #0d6efd; color: #fff; border: 1px solid #0d6efd; }
.btn-success { background: #198754; color: #fff; border: 1px solid #198754; }
.btn-warning { background: #ffc107; color: #000; border: 1px solid #ffc107; }
.btn-danger  { background: #dc3545; color: #fff; border: 1px solid #dc3545; }
.btn-info    { background: #0dcaf0; color: #000; border: 1px solid #0dcaf0; }
.caret {
    display: inline-block; width: 0; height: 0; margin-left: .3em;
    vertical-align: middle; border-top: 4px dashed; border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}
.label {
    display: inline-block; padding: .2em .6em .3em; font-size: 75%;
    font-weight: 700; line-height: 1; color: #fff; text-align: center;
    white-space: nowrap; vertical-align: baseline; border-radius: .25em;
}
.label-default { background-color: #777; }
.label-success { background-color: #5cb85c; }
.label-primary { background-color: #337ab7; }
.panel {
    margin-bottom: 20px; background-color: #fff;
    border: 1px solid transparent; border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.panel-default { border-color: #ddd; }
.panel-default > .panel-heading {
    color: #333; background-color: #f5f5f5; border-color: #ddd;
    padding: 10px 15px; border-bottom: 1px solid transparent;
    border-top-left-radius: 7px; border-top-right-radius: 7px;
}
.panel-body { padding: 15px; }
.panel-title { font-size: 1.05rem; margin-top: 0; margin-bottom: 0; }
.collapse.in { display: block; }
/* col-xs-N → BS5 等效 */
.col-xs-1  { flex: 0 0 auto; width: 8.33333333%; }
.col-xs-2  { flex: 0 0 auto; width: 16.66666667%; }
.col-xs-3  { flex: 0 0 auto; width: 25%; }
.col-xs-4  { flex: 0 0 auto; width: 33.33333333%; }
.col-xs-5  { flex: 0 0 auto; width: 41.66666667%; }
.col-xs-6  { flex: 0 0 auto; width: 50%; }
.col-xs-7  { flex: 0 0 auto; width: 58.33333333%; }
.col-xs-8  { flex: 0 0 auto; width: 66.66666667%; }
.col-xs-9  { flex: 0 0 auto; width: 75%; }
.col-xs-10 { flex: 0 0 auto; width: 83.33333333%; }
.col-xs-11 { flex: 0 0 auto; width: 91.66666667%; }
.col-xs-12 { flex: 0 0 auto; width: 100%; }
@media (max-width: 767.98px) {
    .hidden-xs { display: none !important; }
    .visible-xs { display: block !important; }
}
@media (min-width: 768px) {
    .visible-xs { display: none !important; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    .hidden-sm { display: none !important; }
}
table.table-bordered, .table-bordered { border-collapse: collapse; }

/* ---------- 3. 頂部語言列 ---------- */
header .top { background: #f5f7fa; border-bottom: 1px solid #e9edf2; }
header .top p { margin: 6px 0; font-size: 15px; }
header .top a { font-style: normal; text-decoration: none; color: #0a3d6b; font-weight: 600; }
header .top a:hover { color: #ff6600; }

/* ---------- 4. 主導航（BS5） ---------- */
.navbar-gohope {
    background: #ff6600; padding: 0; min-height: 68px;
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.navbar-gohope .navbar-brand { padding: 8px 0; }
.navbar-gohope .navbar-brand img { height: 52px; width: auto; margin-left: 0; }
.navbar-gohope .navbar-nav .nav-link {
    color: #fff; font-weight: 600; font-size: 16.5px; padding: 22px 16px;
    /* 抵銷 goodhope86.css `.container a` 的斜體與底線 */
    font-style: normal; text-decoration: none;
}
.navbar-gohope .navbar-nav .nav-link:hover { color: #ffe0b3; text-decoration: none; }
.navbar-gohope .dropdown-menu {
    border: none; border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.14);
    padding: 8px 0; margin-top: 0;
}
.navbar-gohope .dropdown-item { padding: 9px 20px; color: #333; font-size: 15.5px; font-style: normal; text-decoration: none; }
.navbar-gohope .dropdown-item:hover { background: #fff3e6; color: #ff6600; }
.navbar-gohope .navbar-toggler {
    border: 1px solid rgba(255,255,255,.5); padding: 8px 12px; margin: 12px 0;
}
.navbar-gohope .navbar-toggler-icon { filter: brightness(0) invert(1); }
.oval {
    display: inline-block; background: #fff; color: #ff6600 !important;
    border-radius: 30px; padding: 8px 22px; font-weight: 700;
    font-size: 15.5px !important; line-height: 1.4 !important;
    text-decoration: none;
}
.oval:hover { background: #ffe0b3; color: #e05500 !important; text-decoration: none; }
@media (max-width: 991.98px) {
    .navbar-gohope .navbar-collapse { background: #ff6600; padding: 8px 18px 14px; }
    .navbar-gohope .nav-link { padding: 12px 8px !important; }
}

/* ---------- 5. 麵包屑（BS3 標記直接相容 BS5 flex 佈局） ---------- */
.breadcrumb { margin-top: 88px; margin-bottom: 0; background: transparent; padding: 8px 0; font-size: 15px; }
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li + li::before {
    content: "/"; padding: 0 8px; color: #adb5bd;
    float: left; display: inline-block;
}
.breadcrumb a { font-style: normal; text-decoration: none; color: #0a3d6b; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .active, .breadcrumb li.active { color: #64748b; }

/* ---------- 6. FAQ 手風琴（BS5） ---------- */
.faq-wrap { max-width: 920px; margin: 40px auto; padding: 0 16px; }
.faq-wrap > h2 {
    font-size: 1.7rem; font-weight: 700; color: #0a3d6b;
    text-align: center; margin-bottom: 24px;
}
.faq-accordion .accordion-item {
    border: 1px solid #e2eaf3; border-radius: 12px !important; overflow: hidden;
    margin-bottom: 12px; box-shadow: 0 2px 10px rgba(10,61,107,.05); background: #fff;
}
.faq-accordion .accordion-button {
    font-size: 1.08rem; font-weight: 600; color: #0a3d6b; padding: 16px 20px; background: #f8fbfe;
}
.faq-accordion .accordion-button:not(.collapsed) {
    background: #eaf3fb; color: #08518a; box-shadow: inset 0 0 0 rgba(0,0,0,0);
}
.faq-accordion .accordion-button:focus { box-shadow: none; border-color: transparent; }
.faq-accordion .accordion-body {
    font-size: 1.02rem; line-height: 1.8; color: #334155; padding: 16px 20px 18px;
}

/* ---------- 7. 圖片防溢出 ---------- */
img { max-width: 100%; height: auto; }
.img-thumbnail { max-width: 100%; }

/* ---------- 8. 列表黑點修正（主導航 / 下拉選單 / 麵包屑 / 分頁） ----------
   問題：goodhope86.css 有一條全站規則 `ul li { list-style-type: disc; }`，
   它直接寫在 <li> 上（而非 <ul>），會蓋掉 BS5 由父層 <ul>（.navbar-nav /
   .dropdown-menu / .breadcrumb …）繼承下來的 list-style:none，導致頁首導航
   每個選單項前方都出現一顆黑點。
   對策：本檔載入順序在 goodhope86.css 之後，且以下選擇器為「類別 + 元素」
   （優先級高於 goodhope86.css 的「元素 + 元素」），可穩定復位；
   僅針對元件型清單，不影響內文中的圓點清單（.uldian / .good / .good28 …）。 */
.navbar li,
.navbar-nav > li,
.navbar-nav li,
.navbar-nav .nav-item,
.navbar-gohope li,
.nav li,
.nav > li,
.nav-item,
.nav-tabs > li,
.nav-pills > li,
.dropdown-menu > li,
.dropdown-menu li,
.dropdown-menu > li > a,
header .top li,
.breadcrumb > li,
.breadcrumb li,
.pagination > li,
.pagination li,
.pager > li,
.pager li,
.list-group > li,
.list-group li,
.list-inline > li,
.list-inline li,
.carousel-indicators > li,
.carousel-indicators li {
    list-style: none;
    list-style-type: none;
}

/* 下拉選單：去掉 ul 預設縮排，避免選單項左縮進不一致 */
.navbar-gohope .dropdown-menu,
.dropdown-menu {
    padding-left: 0;
}
.dropdown-menu > li > a { display: block; }
