/* 匯入 AOS 動畫庫的 CSS 樣式 */
@import url('https://unpkg.com/aos@2.3.1/dist/aos.css');

/* CSS 自定義變數定義區 */
:root {
    /* 主要色彩系統 - 調整為更清晰的對比度 */
    --primary-color: #1e3a8a; /* 深藍色，更好的可讀性 */
    --primary-light: #3b82f6; /* 明亮藍色 */
    --secondary-color: #f59e0b; /* 明亮橘色，更好的對比度 */
    --accent-color: #dc2626; /* 紅色強調色 */
    
    /* 狀態顏色 */
    --success-color: #059669; /* 綠色 */
    --danger-color: #dc2626; /* 紅色 */
    --warning-color: #d97706; /* 橘色 */
    --info-color: var(--primary-color); /* 藍色 */
    
    /* 基礎顏色 */
    --dark-color: #111827; /* 深色文字 */
    --light-color: #f9fafb; /* 淺色背景 */
    
    /* 灰階色彩系統 */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* 社群媒體品牌色 */
    --line-color: #06c755;
    --wechat-color: #07c160;
    
    /* 漸層背景定義 */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(30, 58, 138, 0.95) 0%, rgba(59, 130, 246, 0.95) 100%);
    
    /* 陰影效果系統 */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
    
    /* 圓角系統 */
    --border-radius: 12px;
    --border-radius-lg: 20px;
    
    /* 動畫過渡效果 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* 字體系統 */
    --font-family-primary: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-family-heading: 'Playfair Display', 'Noto Sans TC', serif;
}

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

/* HTML 根元素設定 */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* 頁面主體樣式 */
body {
    font-family: var(--font-family-primary);
    line-height: 1.7;
    color: var(--gray-700);
    background: var(--gradient-hero);
    overflow-x: hidden;
    padding-top: 100px; /* 為固定導航欄預留空間 */
}

/* 標題元素通用樣式 */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

/* 區塊標題樣式 */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-800);
}

/* 區塊副標題樣式 */
.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

/* 區塊標籤樣式 */
.section-badge {
    display: inline-block;
    background: var(--gradient-secondary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 工具類別樣式 */
.section-padding {
    padding: 5rem 0;
}

.bg-gradient {
    background: var(--gradient-primary);
}

/* 導航欄樣式 */
.navbar {
    background: rgba(30, 58, 138, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--primary-color) !important;
    box-shadow: var(--shadow-lg);
}

/* 品牌 Logo 容器 */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.brand-subtitle {
    font-size: 0.875rem;
    color: var(--gray-300);
    font-weight: 400;
}

/* 導航連結樣式 */
.nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9) !important;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* 英雄區塊主容器 */
.hero-section {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

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

/* 英雄區塊內容容器 */
.hero-content {
    color: white;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(245, 158, 11, 0.2);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.40;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-title .highlight {
    color: var(--secondary-color);
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* 英雄區塊按鈕組 */
.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

/* 主要CTA按鈕樣式 */
.btn-cta {
    background: var(--gradient-secondary) !important;
    border: none !important;
    color: white !important;
    font-weight: 600 !important;
    font-size: 1.125rem !important;
    padding: 1rem 2rem !important;
    border-radius: var(--border-radius) !important;
    text-decoration: none !important;
    transition: var(--transition) !important;
    box-shadow: var(--shadow-lg) !important;
}

.btn-cta:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-xl) !important;
    color: white !important;
}

/* 英雄區塊統計數據容器 */
.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.25rem;
}

/* 英雄區塊視覺效果容器 */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-frame {
    position: relative;
    width: 400px;
    height: 400px;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.hero-image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.hero-image-placeholder span {
    font-size: 1.125rem;
    font-weight: 500;
}

/* 英雄區塊主圖片樣式 */
.hero-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

/* 關於我們區塊樣式 */
.about-content {
    padding: 2rem 0;
}

.about-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--gray-800);
}

.about-text {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--gray-600);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-item i {
    color: var(--success-color);
    font-size: 1.25rem;
}

.feature-item span {
    font-weight: 500;
    color: var(--gray-700);
}

