/* ===== CSS 變數定義 ===== */
:root {
    --primary-orange: #D14900;
    --secondary-beige: #F8F4ED;
    --text-dark: #252525;
    --white: #ffffff;
}
html {
    overflow-x: hidden;
    /* 修正固定導航列（fixed-top）造成的錨點定位偏移 */
    scroll-padding-top: 70px;
}
/* ===== utilities ===== */

@media (min-width: 992px) {
    .ps-lg-6 {
        padding-left: 6rem !important;
    }
}

.color-orange {
    color: var(--primary-orange) !important;
}

/* ===== 全局樣式 ===== */
body {
    font-family: 'Noto Sans TC', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    width: 100%;
}

hr {
    background-color: #252525;
    opacity: 1;
    margin-left: auto;
    margin-right: auto;
}

ol,
li {
    list-style-type: none;
    padding-left: 0;
}

.bg-paper {
    background-image: url(./img/paper-texture.png);
    background-repeat: repeat;
}

.bg-beige {
    background-color: var(--secondary-beige);
}

.bg-dark-beige {
    background-color: #F7F5EE;
}

.card-brown {
    background-color: #783300;
}

/* ===== 無障礙焦點樣式 ===== */
*:focus {
    outline: 3px solid #0066cc;
    outline-offset: 2px;
}

.cus-brown{
    color: #783300;
}

/* ===== 導航樣式 ===== */
.navbar {
    background-image: url(./img/paper-texture.png);
    background-repeat: repeat;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    padding: 0.5rem 0;
}


.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 25px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.navbar-nav button.nav-link {
    background: transparent;
    border: 0;
    font-family: inherit;
    font-size: inherit;
    font-weight: 500;
    line-height: inherit;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    background-color: var(--secondary-beige);
    color: var(--text-dark) !important;
    border-radius: 6px;
    ;
}

.navbar-toggler-icon img {
    width: 100%;
}

.dropdown-menu {
    background-image: url(./img/paper-texture.png);
    background-repeat: repeat;
    border-radius: 0 0 6px 6px;
    border: none;
}

.dropdown-menu[data-bs-popper] {
    margin-top: 1.125rem;
}

.dropdown-item {
    padding: .3rem 1rem;
}

.dropdown-item:focus,
.dropdown-item:hover {
    background: transparent;
    color: var(--primary-orange);
}

.btn-event {
    background-color: var(--primary-orange) !important;
    border: none !important;
    color: white !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 6px !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-event:hover,
.btn-event:focus {
    background-color: #e55a2b !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.btn-event:focus-visible {
    outline: 4px solid #0066cc !important;
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.35), 0 4px 15px rgba(255, 107, 53, 0.4);
}

.mini-bcrumbs span {
    font-size: 1rem;
    color: #783300;
    font-weight: 500;
}

.mini-bcrumbs img {
    max-width: 1rem;
}

.accesskey-content {
    line-height: 1rem;
    text-decoration: none;
    color: #00E;
}

/* ===== 主視覺區塊 ===== */
.hero-section {
    background-color: #252525;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    margin-top: 70px;
    overflow: hidden;
}

.hero-img {
    object-fit: cover;
    width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.1em;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    z-index: 30;
    pointer-events: none;
}

/* ===== 內容區塊 ===== */
.content-section-card {
    background-image: url(./img/airplan-deco-bg.webp);
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    padding: 5rem 0;
}

.section-title {
    font-size: 3.125rem;
    font-weight: 700;
    letter-spacing: 0.313rem;
    margin-bottom: 1rem;
    line-height: 130%;
}

.section-subtitle {
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: 0.188rem;
    line-height: 150%;
}

.section-subtitle-light {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 150%;
    letter-spacing: 0.15rem;

}

.section-subtitle-light-30 {
    font-size: 1.875rem;
    font-weight: 400;
    line-height: 150%;
}

.section-description {
    font-size: 1.125rem;
    line-height: 200%;
    letter-spacing: 0.079rem;
    font-weight: 400;
}

/* ===== 機場卡片 ===== */
.airport-card {
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    border: none;
}


