/* ===================================
   花蓮縣苗木線上申請系統 - 樣式表
   完全還原設計稿
   =================================== */
@charset "utf-8";
@import url('https://fonts.googleapis.com/css?family=Noto+Sans+TC:100,300,400,500,700,900|Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i&subset=chinese-traditional&display=swap');

@font-face {
    font-family: 'SoDoSans';
    font-style: normal;
    font-weight: 100;
    src: url(/objects/fonts/SoDoSans-Fonts/SoDoSans-Light.woff) format('woff'), url(/objects/fonts/SoDoSans-Fonts/SoDoSans-Light.ttf) format('truetype');
}

@font-face {
    font-family: 'SoDoSans';
    font-style: normal;
    font-weight: 400;
    src: url(/objects/fonts/SoDoSans-Fonts/SoDoSans-Regular.woff) format('woff'), url(/objects/fonts/SoDoSans-Fonts/SoDoSans-Regular.ttf) format('truetype');
}

@font-face {
    font-family: 'SoDoSans';
    font-style: normal;
    font-weight: 700;
    src: url(/objects/fonts/SoDoSans-Fonts/SoDoSans-Bold.woff) format('woff'), url(/objects/fonts/SoDoSans-Fonts/SoDoSans-Bold.ttf) format('truetype');
}

@font-face {
    font-family: 'SoDoSans';
    font-style: normal;
    font-weight: 900;
    src: url(/objects/fonts/SoDoSans-Fonts/SoDoSans-Black.woff) format('woff'), url(/objects/fonts/SoDoSans-Fonts/SoDoSans-Black.ttf) format('truetype');
}
/* CSS 變數定義 */
:root {
    /* 主色系 */
    --primary-green: #5BB5A2;
    --primary-gray: #e4e4e4;
    --dark-green: #4A9B8E;
    --light-green: #6FC5B3;
    --primary-blue: #4A9FC7;
    --primary-green: #4990a4;
    --primary-orange: #F5A962;
    --coral: #E8744F;
    /* 中性色 */
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --m-gray: #ccc;
    --light-yellow: #fffcee;
    --gray: #E0E0E0;
    --dark-gray: #666666;
    --text-dark: #333333;
    --text-blue: #134f85;
    --text-green: #1b8b41;
    --footer-dark: #2C3E50;
    /* 間距 */
    --spacing-xx: 5px;
    --spacing-xs: 8px;
    --spacing-ss: 10px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-xxl: 64px;
    /* 陰影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    /* 圓角 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;

    /* 無障礙焦點指示 */
    --focus-outline: 0 0 0 3px rgba(239, 140, 62, 0.5);
    --focus-outline-dashed: 0 0 0 3px #ef8c3e;
    --focus-shadow: 0 0 0 2px rgba(239, 140, 62, 0.3);
}

/* 全域重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

html {
    scroll-behavior: smooth;
    position: relative;
    min-height: 100%;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* 字體 */
html, body {
    font-family: 'Noto Sans TC','微軟正黑體','Microsoft JhengHei','Apple LiGothic Medium',sans-serif;
}

:before, :after {
    font-family: 'Noto Sans TC','微軟正黑體','Microsoft JhengHei','Apple LiGothic Medium',sans-serif,'FontAwesome';
}


img {
    max-width: 100%;
    height: auto;
    border: none;
    display: block;
}


div, a {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

    a, a:hover, a:focus, a:active {
        text-decoration: none;
    }

ul, ol, li {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.headNav {
    max-width: 90%;
    width: 90%;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}


/* ===================================
   Header 導航欄
   =================================== */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    display: block;
}

    .logo img {
        max-width: 250px;
        width: 100%;
        height: auto;
    }

.menulogo {
    font-size: 0;
    text-indent: -9999px;
    display: block;
    z-index: 10;
}


.logo-subtitle {
    font-size: 11px;
    color: var(--dark-gray);
    line-height: 1.2;
}

/* Navigation */
.nav {
    position: relative;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

    .nav-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--text-dark);
        transition: all 0.3s ease;
    }

