/* =========================
   全站基礎樣式
   ========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    font-family: '微軟正黑體', 'Microsoft JhengHei', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #050b10;
    color: #f5f7fa;
}

/* 為了固定導覽列預留空間 */
body {
    padding-top: 60px;
}

/* =========================
   導覽列：置中顯示
   ========================= */
#header-nav {
    position: fixed;
    inset-block-start: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 60px;
    background: #122531;
    border-bottom: 2px solid #CC9900;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-inner {
    width: 100%;
    max-width: 1200px;
    padding-inline: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.logo-item {
    position: absolute;
    inset-inline-start: 24px;
    inset-block-start: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logo-item img {
    display: block;
    height: 40px;
    width: auto;
}

/* 電腦版文字樣式 */
.logo-text {
    margin-left: 10px;        /* 與圖片保持距離 */
    font-size: 1.2rem;       /* 字體大小 */
    font-weight: bold;       /* 加粗 */
    color: #f5f7fa;          /* 文字顏色 */
    white-space: nowrap;     /* 防止斷行 */
}

/* RWD 設定：在手機版隱藏文字 */
@media (max-width: 768px) {
    .logo-text {
        display: none;       /* 當螢幕寬度小於 768px 時隱藏文字 */
    }
}

.nav-links {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.nav-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1;           /* 統一行高，避免中文字看起來偏低 */
    color: #f5f7fa;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.nav-item:hover {
    background-color: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
    transform: translateY(-1px);
}

.nav-item.active {
    background-color: #CC9900;
    color: #0b1620;
    border-color: #FFD24D;
}

/* 小尺寸螢幕時調整導覽列 */
@media (max-width: 600px) {
    .nav-inner {
        padding-inline: 16px;
    }

    /* 手機版隱藏 "About us"，避免被 logo 壓到且功能重複 */
    .nav-item[data-target="about-us"] {
        display: none;
    }

    .nav-links {
        overflow-x: auto;
        max-width: 100%;
    }
    .nav-links::-webkit-scrollbar {
        height: 4px;
    }
    .nav-links::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.3);
        border-radius: 999px;
    }
}

/* =========================
   內容區塊
   ========================= */
#fullpage-container {
    width: 100%;
}

/* 每一個 section 代表一「頁」 */
.section {
    padding: 64px 20px 80px;
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.section:nth-of-type(odd) {
    background: radial-gradient(circle at top left, #1b2a38 0, #050b10 55%);
}

.section:nth-of-type(even) {
    background: radial-gradient(circle at top right, #243b4a 0, #050b10 55%);
}

.section-inner {
    width: 100%;
    max-width: 1000px;
    margin-inline: auto;
}

/* About 區塊 */
.about-section .about-content {
    text-align: center;
}

.about-section h1 {
    font-size: 2.1rem;
    margin-bottom: 20px;
    letter-spacing: 0.08em;
}

.about-section p {
    margin: 6px 0;
    line-height: 1.7;
    font-size: 1rem;
}

.about-section .note {
    margin-top: 16px;
    font-size: 0.9rem;
    color: #FFEB99;
}

/* 年度區塊標題 */
.section-header h2 {
    font-size: 1.8rem;
    margin: 0 0 8px;
}

.section-description {
    margin: 0 0 24px;
    font-size: 0.98rem;
    color: #d0d6e0;
}

/* =========================
   橫向滑動圖片區
   ========================= */
.horizontal-slide {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-block: 8px;
    padding-inline: 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    outline: none; /* 聚焦時交由 box-shadow 處理 */
}

.horizontal-slide:focus-visible {
    box-shadow: 0 0 0 2px #FFD24D;
    border-radius: 12px;
}

.horizontal-slide::-webkit-scrollbar {
    height: 6px;
}

.horizontal-slide::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.4);
    border-radius: 999px;
}

/* 圖片為正方形，略放大 */
.image-wrapper {
    flex: 0 0 auto;
    width: clamp(286px, 33vw, 418px); /* 比原本略大一點 */
    aspect-ratio: 1 / 1;              /* 正方形 */
    scroll-snap-align: start;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0,0,0,0.6);
    background-color: #0b1620;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* =========================
   2025 問卷區
   ========================= */
.survey-section {
    background: radial-gradient(circle at bottom, #2c2f54 0, #050b10 60%);
}

.survey-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.survey-frame-wrapper {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.7);
    background: #0b1620;
}


.survey-frame-wrapper iframe {
    width: 100%;
    height: 800px;
    border: 0;
}

/* =========================
   回到頂部按鈕
   ========================= */
#back-to-top {
    position: fixed;
    inset-inline-end: 16px;
    inset-block-end: 20px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: none;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
    z-index: 9999;
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

#back-to-top:hover {
    background: #CC9900;
    transform: translateY(-2px);
}

/* =========================
   RWD
   ========================= */
@media (max-width: 768px) {
    body {
        padding-top: 56px;
    }

    #header-nav {
        height: 56px;
    }

    .nav-item {
        font-size: 0.82rem;
        padding: 4px 8px;
    }

    .section {
        padding: 56px 16px 72px;
        align-items: flex-start;
    }

    .about-section h1 {
        font-size: 1.6rem;
    }

}

@media (max-width: 480px) {
    .logo-item {
        inset-inline-start: 12px;
    }

    .nav-inner {
        padding-inline: 12px;
    }

    .nav-item {
        font-size: 0.78rem;
        padding: 4px 6px;
    }

    .image-wrapper {
        width: 76vw; /* 手機上再大一點，方便看圖 */
    }
}

/* 「現在加入」按鈕樣式 */
.cta-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 32px;
    background-color: #CC9900;
    color: #0b1620;
    text-decoration: none;
    border-radius: 999px;
    font-weight: bold;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.cta-button:hover {
    background-color: #FFD24D;
    transform: scale(1.05);
}

/* 「通知我」區塊樣式 */
.notify-section {
    background: radial-gradient(circle at center, #1a2a3a 0, #050b10 100%) !important;
    text-align: center;
}

.notify-form {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.notify-form input[type="email"] {
    padding: 12px 20px;
    width: 300px;
    border-radius: 8px;
    border: 1px solid #CC9900;
    background: #0b1620;
    color: #fff;
    font-size: 1rem;
}

.notify-form button {
    padding: 12px 30px;
    background: #CC9900;
    color: #0b1620;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

.notify-form button:hover {
    background: #FFD24D;
}