.image-shadow {
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.card-body {
    padding: 1.5rem 0;
}

.card-title {
    font-size: 1.875rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.btn-detail {
    background-color: var(--primary-orange);
    border: none;
    color: white;
    padding: 0.625rem 1rem;
    border-radius: 6px;
    font-size: 1.125rem;
    font-weight: 500;
    width: 100%;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-detail:hover,
.btn-detail:focus {
    background-color: #e55a2b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.btn-detail:focus-visible {
    outline: 4px solid #0066cc;
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.35), 0 4px 15px rgba(255, 107, 53, 0.4);
}

/* ===== 互動區塊 ===== */
.interactive-section {
    background-image: url(./img/interactive-bg.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 8rem 0;
}

.section-description-lg {
    font-size: 1.875rem;
    font-weight: 400;
    text-align: center;
    margin: 5rem auto;
    line-height: 1.6;
}

.btn-explore {
    background-color: var(--primary-orange);
    border: none;
    color: white;
    padding: 1rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
    text-decoration: none;
    max-width: 250px;
}

.btn-explore:hover,
.btn-explore:focus {
    background-color: #e55a2b;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-explore:focus-visible {
    outline: 4px solid #0066cc;
    outline-offset: 4px;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.35), 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* ===== 松山機場內容區塊 ===== */
#songshan-intro {
    background-image: url(./img/songshan-deco-bg-1.webp);
    background-size: cover;
    background-position: 70% 0;
    background-repeat: no-repeat;
}

#songshan-art-hello {
    background-image: url(./img/hello-taiwan-deco-bg.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 5% 0 7% 0;
}

#songshan-art-kite-flying {
    background-color: #F7F5EE;
    background-image: url(./img/kite-flying-deco-bg.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 5% 0 5% 0;
}

#aviation-building-art {
    background-image: url(./img/aviation-building-art-deco-bg-top.webp), url(./img/aviation-building-art-deco-bg-bottom.webp);
    background-size: contain, contain;
    background-position: top left, bottom right;
    background-repeat: no-repeat, no-repeat;
}

.art-card {
    padding-bottom: 50px;
}

.art-card .card-img-top {
    border-radius: 0;
}

.toggle-image {
    border-radius: 0;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.art-title {
    font-size: 1.875rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.188rem;
    margin: 0;
}

.art-sub {
    font-size: 1.125rem;
    font-style: normal;
    font-weight: 400;
    line-height: 200%;
    /* 36px */
    letter-spacing: 0.063rem;
}

.big-index {
    color: var(--primary-orange);
    font-size: 6.25rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0;
}

/* ===== 桃園機場內容區塊 ===== */
#taoyuan-intro {
    background-image: url(./img/taoyuan-intro-deco-bg.svg), url(./img/paper-texture.png);
    background-size: cover, auto;
    background-position: top center, center;
    background-repeat: no-repeat, repeat;
}

@media screen and (min-width: 1700px) {
    #taoyuan-intro {
        background-size: 100%, auto;
        background-position: center 100%, center;
    }

}

.btn-more {
    border: none;
    background: none;
    color: #783300;
    font-weight: 500;
    font-size: 1rem;
    padding: 0;
}

.btn-more .icon-down {
    position: relative;
    top: -2px;
    margin-left: 5px;
}

#taoyuan-third {
    background-image: url(./img/taoyuan-third-bg.svg);
    background-size: contain;
    background-position: bottom center;
    background-repeat: no-repeat;
    padding-bottom: 23%;
}

#cus-poem {
    border: 1px solid #783300;
    padding: 5%;
}

#cus-poem p {
    color: #783300;
    font-size: 1.125rem;
    font-style: normal;
    font-weight: 400;
    line-height: 200%;
    /* 36px */
    letter-spacing: 0.079rem;
    padding-bottom: 25px;
}

/* ===== 臺中機場內容區塊 ===== */

#taichung-intro {
    background-image: url(./img/taichung-intro-deco-bg.webp), url(./img/paper-texture.png);
    background-size: contain, auto;
    background-position: left bottom, center;
    background-repeat: no-repeat, repeat;
}

#taichung-features-1 {
    background-image: url(./img/taichung-art-deco-bg-1.svg);
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
}

#taichung-features-2 {
    background-image: url(./img/taichung-art-deco-bg-2.svg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-bottom: 9.375rem;
}

/* ===== 高雄機場藝術品區塊 ===== */
#kaohsiung-intro {
    background-image: url(./img/kaohsiung-intro-deco.svg), url(./img/paper-texture.png);
    background-size: cover, auto;
    background-position: left bottom, center;
    background-repeat: no-repeat, repeat;
}