.nav-menu {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

    .nav-menu li {
        display: block;
    }

        .nav-menu li a {
            font-weight: 500;
            font-size: 1.25rem;
            letter-spacing: 1px;
            color: var(--text-dark);
            padding: 8px 14px;
            border-radius: var(--radius-sm);
            position: relative;
            text-align: center;
            cursor: pointer;
            display: block;
            -webkit-transition: -webkit-transform .3s ease;
            transition: -webkit-transform .3s ease;
            -o-transition: transform .3s ease;
            transition: transform .3s ease;
            transition: transform .3s ease, -webkit-transform .3s ease;
            -webkit-transform: translateY(0);
            -ms-transform: translateY(0);
            transform: translateY(0);
            white-space: nowrap; /* ✅ 防止文字換行 */
        }

            .nav-menu li a:hover {
                color: var(--primary-green);
                background: rgba(91, 181, 162, 0.1);
                -webkit-transform: translateY(-5px);
                -ms-transform: translateY(-5px);
                transform: translateY(-5px);
            }

.btn-consultation {
    background: var(--primary-green);
    color: var(--white) !important;
    padding: 10px 20px !important;
    border-radius: var(--radius-md);
    font-weight: 500;
    border-radius: 8px;
}

    .btn-consultation:hover {
        background: #3D8AB0 !important;
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
        transition: all 0.3s ease;
    }


.header-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.header-top-row {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
}

.btn-nav-home, .btn-sitemap {
    padding: 6px 12px;
    text-decoration: none;
    font-size: 14px;
    color: #495057;
    transition: all 0.2s;
}

    .btn-nav-home .Returnhomeicon {
        vertical-align: top;
        font-size: 0;
        display: inline-block;
        width: 28px;
        height: 28px;
        text-indent: -9999px;
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center;
        background-color: transparent;
        background-image: url(../../images/icon/main_home.svg);
        margin-right: 8px;
        opacity: 0.5;
    }

    .btn-sitemap .Sitemapicon {
        vertical-align: top;
        font-size: 0;
        display: inline-block;
        width: 28px;
        height: 28px;
        text-indent: -9999px;
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center;
        background-color: transparent;
        background-image: url(../../images/icon/menu-moble-nav.svg);
        margin-right: 8px;
        opacity: 0.5;
    }

    .btn-nav-home:hover, .btn-sitemap:hover {
        background: #e9ecef;
        color: #212529;
    }

@media (max-width: 768px) {
    .header-top-row {
        display: none;
    }

}

/* ===================================
   Hero 主視覺區
   =================================== */
.hero {
    position: relative;
    min-height: 525px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../images/bg/hero.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 70%;
    z-index: -1;
}

.hero-content {
    background: rgba(255, 255, 255, 0.65);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 600px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.hero-titleBox {
    display: inline-block;
    line-height: 1.5;
}

.hero-title {
    font-size: 1.625rem;
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    color: var(--text-blue);
}

.highlight-green {
    color: var(--text-green);
    font-size: 2.25rem;
}

.highlight-orange {
    color: var(--primary-orange);
    letter-spacing: 2px;
    font-size: 1.375rem;
}

.hero-description {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--dark-gray);
    margin-bottom: var(--spacing-ss);
    margin-top: var(--spacing-xs);
}

.hero-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* 按鈕樣式 */
.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 35px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 1px;
}


/* 按鈕樣式 */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}


.btn-primary {
    background: var(--primary-green);
    color: var(--white);
}

    .btn-primary:hover {
        background: #3D8AB0;
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-green);
}

    .btn-secondary:hover {
        background: var(--primary-blue);
        color: var(--white);
    }

/* ===================================
   綠美化區塊
   =================================== */
.green-section {
    padding: var(--spacing-xxl) 0;
    background: var(--light-yellow);
}

