/* --- 通用樣式 --- */
:root {
    --primary-color: #005f9e;
    /* 主要顏色 (參考網站的藍色) */
    --secondary-color: #f39c12;
    /* 次要顏色 (參考網站的黃色) */
    --text-color: #333;
    --light-gray: #f4f4f4;
    --dark-gray: #555;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
    overflow: hidden;
}

h1,
h2,
h3,
h4 {
    color: var(--primary-color);
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
    padding: 0;
}

/* --- 頁首 & 導覽列 --- */
.main-header {
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo img {
    height: 50px;
    /* 根據您的logo調整 */
}

.main-nav ul {
    display: flex;
}

.main-nav ul li a {
    padding: 10px 15px;
    font-weight: bold;
    transition: color 0.3s;
}

.main-nav ul li a:hover {
    color: var(--secondary-color);
}

.social-media a {
    margin: 0 8px;
    font-size: 1.2rem;
    color: var(--dark-gray);
    transition: color 0.3s;
}

.social-media a:hover {
    color: var(--primary-color);
}

/* --- 主視覺區塊 --- */
.hero-section {
    /* 請將 'hero-bg.jpg' 替換成您的背景圖片 */
    background: url('./assets/img/hero.png') no-repeat center center/cover;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    position: relative;
}

.hero-section::after {
    /* 加上深色遮罩讓文字更清晰 */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background: var(--secondary-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background: #e68a00;
}

/* --- 最新消息區塊 --- */
.news-section {
    padding: 60px 0;
    background: var(--light-gray);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-item h3,
.news-item p,
.news-item a {
    padding: 0 20px;
}

.news-item h3 {
    margin-top: 15px;
}

.news-item a {
    display: inline-block;
    margin: 15px 0 20px 20px;
    font-weight: bold;
    color: var(--secondary-color);
}

/* --- 獲取報價按鈕區塊 (CTA) --- */
.quote-cta-section {
    padding: 30px 0;
    background: #fff;
    /* 背景設為白色，與下方課程區塊一致 */
    text-align: center;
    /* 讓按鈕在容器內置中 */
}

/* 讓這個 CTA 按鈕更大、更醒目 */
.btn-cta {
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    /* 繼承 .btn 的背景色和過渡效果 */
}

/* --- 響應式設計 (CTA 按鈕更新) --- */
@media(max-width: 768px) {
    .btn-cta {
        /* 在手機上稍微縮小按鈕，避免佔用過多空間 */
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* --- 課程範疇區塊 --- */
.course-scope-section {
    padding: 60px 0;
    background: #fff;
    /* 與最新消息區塊的背景色錯開 */
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
    color: var(--dark-gray);
}

.course-grid {
    display: grid;
    /* 在桌面版上顯示 4 欄 */
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    text-align: center;
}

.course-item {
    background: var(--light-gray);
    padding: 30px 20px;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.course-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 95, 158, 0.15);
    /* 使用品牌藍色的陰影 */
}

.course-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.course-item h4 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--text-color);
}


/* --- 服務項目區塊 --- */
.services-section {
    padding: 60px 0;
    background: var(--light-gray);
    /* 與課程區塊的背景色錯開 */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.service-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-item h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}


/* --- 頁尾 --- */
.main-footer {
    background: var(--primary-color);
    color: #fff;
    padding: 40px 0 0;
}

.main-footer h4,
.main-footer a {
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-column p,
.footer-column li {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-column i {
    margin-right: 10px;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    border-top: 1px solid #fff;
    font-size: 0.9rem;
}

/* --- 響應式設計 --- */
@media(max-width: 992px) {
    .course-grid {
        /* 在平板上顯示 3 欄 */
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width: 768px) {

    /* 讓頁首容器內的元素垂直堆疊 */
    /* 讓頁首容器內的元素仍然保持水平排列 */
    .main-header .container {
        flex-direction: row;
        /* 保持水平 */
        flex-wrap: wrap;
        /* 允許換行 */
        justify-content: center;
        /* 內容居中 */
        align-items: center;
        /* 垂直居中 */
        gap: 10px;
        /* 元素之間的小間距 */
        padding: 10px;
        /* 增加一些內邊距，避免內容太靠近邊緣 */
    }

    .main-nav ul {
        flex-direction: row;
        /* 保持水平 */
        flex-wrap: wrap;
        /* 允許換行 */
        justify-content: center;
        /* 連結居中 */
        gap: 8px;
        /* 連結之間的小間距 */
        margin-top: 10px;
        /* 與上方Logo等元素的間距 */
    }

    .main-nav ul li a {
        padding: 5px 8px;
        /* 縮小連結的內邊距，節省空間 */
        font-size: 0.9em;
        /* 稍微縮小字體 */
    }

    /* 調整 social-media 的顯示，避免過於擁擠 */
    .social-media {
        display: flex;
        /* 確保在手機上也顯示 */
        justify-content: center;
        width: 100%;
        /* 佔滿整行 */
        margin-top: 10px;
        /* 與上方元素的間距 */
    }

    .social-media a {
        font-size: 1rem;
        /* 稍微縮小社交媒體圖示 */
    }

    .main-nav ul li {
        margin: 5px 0;
    }

    .news-grid,
    .services-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .course-grid {
        /* 在手機上顯示 2 欄，以保持版面整潔 */
        grid-template-columns: repeat(2, 1fr);
    }

    h2 {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-intro {
        font-size: 1rem;
    }
}

/* --- 機械人分頁專用樣式 --- */

/* 頁面標題橫幅 */
.page-title-banner {
    background: var(--light-gray);
    padding: 40px 0;
    text-align: center;
}

.page-title-banner h1 {
    font-size: 2.8rem;
    margin: 0;
    color: var(--primary-color);
}

/* 課程詳細內容區塊 */
.course-details-section {
    padding: 60px 0;
}

.course-detail-item {
    display: flex;
    align-items: center;
    gap: 50px;
    /* 圖片與文字的間距 */
    margin-bottom: 60px;
    /* 各個課程之間的間距 */
}

/* 版面反轉樣式 */
.course-detail-item.reverse-layout {
    flex-direction: row-reverse;
}

.course-detail-item:last-child {
    margin-bottom: 0;
}

.course-image,
.course-text {
    flex: 1;
    /* 讓圖片和文字區塊各佔一半空間 */
}

/* 為課程詳細頁的圖片設定樣式 */
.course-image img {
    width: 100%;
    height: 350px;
    /* 強制設定高度，確保所有圖片大小一致 */
    object-fit: cover;
    /* 圖片會填滿容器，多餘部分會被裁剪，不會變形 */
    border-radius: 8px;
    /* 保持圓角 */
    display: block;
    /* 避免圖片下方出現不明間距 */
}

/* 在相同位置新增這段 */
.course-image img {
    height: 250px;
    /* 在手機上使用較小的高度 */
}

.course-text h2 {
    font-size: 2.2rem;
    margin-top: 0;
    margin-bottom: 20px;
}

.course-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--dark-gray);
}

/* --- 課程詳細頁面按鈕 --- */
.course-buttons {
    margin-top: 25px;
    /* 按鈕與上方段落的間距 */
    display: flex;
    flex-wrap: wrap;
    /* 在小螢幕時，如果空間不足可自動換行 */
    gap: 15px;
    /* 按鈕之間的間距 */
}

/* 擴充按鈕樣式：新增外框按鈕 (btn-outline) */
/* 這個樣式會與 .btn 一起使用，例如 class="btn btn-outline" */
.btn.btn-outline {
    background: transparent;
    /* 透明背景 */
    border: 2px solid var(--primary-color);
    /* 使用品牌主色作為邊框 */
    color: var(--primary-color);
    /* 使用品牌主色作為文字顏色 */
}

/* 外框按鈕的滑鼠懸停效果 */
.btn.btn-outline:hover {
    background: var(--primary-color);
    /* 滑鼠移上時，背景填滿品牌主色 */
    color: #fff;
    /* 文字變為白色 */
}

/* --- 機械人分頁響應式設計 --- */
@media(max-width: 768px) {
    .page-title-banner h1 {
        font-size: 2.2rem;
    }

    .course-detail-item,
    .course-detail-item.reverse-layout {
        flex-direction: column;
        /* 在小螢幕上，圖片和文字改為垂直堆疊 */
        gap: 30px;
    }

    .image-placeholder {
        height: 250px;
    }
}

/* --- "關於我們" 頁面 - 區塊劃分樣式 --- */

/* 為所有主要內容區塊設定統一的垂直間距 (padding)，這會自動創造出視覺上的間隔 */
.about-who-we-are-section,
.about-beliefs-section,
.about-achievements-section {
    padding: 80px 0;
    /* 增加上下間距，讓區塊間更分明 */
}

/* 區塊一：我們是誰? */
.about-who-we-are-section {
    background: #fff;
    /* 第一個區塊使用白色背景 */
    text-align: center;
    /* <<< 新增這一行來將內部所有文字置中 */
}

/* --- about.html "我們是誰?" 區塊的 Logo 樣式 --- */
.about-who-we-are-section .associated-logos {
    margin-top: 40px;
    /* 在文字和 Logo 之間增加間距 */
}

/* 調整此區塊中 logo 預留位置的大小 */
.about-who-we-are-section .logo-placeholder {
    width: 180px;
    /* 調整寬度 */
    height: 100px;
    /* 調整高度 */
    font-size: 15px;
    /* 調整文字大小 */
}

/* 區塊二：我們的信念 */
.about-beliefs-section {
    background: var(--light-gray);
    /* 第二個區塊使用淺灰色背景 */
}

/* 區塊三：我們的成就 (原本已有此樣式，現在確保背景色和間距統一) */
.about-achievements-section {
    background: #fff;
    /* 第三個區塊交替回白色背景 */
}


/* --- 以下是區塊內部的樣式 (大部分保持不變) --- */

/* 橫幅 (預留背景圖位置) */
.about-hero-section {
    /* 請將 'about-hero-bg.jpg' 替換為您的橫幅背景圖 */
    background: url('./assets/img/hero.png') no-repeat center center/cover;
    position: relative;
    height: 40vh;
    /* 橫幅高度 */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

/* 添加深色遮罩讓標題更清晰 */
.about-hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.about-hero-section h1 {
    font-size: 3rem;
    color: #fff;
    z-index: 1;
    /* 確保標題在遮罩之上 */
}

/* "我們的信念" 和 "我們的成就" 的主標題 */
.about-beliefs-section h2,
.about-achievements-section h2 {
    text-align: center;
}

/* "信念" 項目中的 h3 標題樣式 */
.course-detail-item .course-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
}

/* 證書網格佈局 */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

/* 證書項目樣式 */
.certificate-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    /* 由於父區塊背景色可能不是白色，這裡的陰影會更明顯 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    display: block;
    color: var(--text-color);
}

.certificate-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.certificate-item img {
    width: 100%;
    height: auto;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 15px;
}

.certificate-caption p {
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin: 0;
    line-height: 1.5;
}


/* --- "關於我們" 頁面響應式更新 (證書區塊) --- */
@media(max-width: 768px) {
    .achievements-grid {
        /* 在平板上顯示兩欄，視覺效果更佳 */
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 480px) {
    .achievements-grid {
        /* 在手機上改為單欄堆疊 */
        grid-template-columns: 1fr;
    }
}

@media(max-width: 768px) {
    .about-hero-section {
        height: 30vh;
    }

    .about-hero-section h1 {
        font-size: 2.5rem;
    }
}


/* --- 頁面製作中分頁樣式 --- */
.construction-section {
    /* 設定區塊佔據一定高度，以便將內容垂直置中 */
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 0;
}

.construction-content i {
    font-size: 5rem;
    /* 一個巨大的圖示 */
    color: var(--primary-color);
    margin-bottom: 25px;
}

.construction-content h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.construction-content p {
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 30px;
    max-width: 500px;
    /* 避免文字行過長 */
    margin-left: auto;
    margin-right: auto;
}

/* --- "製作中" 頁面響應式設計 --- */
@media(max-width: 768px) {
    .construction-content h1 {
        font-size: 2.2rem;
    }

    .construction-content i {
        font-size: 4rem;
    }

    .construction-content p {
        font-size: 1rem;
    }
}

/* --- 編程分頁專用樣式 --- */

/* 課程引言區塊 */
.course-intro-section {
    padding: 60px 0;
    background: #fff;
    /* 使用白色背景，與上方的標題橫幅和下方的課程區塊分隔 */
    text-align: center;
}

.course-intro-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-gray);
}

/* 確保課程詳細內容區塊有淺灰色背景，形成交錯效果 */
.course-details-section {
    background: var(--light-gray);
}


/* 區塊四：驗證證書 */


.about-verify-section {
    background: var(--light-gray);
    /* 使用淺灰色背景，與上方區塊形成交錯效果 */
    padding: 20px 0;
    /* 保持原有的內部間距 */
}

/* 對驗證按鈕區塊進行置中對齊 */
.verify-certificates {
    display: flex;
    justify-content: center;
}

/* 原有的按鈕尺寸調整可以保留 */
.verify-certificates .btn-cta {
    padding: 15px 40px;
    font-size: 1.2rem;
}


/* --- 比賽分頁專用樣式 --- */


/* 頁面專屬樣式，可視情況整合至 style.css */
.competition-section {
    padding: 60px 20px;
    text-align: center;
}

.competition-section h1,
.competition-section h2 {
    color: #333;
}

.competition-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.competition-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 350px;
    text-align: left;
    transition: transform 0.3s;
}

.competition-card:hover {
    transform: translateY(-5px);
}

.competition-card h3 {
    color: #0056b3;
    margin-bottom: 15px;
}

.cta-button {
    display: inline-block;
    background-color: #007bff;
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #0056b3;
}

/* 合作夥伴區塊樣式 */
/* 頁面專屬樣式 */
.competition-section {
    padding: 60px 20px;
    text-align: center;
}

.competition-section h1,
.competition-section h2 {
    color: #333;
}

.competition-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.competition-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 350px;
    text-align: left;
    transition: transform 0.3s;
}

.competition-card:hover {
    transform: translateY(-5px);
}

.competition-card h3 {
    color: #0056b3;
    margin-bottom: 15px;
}

.cta-button {
    display: inline-block;
    background-color: #007bff;
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #0056b3;
}


/* 合作夥伴區塊樣式 */


.partners-section {
    background-color: #f8f9fa;
}

.partner-categories-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
    margin-top: 30px;
}