#future-terminal {
    background-image: url(./img/future-terminal-deco.svg);
    background-size: cover;
    background-position: bottom center;
    background-repeat: no-repeat;
}

#kaohsiung-features-1 {
    background-color: var(--secondary-beige);
    background-image: url(./img/dragon-deco.webp);
    background-size: 450px auto;
    background-position: 80% bottom;
    background-repeat: no-repeat;
}

#kaohsiung-features-1 .cus-content-r {
    max-width: 650px;
}

#kaohsiung-features-2 {
    background-image: url(./img/kaohsiung-features-deco-1.webp), url(./img/paper-texture.png);
    background-size: cover, auto;
    background-position: bottom center, center;
    background-repeat: no-repeat, repeat;
}

#kaohsiung-features-3 {
    background-image: url(./img/kaohsiung-features-deco-2.webp), url(./img/paper-texture.png);
    background-size: cover, auto;
    background-position: top center, center;
    background-repeat: no-repeat, repeat;
}

#kaohsiung-features-5 {
    background-color: var(--secondary-beige);
}


/* ===== 其他機場內容區塊 ===== */
#hualien-intro {
    background-image: url(./img/montain-line-deco.svg);
    background-size: contain;
    background-position: center bottom;
    background-repeat: no-repeat;
}

#tainan-intro .container {
    border-bottom: 1px solid #000000;
}

#tainan-features {
    background-image: url(./img/tainan-feature-deco.svg);
    background-size: contain;
    background-position: top center;
    background-repeat: no-repeat;
    padding-top: 150px;
}

#chiayi-intro {
    background-image: url(./img/chiayi-intro-bg.svg);
    background-size: cover;
    background-position: bottom center;
    background-repeat: no-repeat;
}

#taitung-intro-row {
    position: relative;
    z-index: 2;
}

#taitung-cus-deco {
    margin-top: -200px;
    z-index: 1;
    position: relative;
}

#taitung-features {
    background-image: url(./img/taitung-deco-2.svg);
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
}

@media screen and (max-width: 991px) {
    #taitung-cus-deco {
        margin-top: 0;
    }
}

/* ===== 離島機場內容區塊 ===== */
#offshore-intro {
    background-image: url(./img/kinmen-deco-1.svg), url(./img/paper-texture.png);
    background-size: cover, auto;
    background-position: center, center;
    background-repeat: no-repeat, repeat;
}

#kinmen-intro {
    background-image: url(./img/kinmen-deco-2.svg), url(./img/paper-texture.png);
    background-size: 18.75rem, auto;
    background-position: 90% 98%, center;
    background-repeat: no-repeat, repeat;
}

#mazu-intro {
    background-image: url(./img/mazu-deco-bg.svg), url(./img/paper-texture.png);
    background-size: cover, auto;
    background-position: top center, center;
    background-repeat: no-repeat, repeat;
}

#mazu-n-intro {
     background-image: url(./img/mazu-n-deco.webp), url(./img/paper-texture.png);
    background-size: contain, auto;
    background-position: bottom center, center;
    background-repeat: no-repeat, repeat;
}

#penghu-intro {
    background-color: var(--secondary-beige);
    background-image: url(./img/penghu-deco-bg-1.svg);
    background-size: 42.5rem;
    background-position: 100% 90%;
    background-repeat: no-repeat;
}

#penghu-intro .container {
    border-bottom: solid 1px #000000;
    padding-top: 3.125rem;
    padding-bottom: 3.125rem;
}

#penghu-features {
    background-image: url(./img/penghu-feature-deco-bg.svg), url(./img/penghu-deco-fish.svg);
    background-size: contain, 600px;
    background-position: top center, 100% 78%;
    background-repeat: no-repeat, no-repeat;
}

#qimei-intro {
    background-image: url(./img/qimei-bg.svg), url(./img/paper-texture.png);
    background-size: cover, auto;
    background-position: top center, center;
    background-repeat: no-repeat, repeat;
}

#lanyu-intro {
    background-image: url(./img/lanyu-bg.svg), url(./img/paper-texture.png);
    background-size: 100%, auto;
    background-position: bottom center, center;
    background-repeat: no-repeat, repeat;
    padding-bottom: 10%;
}

#ludao-intro {
    background-color: var(--secondary-beige);
    background-image: url(./img/ludao-bg-1.svg);
    background-size: 100%;
    background-position: center bottom 20%;
    background-repeat: no-repeat;
}

