/* 基礎設定 */
html {
    scroll-behavior: smooth;
    font-family: 'Helvetica Neue', Helvetica, Arial, '微軟正黑體', sans-serif;
}

body {
    padding-top: 76px; /* 避免 fixed navbar 擋住內容 */
}

/* 覆蓋 Bootstrap 主題色調 (依據圖面設定) */
:root {
    --bs-primary: #00388e;  /* 深藍色 */
    --bs-danger: #c7000b;   /* 紅色按鈕 */
}

/* 導覽列微調 */
.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    color: #333 !important;
}
.nav-link:hover {
    color: var(--bs-primary) !important;
}

/* 01. Hero Section 視差背景與主視覺 */
.hero-section {
    /* 使用純淨的背景圖 (建議將圖面上的文字拿掉，只留底圖) */
    background-image: url(  "../images/digital_03.gif"); /* 請替換為你的去背網點背景圖檔路徑 */
    
	
    /* 啟動 CSS 視差效果的關鍵屬性 */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    
    min-height: 85vh;
    position: relative;
    overflow: hidden;
}

/* Hero 遮罩層 (如果你的原圖已經夠暗，這個可以拿掉，或是調整 rgba 的透明度) */
.hero-overlay {
    background: linear-gradient(135deg, rgba(0, 32, 96, 0.4) 0%, rgba(0, 105, 192, 0.2) 100%);
}

.text-shadow {
    /* 加強文字陰影，確保在複雜背景上依然清晰 */
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.letter-spacing-wide {
    letter-spacing: 2px;
}

/* Hero 按鈕互動 */
.hero-btn {
    transition: all 0.3s ease;
}
.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}



.text-shadow {
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.letter-spacing-wide {
    letter-spacing: 2px;
}



/* Hero 按鈕互動 
.hero-btn {
    transition: all 0.3s ease;
}
.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}*/

/* 第一屏右下角滿版浮水印大字 */
.hero-watermark {
    font-size: 4.5vw; /* 使用視窗寬度比例，螢幕越大字越大 */
    font-weight: 500;
    color: rgba(255, 255, 255, 0.3); /* 調整透明度融入背景 */
    letter-spacing: 3px;
    line-height: 1;
    margin-bottom: 0;
    padding-right: 5%;
    padding-bottom: 2%;
}

/* 手機版浮水印大小微調 */
@media (max-width: 768px) {
    .hero-watermark {
        font-size: 8vw;
        padding-right: 5%;
        padding-bottom: 3%;
    }
}

/* 導覽列滾動時的透明效果 (增加 20% 透明度，即 0.8 不透明度) */
.navbar {
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.8) !important; 
    /* 建議加上一點毛玻璃模糊效果，讓文字即使在透明底色上也不會被背景干擾 */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


/* 02. 第二屏引言區塊與對比裝飾 */
/* 標題下方裝飾線 */
.title-decorator {
    width: 60px;
    height: 3px;
    background-color: #00b4b4; /* 參考設計圖的青綠色 */
}

/* 引號圖片寬度設定 */
.quote-img {
    width: 35px; /* 等你換上真實的 PNG 後，若太大或太小可在此調整 */
    height: auto;
}

/* 強制對比圖高度對齊，且圖片不變形 */
.vs-img {
    width: 100%;
    height: 320px; /* 固定高度，你可依需求微調 */
    object-fit: cover; /* 讓圖片自動裁切填滿區塊 */
}
/* 第三屏 */

/* 03. 第三屏專屬樣式 */

/* 左側青綠色邊線卡片 */
.custom-border-card {
    border-left: 8px solid #08a2ac; /* 左邊緣粗線 */
    overflow: hidden; /* 確保內容不會溢出圓角(如果有的話) */
}

/* 底部資料來源外框 */
.source-box {
    border: 1px solid #a0a0a0; /* 灰色細框線 */
    color: #555;
    letter-spacing: 0.5px;
}

.custom-quote-text {
    color: #00388e; /* 指定的藍色 */
    line-height: 1.6;
}

.custom-quote-author {
    color: #666;
}

.line-decorator {
    display: inline-block;
    width: 40px;
    height: 1px;
    background-color: #b0b0b0;
    vertical-align: middle;
    margin: 0 15px;
}

.custom-vs-text {
    color: #00388e;
}

.vs-arrow-container {
    min-height: 60px;
}

/* 05. 第五屏專屬樣式 */
.custom-y-border {
    color: #00388e;                  /* 文字顏色 */
    border-top: 2px solid #00388e;   /* 上方橫線 */
    border-bottom: 2px solid #00388e;/* 下方橫線 */
    padding-left: 30px;              /* 左右留白，讓線條稍微超出文字一點 */
    padding-right: 30px;
}


/* 06. 講師陣容區塊背景 */
.instructor-section {
    /* 圖面呈現紫藍漸層質感 */
    background: linear-gradient(135deg, #1a237e 0%, #00838f 100%);
}

/* 扁平化卡片互動效果 */
.flat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08) !important;
}