.section-title {
    text-align: center;
    font-size: 1.875rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xl);
    letter-spacing: 1.5px;
}

.green-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: stretch;
}

/* 最新消息 */
.news-list {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    max-height: 550px;
}

/* 右側統計數據容器 */
.stats-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.news-title {
    font-size: 1.625rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    padding-bottom: 5px;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
    position: relative;
    text-align: center;
}

    .news-title::before {
        width: 160px;
        height: 3px;
        content: "";
        margin: auto;
        text-align: center;
        display: block;
        top: 47px;
        position: relative;
        background-color: var(--primary-green);
    }

.news-items {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.news-item {
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--gray);
}

    .news-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

.news-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
}

.news-date {
    font-size: 14px;
    color: var(--dark-gray);
}

.news-badge {
    background: var(--coral);
    color: var(--white);
    padding: 4px 20px;
    letter-spacing: 1px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 400;
}

.news-heading {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.news-excerpt {
    font-size: 1.063rem;
    color: var(--dark-gray);
    line-height: 1.6;
    -webkit-line-clamp: 1;
    display: -webkit-box;
    overflow: hidden;
    box-sizing: border-box;
    margin-top: 5px;
    -webkit-box-orient: vertical;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
}
/* 統計數據 */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.stat-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

.stat-number {
    font-size: 2.813rem;
    font-weight: 500;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 1rem;
    color: var(--dark-gray);
}

/* 了解更多區塊 */
.learn-more-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
}

.btn-more {
    background: var(--primary-green);
    color: var(--white);
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

    .btn-more:hover {
        background: #3D8AB0;
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

.illustration {
    animation: float 3s ease-in-out infinite;
}

    .illustration img {
        max-width: 225px;
        height: auto;
    }

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

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

/* ===================================
   樹種展示區
   =================================== */
.species-section {
    padding: var(--spacing-xxl) 0;
    background: var(--white);
}

.species-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: var(--spacing-md);
}
.section-footer {
    text-align: center;
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md) 0;
}
/* 主要樹種卡片 */
.species-main {
    grid-row: 1 / 3;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

    .species-main:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }

.species-image {
    position: relative;
    cursor: pointer;
    width: 100%;
    max-width: 100%;
    padding: 0;
    transition: all 0.2s ease-in-out;
    min-height: 300px;
    max-height: 300px;
    height: 300px;
    overflow: hidden;
}

    .species-image img {
        display: block;
        width: 100%;
        height: 100%;
        position: absolute;
        left: 0px;
        top: 0px;
        -o-object-fit: cover;
        object-fit: cover;
    }


    .species-image a {
        display: block;
        width: 100%;
        height: 0;
        margin: auto;
        padding-bottom: 56%;
        position: relative;
    }



.species-info {
    padding: var(--spacing-lg);
    font-size: 1rem;
}

.species-name {
    font-size: 1.75rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
    display: -webkit-box;
    width: 100%;
    line-height: 155%;
    overflow: hidden;
    box-sizing: border-box;
    -webkit-box-orient: vertical;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
}

.species-description {
    color: var(--dark-gray);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-xs);
    font-size: 1rem;
    color: var(--text-dark);
    display: -webkit-box;
    width: 100%;
    line-height: 155%;
    overflow: hidden;
    box-sizing: border-box;
    -webkit-box-orient: vertical;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
}