#ludao-features {
    background-color: var(--secondary-beige);
    background-image: url(./img/ludao-bg-2.svg);
    background-size: 100%;
    background-position: center bottom;
    background-repeat: no-repeat;
    padding-bottom: 20%;
}


#hengchun-intro {
    background-image: url(./img/hengchun-bg.webp), url(./img/paper-texture.png);
    background-size: 100%, auto;
    background-position: center left, center;
    background-repeat: no-repeat, repeat;
}

/* ===== 建築特殊功能區塊 ===== */
.cus-video-card {
    border: solid 0.625rem #ffffff;
}

/* ===== 頁尾 ===== */
.footer {
    background-image: url(./img/paper-texture.png);
    background-repeat: repeat;
    padding: 3rem 0 2rem;
    box-shadow: 0 -4px 5px 0 rgba(164, 164, 164, 0.20);
}

.footer-brand {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-info {
    margin-bottom: 0.5rem;
}

.footer-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.footer-link:hover,
.footer-link:focus {
    color: inherit;
}

.footer-link:focus-visible {
    outline: 3px solid #0066cc;
    outline-offset: 3px;
    border-radius: 4px;
}

.footer-copyright {
    border-top: 1px solid #828282;
    padding-top: 1rem;
    margin-top: 2rem;
    text-align: center;
}

.CAA {
    width: 130px;
}

/* ===== 響應式設計 ===== */
@media (max-width: 1199.98px) {
    /* 行動版選單高度限制，避免超出可視範圍無法點擊 */
    .navbar-collapse {
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        padding: 10px;
    }
    /* 行動版 dropdown 改為流式排列，不溢出容器 */
    .navbar-collapse .dropdown-menu {
        position: static;
        border: none;
        background: transparent;
        box-shadow: none;
    }

    .btn-event {
        margin-top: 10px;
    }
}

@media (max-width: 1200px) {

    .interactive-section {
        background-image: url(./img/interactive-bg-sm.webp);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
}


@media (max-width:991px) {

    #kaohsiung-features-1 .container-fluid,
    #kaohsiung-features-1 .cus-content-r {
        max-width: 728px;
    }

    .cus-reverse-lg {
        flex-direction: column-reverse;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.5rem;
        line-height: 2.125rem;
    }

    .card-title {
        font-size: 1.625rem;
    }

    .section-description-lg {
        font-size: 1.23rem;
        margin: 2.5rem auto;
    }

    .big-index {
        font-size: 3rem;
    }

    .art-card {
        padding-bottom: 10px;
    }

    #taichung-intro {
        background-image: url(./img/taichung-intro-deco-bg.webp), url(./img/paper-texture.png);
        background-size: auto, auto;
        background-position: left center, center;
        background-repeat: no-repeat, repeat;
    }

    .cus-reverse {
        flex-direction: column-reverse;
    }

    #taichung-features-2 {
        padding-bottom: 3.125rem;
    }

    #tainan-features {
        padding-top: 100px;
    }

}

/* ===== 隱藏輔助文字 ===== */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ===== 回到頂端按鈕 ===== */
#back-to-top {
    display: none;
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 9999;
    background-color: var(--primary-orange);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-size: 1.5rem;
    cursor: pointer;
}

#back-to-top:focus-visible {
    outline: 4px solid #0066cc;
    outline-offset: 4px;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.35);
}

/* ===== 顯示跳到主要內容按鈕 ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    text-decoration: none;
    font-size: 1rem;
}

.sr-only:focus-visible {
    background: #fff;
    border: .125rem solid #55a5f0 !important;
    padding: .5rem;
    display: inline-block;
    z-index: 9999;
    border-radius: 1rem;
    color: #333;
    position: absolute !important;
    top: 0;
}

.sr-only-focusable:active,
.sr-only-focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/* ===== CSP Fix: Inline Styles as Classes ===== */
.section-mt-70 {
    margin-top: 70px;
}

.text-highlight {
    color: #D14900;
}

.pb-50 {
    padding-bottom: 50px;
}

.pb-200 {
    padding-bottom: 200px;
}

.max-w-800 {
    max-width: 800px;
}

.max-w-950 {
    max-width: 950px;
}

.max-w-1050 {
    max-width: 1050px;
}

.mt-40 {
    margin-top: 40px;
}

.text-nowrap {
    white-space: nowrap;
}