/* 關於我們圖片佔位符 */
.about-image-placeholder {
    width: 100%;
    height: 300px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.about-image-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-image-placeholder span {
    font-size: 1.125rem;
    font-weight: 500;
}

/* 輪播圖樣式 */
.carousel {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.carousel-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    height: 50px;
    width: 50px;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: 15px;
}

.carousel-control-next {
    right: 15px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 20px;
}

.carousel-indicators {
    bottom: 15px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
}

.carousel-indicators button.active {
    background-color: var(--secondary-color);
}

/* 特色卡片樣式 */
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    height: 100%;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.feature-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--gray-800);
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* 福利區塊樣式 */
.benefits-content {
    padding: 2rem 0;
}

.benefits-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--gray-800);
    display: flex;
    align-items: center;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.benefit-item i {
    color: var(--success-color);
    font-size: 1.25rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.benefit-item div strong {
    display: block;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.benefit-item div span {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* 應徵區塊樣式 */
.apply-requirements,
.apply-documents {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    height: 100%;
    border: 1px solid var(--gray-200);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--gray-800);
    display: flex;
    align-items: center;
}

.requirements-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.requirement-item i {
    color: var(--success-color);
    font-size: 1.25rem;
}

.requirement-item span {
    color: var(--gray-700);
    font-weight: 500;
}

.documents-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.document-content strong {
    display: block;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.document-content span {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* 流程時間軸樣式 */
.process-section {
    padding: 3rem 0;
}

.process-title {
    font-size: 1.5rem;
    color: var(--gray-800);
    margin-bottom: 3rem;
}

.process-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gray-300);
    z-index: 1;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: white;
    padding: 0 1rem;
    z-index: 2;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
}

.step-content h5 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

.step-content p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
}

/* FAQ 樣式 */
.accordion-item {
    border: 1px solid var(--gray-200);
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.accordion-button {
    background: white;
    color: var(--gray-800);
    font-weight: 600;
    padding: 1.5rem;
    border: none;
    font-size: 1rem;
}

.accordion-button:not(.collapsed) {
    background: var(--gray-50);
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.accordion-body {
    padding: 1.5rem;
    background: white;
    color: var(--gray-600);
    line-height: 1.7;
}

/* 聯絡我們區塊樣式 */
.contact-info {
    padding: 2rem 0;
}

.contact-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--gray-800);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-item div strong {
    display: block;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.contact-item div span {
    color: var(--gray-600);
}

/* QR Code 區塊樣式 */
.contact-qr {
    padding: 2rem 0;
}

.qr-codes {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.qr-item {
    text-align: center;
}

.qr-placeholder {
    width: 150px;
    height: 150px;
    background: var(--gray-100);
    border: 2px dashed var(--gray-300);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--gray-500);
}

.qr-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.qr-placeholder span {
    font-size: 0.875rem;
    font-weight: 500;
}

.qr-id {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin: 0;
}

/* 頁腳樣式 */
.footer {
    padding: 3rem 0 2rem;
}

.footer-brand h5 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: white;
}

.footer-brand p {
    color: var(--gray-400);
    margin: 0;
}

/* 懸浮聯絡按鈕樣式 */
.floating-contact {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.floating-btn:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: var(--shadow-xl);
}

.line-btn {
    background: var(--line-color);
}

.wechat-btn {
    background: var(--wechat-color);
}

/* 回到頂部按鈕 */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* 響應式設計 */
@media (max-width: 768px) {
    body {
        padding-top: 100px; /* 手機版導航欄較矮 */
    }
    
    .hero-section {
        min-height: calc(100vh - 100px);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .process-timeline {
        flex-direction: column;
        gap: 2rem;
    }
    
    .process-timeline::before {
        display: none;
    }
    
    .qr-codes {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .floating-contact {
        right: 10px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 95px; /* 小螢幕導航欄更緊湊 */
    }
    
    .hero-section {
        min-height: calc(100vh - 95px);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .brand-name {
        font-size: 1rem;
    }
    
    .brand-subtitle {
        font-size: 0.75rem;
    }
    
    .btn-cta {
        font-size: 1rem !important;
        padding: 0.875rem 1.5rem !important;
    }
    
    .floating-contact {
        right: 8px;
    }
    
    .floating-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .hero-image-frame {
        width: 300px;
        height: 300px;
    }

    .carousel-image {
        height: 250px;
    }
}