/* 08. 第八屏 輪播區塊專屬樣式 */

/* 標題青綠色裝飾線 */
.title-decorator-teal {
    width: 60px;
    height: 3px;
    background-color: #08a2ac; /* 青綠色 */
}

/* 青綠色文字通用類別 */
.custom-teal-text {
    color: #08a2ac;
}
.custom-teal-text:hover {
    color: #057d85; /* 稍微加深的 hover 顏色 */
}

/* 確保圖片填滿且不變形 */
.activity-img {
    object-fit: cover;
}

/* 自訂左右箭頭按鈕樣式 (圓形、半透明灰底) */
.custom-carousel-btn {
    width: 50px;
    height: 50px;
    background-color: rgba(150, 150, 150, 0.6);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1; /* 覆蓋 bootstrap 預設的透明度 */
    z-index: 10;
}
.custom-carousel-btn:hover {
    background-color: rgba(150, 150, 150, 0.9);
}

/* 自訂底部指示器 (Bullets 圓點) */
.custom-indicators {
    bottom: -10px; /* 將圓點移至白框下方 */
}
.custom-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%; /* 將預設的橫線改為圓形 */
    background-color: #888;
    margin: 0 5px;
    border: none;
}
.custom-indicators .active {
    background-color: #08a2ac; /* 當前頁面的圓點顏色 */
}


/* 10. 表單專屬樣式 */

/* 表單容器：只有頂部有青綠色邊框 */
.custom-form-card {
    border-top: 10px solid #08a2ac !important; /* 粗邊框 */
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
}

/* 輸入框樣式：淺灰邊框、字體稍微縮小以符合圖例 */
.custom-input {
    border: 1px solid #dcdcdc;
    border-radius: 4px; /* 保留一點點圓角讓視覺不那麼生硬 */
    font-size: 0.95rem;
    color: #555;
}

/* 讓 Placeholder 顏色變淡，接近原本截圖的質感 */
.custom-input::placeholder {
    color: #999;
    font-weight: 400;
}

/* Select 預設文字顏色微調 */
select.custom-input {
    color: #999;
}
select.custom-input option {
    color: #333;
}

.custom-input:focus {
    border-color: #08a2ac;
    box-shadow: 0 0 0 0.25rem rgba(8, 162, 172, 0.25);
}

/* 滿版廣告區塊專屬樣式 */
.ad-banner-section {
    width: 100%;
    /* 請將下方路徑替換為你設計好的「鼎革獎」去背或全圖 (建議尺寸 1920x600 左右) */
    background: url(  "../images/digital_08.jpg") center center / cover no-repeat;
    height: 580px; /* 可根據你實際圖片的比例微調高度 */
    padding-bottom: 2rem; /* 讓按鈕與底部保持一點距離 */
    position: relative;
}

/* 客製化金色按鈕 */
.btn-ad-gold {
    background: linear-gradient(135deg, #f0c996 0%, #d4a568 100%); /* 仿造截圖的香檳金/大地色漸層 */
    color: #333 !important; /* 深色文字 */
    border: none;
    border-radius: 0; /* 俐落直角 */
    padding: 12px 60px;
    letter-spacing: 2px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    min-width: 380px;
}

.btn-ad-gold:hover {
    background: linear-gradient(135deg, #e3ba87 0%, #c29355 100%);
    color: #000 !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5) !important;
}

@media (max-width: 768px) {
    .ad-banner-section {
        height: 350px;
    }
}

/* 表單輸入框扁平化微調 (去圓角、加粗邊框) */
.form-control, .form-select {
    border: 1px solid #ced4da;
    padding: 10px 15px;
    background-color: #fcfcfc;
}

.form-control:focus, .form-select:focus {
    box-shadow: none;
    border-color: var(--bs-primary);
    background-color: #fff;
}

/* 表單必填星號 */
.text-danger {
    color: #d32f2f !important;
}

.py-5a{
	padding-top: 1rem;
    padding-bottom: 1rem;
}

.my-blue-text {
    color: #08a2ac;
}

/* --- 回到頂部按鈕專屬樣式 --- */
.back-to-top-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background-color: #00388e; /* 網頁主色深藍 */
    color: #ffffff;
    border: none;
    border-radius: 8px; /* 微圓角，呼應表單與卡片的風格 */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999; /* 確保浮在最上層 */
    
    /* 預設隱藏與動態過渡 */
    opacity: 0; 
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 當 JS 加上 .show 類別時顯示 */
.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 滑鼠懸停效果：變色並微微上浮 */
.back-to-top-btn:hover {
    background-color: #08a2ac; /* 變成點綴色青綠色 */
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(8, 162, 172, 0.4);
    color: #ffffff;
}

/* 手機版微調：縮小一點點並靠邊緣，避免擋住太多內文 */
@media (max-width: 768px) {
    .back-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