.species-tags {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.tag {
    background: var(--primary-green);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
}

.species-link {
    color: var(--text-dark);
    font-size: 0.938rem;
    font-weight: 400;
    padding: 5px 18px;
    text-decoration: none;
    border-radius: 5px;
    background-color: var(--primary-gray);
}

    .species-link:hover {
        color: var(--dark-green);
    }

/* 其他樹種卡片 */
.species-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

.species-card-image {
    position: relative;
    cursor: pointer;
    width: 100%;
    max-width: 100%;
    padding: 0;
    transition: all 0.2s ease-in-out;
    width: 100%;
    min-height: 150px;
    max-height: 150px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

    .species-card-image img {
        display: block;
        width: 100%;
        height: 100%;
        position: absolute;
        left: 0px;
        top: 0px;
        -o-object-fit: cover;
        object-fit: cover;
    }


.species-card-imageS a {
    display: block;
    width: 100%;
    height: 0;
    margin: auto;
    padding-bottom: 56%;
    position: relative;
}

.species-card-content {
    padding: var(--spacing-sm);
}

.species-card-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.species-card-desc {
    font-size: 14px;
    color: var(--dark-gray);
}

/* ===================================
   申請對象區
   =================================== */
.applicant-section {
    padding: var(--spacing-xxl) 0;
    background: var(--light-gray);
}

.applicant-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.applicant-carousel {
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.applicant-grid {
    display: flex;
    transition: transform 0.8s ease-in-out;
    gap: var(--spacing-md);
}

.applicant-card {
    position: relative;
    width: calc(25% - 18px);
    min-width: calc(25% - 18px);
    height: 200px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

    .applicant-card:hover {
        transform: translateY(-8px);
        box-shadow: none
    }

.applicant-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.applicant-bg-1 {
    border-top-left-radius: 80px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 20px;
    background-color: #dbecf4;
    box-shadow: var(--shadow-sm);
}

.applicant-bg-2 {
    border-top-left-radius: 20px;
    border-top-right-radius: 80px;
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 20px;
    background-color: #c7e0ca;
    box-shadow: var(--shadow-sm);
}

.applicant-bg-3 {
    border-top-left-radius: 80px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 20px;
    background-color: #dbecf4;
    box-shadow: var(--shadow-sm);
}

.applicant-bg-4 {
    border-top-left-radius: 20px;
    border-top-right-radius: 80px;
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 20px;
    background-color: #c7e0ca;
    box-shadow: var(--shadow-sm);
}

.applicant-bg-5 {
    border-top-left-radius: 80px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 20px;
    background-color: #dbecf4;
    box-shadow: var(--shadow-sm);
}

.applicant-bg-6 {
    border-top-left-radius: 20px;
    border-top-right-radius: 80px;
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 20px;
    background-color: #c7e0ca;
    box-shadow: var(--shadow-sm);
}


.applicant-bg-1:hover, .applicant-bg-1:active, .applicant-bg-2:hover, .applicant-bg-2:active {
    box-shadow: none;
}

.applicant-title {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    top: 40%;
    transform: translateX(-50%);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-dark);
    text-align: center;
    z-index: 1;
    white-space: nowrap;
}

/* 輪播按鈕 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--white);
    border: 2px solid var(--primary-green);
    border-radius: 50%;
    font-size: 24px;
    color: var(--primary-green);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

    .carousel-btn:hover {
        background: var(--primary-green);
        color: var(--white);
        transform: translateY(-50%) scale(1.1);
    }

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

/* 輪播指示點 - 隱藏 */
.carousel-dots {
    display: none;
}

.applicant-title {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    z-index: 1;
}

/* ===================================
   常見問題區
   =================================== */
.faq-section {
    padding: var(--spacing-xxl) 0;
    background: var(--white);
}

.section-subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--dark-gray);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.faq-item {
    background: var(--white);
    border: 2px solid var(--gray);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

    .faq-item:hover {
        border-color: var(--primary-green);
        box-shadow: var(--shadow-sm);
    }

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg) var(--spacing-md);
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

    .faq-question:hover {
        background: var(--light-gray);
    }

    .faq-question[aria-expanded="true"] {
        background: var(--light-yellow);
    }

.faq-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.faq-text {
    flex: 1;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.5;
}

.faq-arrow {
    flex-shrink: 0;
    font-size: 1rem;
    color: var(--primary-green);
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-question[aria-expanded="true"] + .faq-answer {
    max-height: 1000px;
    padding: 0 var(--spacing-md) var(--spacing-lg);
}

.faq-answer-content {
    padding: var(--spacing-md);
    background: var(--light-gray);
    border-radius: var(--radius-md);
}

    .faq-answer-content p {
        margin-bottom: var(--spacing-sm);
        line-height: 1.8;
        color: var(--text-dark);
    }

        .faq-answer-content p:last-child {
            margin-bottom: 0;
        }

    .faq-answer-content ul {
        list-style: disc;
        padding-left: var(--spacing-lg);
        margin: var(--spacing-sm) 0;
    }

        .faq-answer-content ul li {
            margin-bottom: var(--spacing-xs);
            line-height: 1.8;
            color: var(--text-dark);
        }

    .faq-answer-content strong {
        color: var(--primary-green);
        font-weight: 600;
    }

    .faq-answer-content .note {
        display: block;
        margin-top: var(--spacing-md);
        padding: var(--spacing-sm) var(--spacing-md);
        background: rgba(91, 181, 162, 0.1);
        border-left: 4px solid var(--primary-green);
        border-radius: var(--radius-sm);
        font-size: 0.938rem;
        color: var(--dark-gray);
    }

    .faq-answer-content .warning {
        display: block;
        margin-bottom: var(--spacing-sm);
        padding: var(--spacing-sm) var(--spacing-md);
        background: rgba(232, 116, 79, 0.1);
        border-left: 4px solid var(--coral);
        border-radius: var(--radius-sm);
        color: var(--coral);
        font-weight: 600;
    }

.faq-more-wrapper {
    text-align: center;
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md) 0;
}

.btn-show-more {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 12px 32px;
    background: var(--white);
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-show-more:hover {
        background: var(--primary-green);
        color: var(--white);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    .btn-show-more .btn-arrow {
        transition: transform 0.3s ease;
        font-size: 0.875rem;
    }

    .btn-show-more.expanded .btn-arrow {
        transform: rotate(180deg);
    }

.faq-footer {
    text-align: center;
    margin-top: var(--spacing-xl);
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--light-yellow);
    border-radius: var(--radius-lg);
}

    .faq-footer p {
        font-size: 1.125rem;
        color: var(--text-dark);
        margin-bottom: var(--spacing-md);
        font-weight: 500;
    }

.btn-contact {
    display: inline-block;
    padding: 14px 40px;
    background: var(--primary-green);
    color: var(--white);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

    .btn-contact:hover {
        background: #3D8AB0;
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

/* ===================================
   Footer 頁腳
   =================================== */
.footer {
    background: var(--footer-dark);
    color: var(--white);
    padding: var(--spacing-xl) 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.footer-text {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

    .footer-links a {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.7);
        transition: color 0.3s ease;
    }

        .footer-links a:hover {
            color: var(--white);
        }

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

    .footer-contact li {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.7);
    }

.footer-bottom {
    padding: var(--spacing-md) 0;
    text-align: center;
}

    .footer-bottom p {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.5);
    }


/* ===================================
   響應式設計 - logo
   =================================== */
@media (max-width: 1440px) {
    .headNav {
        max-width: 95%;
        width: 95%;
        margin: 0 auto;
        padding: 0 var(--spacing-ss);
    }
}

@media (max-width: 1280px) {
    .logo {
        gap: 5px;
        margin-right: 10px;
    }

    .headNav {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        padding: 0 var(--spacing-ss);
    }

    .nav-menu {
        gap: var(--spacing-sm)
    }

        .nav-menu li a {
            letter-spacing: 0.5px;
            color: var(--text-dark);
            padding: 8px 10px;
        }
}
/* ===================================
   響應式設計 - 平板
   =================================== */



@media (max-width: 1024px) {

    /* Logo */
    .logo img {
        max-width: 180px;
        width: 180px;
    }

    .headNav {
        max-width: 100%;
        width: 100%;
        padding: var( --spacing-xs);
    }

    .nav-menu li a {
        padding: 8px 8px;
        font-size: 1.063rem;
    }

    .btn-consultation {
        padding: 7px 11px !important;
    }


    .container {
        padding: 0 var(--spacing-md);
    }

    .green-content {
        grid-template-columns: 1fr;
    }

    .species-grid {
        grid-template-columns: 1fr 1fr;
    }

    .species-main {
        grid-column: 1 / 3;
        grid-row: auto;
    }

    .applicant-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .applicant-card {
        min-width: calc(33.333% - 16px);
        width: calc(33.333% - 16px);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================================
   響應式設計 - 手機
   =================================== */
@media (max-width: 853px) {

    /* Header */
    .header {
        position: sticky;
        top: 0;
        z-index: 1000;
        background: var(--white);
        box-shadow: var(--shadow-sm);
    }

    .headNav {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .header-content {
        padding: var(--spacing-sm) var(--spacing-sm);
        position: relative;
    }

    /* 漢堡選單按鈕 - 美化版 */
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        padding: 10px;
        background: transparent;
        border: 2px solid var(--primary-green);
        border-radius: var(--radius-sm);
        cursor: pointer;
        z-index: 1002;
        position: relative;
        transition: all 0.3s ease;
    }

        .nav-toggle:hover {
            background: rgba(73, 144, 164, 0.1);
            border-color: var(--dark-green);
        }

        .nav-toggle span {
            display: block;
            width: 24px;
            height: 2px;
            background: var(--primary-green);
            border-radius: 2px;
            transition: all 0.3s ease;
            margin: 2px 0;
            position: absolute;
            top: 8px;
        }

            .nav-toggle span:nth-child(2) {
                top: 17px;
            }

            .nav-toggle span:nth-child(3) {
                top: 26px
            }

        /* 漢堡選單動畫 - X 形變換 */
        .nav-toggle.active {
            background: var(--primary-green);
            border-color: var(--primary-green);
        }

            .nav-toggle.active span {
                background: var(--white);
            }

                .nav-toggle.active span:nth-child(1) {
                    transform: rotate(45deg) translate(7px, 7px);
                    top: 10px;
                    left: 12px;
                    width: 30px;
                }

                .nav-toggle.active span:nth-child(2) {
                    opacity: 0;
                    transform: translateX(-20px);
                }

                .nav-toggle.active span:nth-child(3) {
                    transform: rotate(-45deg) translate(7px, -7px);
                    width: 30px;
                    left: 12px;
                    top: 25px;
                }

    /* 導航選單 */
    .nav {
        position: static;
    }



    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        margin: 0;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.4s ease, opacity 0.3s ease, visibility 0.3s ease;
        z-index: 999;
        border-top: 1px solid var(--light-gray);
    }

        .nav-menu.active {
            max-height: 600px; /* ✅ 增加高度 */
            opacity: 1;
            visibility: visible;
            padding: var(--spacing-xs);
        }

        .nav-menu li {
            width: 100%;
            margin: 0;
            padding: 0;
        }

            .nav-menu li a {
                display: block;
                width: 100%;
                padding: 10px 20px; /* ✅ 增加 padding */
                text-align: left;
                font-size: 1.063rem; /* ✅ 調整字體大小 */
                font-weight: 500;
                color: var(--text-dark);
                border-bottom: 1px solid var(--m-gray);
                border-radius: 0;
                transition: all 0.3s ease;
                transform: none;
                letter-spacing: 0.5px; /* ✅ 字距 */
            }

                .nav-menu li a:hover {
                    color: var(--primary-green);
                    padding-left: 30px; /* ✅ hover 時向右位移 */
                    transform: none;
                }

            .nav-menu li:last-child a {
                border-bottom: none;
                width: 90%;
                max-width: 90%;
                text-align: center;
            }

    /* 進度查詢按鈕 - 特別樣式 */
    .btn-consultation {
        background: var(--primary-green) !important;
        color: var(--white) !important;
        margin: 12px 16px 8px 16px; /* ✅ 調整間距 */
        padding: 14px 20px !important;
        border-radius: var(--radius-md);
        text-align: center;
        border: none;
        font-weight: 600; /* ✅ 加粗 */
        box-shadow: 0 2px 8px rgba(74, 159, 199, 0.3); /* ✅ 加上陰影 */
    }

        .btn-consultation:hover {
            background: #3D8AB0 !important;
            box-shadow: 0 4px 12px rgba(74, 159, 199, 0.4); /* ✅ hover 陰影加深 */
            padding-left: 20px !important; /* ✅ 取消位移 */
        }

    /* Logo */
    .logo img {
        max-height: 50px; /* ✅ 調整 logo 大小 */
        width: auto;
    }


    /* 進度查詢按鈕 */
    .btn-consultation {
        background: var(--primary-green) !important;
        color: var(--white) !important;
        margin: 8px 16px;
        padding: 12px 20px !important;
        border-radius: var(--radius-md);
        text-align: center;
        border: none;
    }

        .btn-consultation:hover {
            background: #3D8AB0 !important;
        }

    .btn-consultation {
        margin: 12px 24px; /* ✅ 加上左右margin */
        text-align: center;
        display: block;
        width: calc(100% - 48px); /* ✅ 扣除左右margin */
    }

    .btn-consultation {
        margin-top: 8px; /* ✅ 進度查詢按鈕上方加空間 */
        text-align: center; /* ✅ 置中 */
    }


    /* Hero */
    .hero-title {
        font-size: 1.5rem;
    }

    .hero {
        min-height: 400px;
    }

    .hero-content {
        padding: var(--spacing-lg);
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
    }

    .illustration img {
        max-width: 180px;
    }
    /* Section */
    .section-title {
        font-size: 1.5rem;
    }

    .green-content {
        grid-template-columns: 1fr;
    }

    .news-list {
        max-height: none;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-sm);
        display: block;
    }

    .stat-card {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }

    .learn-more-section {
        flex-direction: column;
    }

    /* Species */

    .species-name {
        margin-bottom: var(--spacing-xx);
        font-size: 1.45rem;
    }

    .card-description {
        margin-bottom: var(--spacing-xx);
    }


    .species-main {
        grid-row: auto;
        margin-bottom: var(--spacing-md);
    }

    .species-description {
        -webkit-line-clamp: 2;
        margin-bottom: var(--spacing-xx);
    }

    /* Applicant */
    .applicant-grid {
        grid-template-columns: 1fr;
    }

    .species-image {
        min-height: 200px;
        max-height: 200px;
        height: 200px;
    }


    /* 了解更多區塊 */
    .learn-more-section {
        padding: var(--spacing-xs);
    }

    .applicant-carousel-wrapper {
        padding: 0 50px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .applicant-card {
        min-width: calc(50% - 12px);
        width: calc(50% - 12px);
    }

    /* FAQ 常見問題 */
    .faq-question {
        padding: var(--spacing-md) var(--spacing-sm);
        gap: var(--spacing-sm);
    }

    .faq-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .faq-text {
        font-size: 1rem;
    }

    .faq-answer-content {
        padding: var(--spacing-sm);
    }

        .faq-answer-content ul {
            padding-left: var(--spacing-md);
        }

    .btn-show-more {
        padding: 10px 24px;
        font-size: 0.938rem;
    }

    .faq-footer {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

        .faq-footer p {
            font-size: 1rem;
        }

    .btn-contact {
        padding: 12px 28px;
        font-size: 0.938rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   動畫效果
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 載入動畫 */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

/* 平滑滾動 */
html {
    scroll-behavior: smooth;
}

/* 選擇文字顏色 */
::selection {
    background: var(--primary-green);
    color: var(--white);
}

::-moz-selection {
    background: var(--primary-green);
    color: var(--white);
}

/* 以下_LoaderMask.cshtml使用 */
/* overlay styles, all needed */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 999999;
    display: none;
}

/* just some content with arbitrary styles for explanation purposes */
.loader {
    width: 300px;
    height: auto;
    line-height: 70px;
    position: fixed;
    top: 50%;
    left: 50%;
    margin-top: -70px;
    margin-left: -150px;
    background-color: white;
    border-radius: 5px;
    text-align: center;
    z-index: 1000000; /* 1px higher than the overlay layer */
    display: none;
}

    .loader .lead {
        font-size: 16px;
    }
        /* 以上_LoaderMask.cshtml使用 */

/*無障礙*/
/* 聚焦時顯示 */

.visually-hidden {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

    .visually-hidden:focus {
        position: static;
        width: auto;
        height: auto;
        padding: 4px 8px;
        margin: 4px;
        background: var(--primary-orange);
        color: var(--text-dark);
        z-index: 10000;
    }

/* 所有可互動元素的鍵盤焦點樣式 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex="0"]:focus-visible,
/* 新增特定 class */
.species-main:focus-visible,
.species-card:focus-visible,
.faq-item:focus-visible
{
    outline: 3px solid var(--coral) dashed; /* 明顯的外框色 */
    outline-offset: 2px;
    border-radius: 2px;
}

/* 若要同時支援不支援 :focus-visible 的舊瀏覽器 */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--primary-orange);
    outline-offset: 2px;
}

    a:focus:not(:focus-visible),
    button:focus:not(:focus-visible),
    input:focus:not(:focus-visible),
    select:focus:not(:focus-visible),
    textarea:focus:not(:focus-visible) {
        outline: 3px solid var(--primary-orange);
        outline-offset: 2px;
    }

/* 鍵盤導航焦點狀態 */
.faq-question:focus {
    outline: 3px solid var(--primary-orange);
    outline-offset: 2px;
    background: #F5A962;
}

.faq-question:focus,
.faq-question:focus-visible,
.faq-question:focus-within {
    outline: 3px solid #F5A962 !important;
    outline-offset: 2px !important;
    background: rgba(255, 193, 7, 0.4) !important;
    box-shadow: 0 0 0 4px rgba(230, 81, 0, 0.3) !important;
    border: 2px solid #FF9800 !important; /* 加邊框強化 */
}

.species-main:focus {
    outline: 3px solid var(--primary-orange);
    outline-offset: 2px;
    background: #F5A962;
}

.species-main:focus,
.species-main:focus-visible,
.species-main:focus-within {
    outline: 3px solid #F5A962 !important;
    outline-offset: 2px !important;
    background: rgba(255, 193, 7, 0.4) !important;
    box-shadow: 0 0 0 4px rgba(230, 81, 0, 0.3) !important;
    border: 2px solid #FF9800 !important; /* 加邊框強化 */
}

.species-card:focus {
    outline: 3px solid var(--primary-orange);
    outline-offset: 2px;
    background: #F5A962;
}

.species-card:focus,
.species-card:focus-visible,
.species-card:focus-within {
    outline: 3px solid #F5A962 !important;
    outline-offset: 2px !important;
    background: rgba(255, 193, 7, 0.4) !important;
    box-shadow: 0 0 0 4px rgba(230, 81, 0, 0.3) !important;
    border: 2px solid #FF9800 !important; /* 加邊框強化 */
}

/* 高對比度模式支援 */
@@media (prefers-contrast: high) {
    .faq-item-page:hover {
        border-color: #000;
    }

    .faq-question:hover {
        outline-offset: 2px;
        background: var(--primary-orange);
    }
}

/* 自訂上傳區域 */
.upload-area:focus-visible {
    outline: var(--focus-outline-dashed) dashed;
    outline-offset: 2px;
    background-color: rgba(239, 140, 62, 0.1);
}

/* Radio 群組焦點 */
.identity-option input[type="radio"]:focus-visible + .identity-radio {
    box-shadow: var(--focus-shadow);
    border-radius: 50%;
}