.partner-category {
    text-align: center;
}

.partner-category h4 {
    font-weight: bold;
    color: #555;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.logo-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* --- Logo 尺寸與連結樣式 --- */
.logo-link {
    display: block;
    text-decoration: none;
    transition: transform 0.2s ease-in-out;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-placeholder {
    width: 200px;
    height: 110px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 16px;
    border-radius: 8px;
    border: 2px solid transparent;
    /* 預設透明邊框 */
    transition: border-color 0.3s ease;
    /* 加入過渡效果 */
}

.logo-grid img {
    width: 200px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid transparent;
    /* 預設透明邊框 */
    transition: border-color 0.3s ease;
    /* 加入過渡效果 */
}

/* --- 當滑鼠懸停在連結上時，改變 Logo 的邊框顏色 --- */
.logo-link:hover .logo-placeholder,
.logo-link:hover img {
    border-color: #007bff;
    /* 懸停時的邊框顏色 */
}

/* --- 常見問題區塊樣式 --- */

.faq-section {
    background-color: #ffffff;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 10px;
}

.faq-question {
    background-color: #f8f9fa;
    border: none;
    width: 100%;
    padding: 20px;
    text-align: left;
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 8px;
    position: relative;
}

.faq-question:hover {
    background-color: #e9ecef;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5em;
    color: #007bff;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff;
    border-radius: 0 0 8px 8px;
}

.faq-answer.active {
    max-height: 300px;
    padding: 20px;
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
    color: #555;
}


/* 日程表樣式 */


.schedule-section {
    background-color: #ffffff;
    padding: 60px 20px;
}

.schedule-container {
    max-width: 900px;
    margin: 0 auto;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.schedule-table th {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 20px;
    text-align: left;
    font-weight: bold;
    font-size: 1.1em;
}

.schedule-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.schedule-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.schedule-table tr:hover {
    background-color: #e3f2fd;
    transition: background-color 0.3s ease;
}

.time-column {
    font-weight: bold;
    color: #007bff;
    white-space: nowrap;
    width: 180px;
}

.activity-column {
    color: #333;
}

.break-activity {
    color: #28a745;
    font-style: italic;
}

.important-activity {
    color: #dc3545;
    font-weight: bold;
}

.final-activity {
    background: linear-gradient(90deg, #fff3cd, #ffffff) !important;
    font-weight: bold;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .schedule-table {
        font-size: 0.9em;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 12px 15px;
    }

    .time-column {
        width: 140px;
    }
}


/* 新增：本年主題區塊樣式 */


.theme-section {
    background-color: #f4f8ff;
    /* 淡藍色背景 */
    padding: 60px 20px;
}

.theme-section h2 {
    text-align: center;
    color: #0056b3;
    /* 主題藍色 */
    margin-bottom: 30px;
}

/* 響應式 YouTube 影片容器 */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 比例 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 40px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.theme-section .info-list {
    list-style: none;
    padding-left: 0;
    max-width: 600px;
    margin: 20px auto;
    text-align: left;
}

.theme-section .info-list li {
    background: #ffffff;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 5px solid #007bff;
    font-size: 1.1em;
    color: #333;
}

.theme-section .team-limit-info {
    background-color: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    max-width: 600px;
    margin: 30px auto 0;
}