/* ===== 基礎設置 ===== */
html {
    font-size: 16px; /* 調整基礎字體大小 */
}

/* ===== 響應式背景圖片 ===== */
.hero-bg-image {
    background-image: url('../image/worker/istockphoto-1451020703-2048x2048.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center 25%;
}

@media (max-width: 640px) {
    .hero-bg-image {
        background-size: cover;
        background-position: center 25%;
    }
}



@media (min-width: 641px) and (max-width: 1024px) {
    .hero-bg-image {
        background-position: center 20%;
    }
}

@media (min-width: 1025px) {
    .hero-bg-image {
        background-position: center 30%;
    }
}

body {
    font-family: 'Inter', 'Noto Sans TC', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 1rem;
    line-height: 1.6;
}

/* ===== 全新文字大小體系 ===== */
/* 1. 超大標題 - 頁面主標題 (Hero Section) */
.text-display-large {
    font-size: 3.5rem; /* 56px */
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* 2. 大標題 - 區塊主標題 */
.text-display-medium {
    font-size: 2.75rem; /* 44px */
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* 3. 中標題 - 區塊副標題 */
.text-display-small {
    font-size: 2rem; /* 32px */
    font-weight: 700;
    line-height: 1.3;
}

/* 4. 小標題 - 卡片標題、步驟標題 */
.text-heading-large {
    font-size: 1.5rem; /* 24px */
    font-weight: 700;
    line-height: 1.4;
}

/* 5. 中標題 - 子標題 */
.text-heading-medium {
    font-size: 1.25rem; /* 20px */
    font-weight: 600;
    line-height: 1.4;
}

/* 6. 小標題 - 微標題 */
.text-heading-small {
    font-size: 1.125rem; /* 18px */
    font-weight: 600;
    line-height: 1.4;
}

/* 7. 大內文 - 主要描述文字 */
.text-body-large {
    font-size: 1.125rem; /* 18px */
    font-weight: 400;
    line-height: 1.6;
}

/* 8. 中內文 - 一般內文 */
.text-body-medium {
    font-size: 1rem; /* 16px */
    font-weight: 400;
    line-height: 1.6;
}

/* 9. 小內文 - 次要描述 */
.text-body-small {
    font-size: 0.875rem; /* 14px */
    font-weight: 400;
    line-height: 1.5;
}

/* 10. 微內文 - 標籤、註解 */
.text-caption {
    font-size: 0.75rem; /* 12px */
    font-weight: 400;
    line-height: 1.4;
}

/* 確保即將推出標籤的字體大小不被覆蓋 */
.text-caption.font-medium {
    font-size: 0.75rem !important; /* 強制保持12px */
}

/* 11. 按鈕文字 */
.text-button-large {
    font-size: 1.125rem; /* 18px */
    font-weight: 600;
    line-height: 1.2;
}



/* 12. 特殊用途文字類別 */
/* 卡片標題專用 */
.text-card-title {
    font-size: 1rem; /* 16px */
    font-weight: 700;
    line-height: 1.2;
    min-height: 2.5rem; /* 增加高度確保標題不被截斷 */
    max-height: 2.5rem; /* 增加高度確保標題不被截斷 */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    word-wrap: break-word;
    overflow: hidden;
    padding: 0 0.25rem;
    margin-bottom: 0.5rem; /* 增加與描述的距離 */
}

/* 卡片描述專用 */
.text-card-description {
    font-size: 0.75rem; /* 12px */
    font-weight: 400;
    line-height: 1.3;
    min-height: 1.5rem; /* 減少高度為標題騰出空間 */
    max-height: 2rem; /* 減少最大高度 */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 0.25rem;
    word-wrap: break-word;
}

/* Hero 描述專用 */
.text-hero-description {
    font-size: 1.125rem; /* 18px */
    font-weight: 400;
    line-height: 1.6;
    text-align: left;
    display: block;
    min-height: auto;
    max-height: none;
    overflow: visible;
    padding: 0;
    word-wrap: normal;
}

/* 步驟標題專用 */
.text-step-title {
    font-size: 1.25rem; /* 20px */
    font-weight: 700;
    line-height: 1.3;
}

/* 步驟描述專用 */
.text-step-description {
    font-size: 0.875rem; /* 14px */
    font-weight: 400;
    line-height: 1.5;
}

/* 卡片內容區域統一樣式 - 基礎樣式 */
.card-content-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.75rem;
    /* 移除固定高度限制，讓HTML的h-1.5/4生效 */
}

/* ===== 響應式文字大小調整 ===== */
/* 平板尺寸 (768px 以下) */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .text-display-large {
        font-size: 2.75rem; /* 44px */
    }
    
    .text-display-medium {
        font-size: 2.25rem; /* 36px */
    }
    
    .text-display-small {
        font-size: 1.75rem; /* 28px */
    }
    
    .text-heading-large {
        font-size: 1.375rem; /* 22px */
    }
    
    .text-heading-medium {
        font-size: 1.125rem; /* 18px */
    }
    
    .text-heading-small {
        font-size: 1rem; /* 16px */
    }
    
    .text-body-large {
        font-size: 1rem; /* 16px */
    }
    
    .text-body-medium {
        font-size: 0.9375rem; /* 15px */
    }
    
    .text-body-small {
        font-size: 0.8125rem; /* 13px */
    }
    
    .text-card-title {
        font-size: 1rem; /* 16px */
        /* 移除固定高度限制，讓HTML的設定生效 */
    }
    
    .text-card-description {
        font-size: 0.8125rem; /* 13px */
        /* 移除固定高度限制，讓HTML的設定生效 */
        padding: 0 0.25rem;
    }
    
    .text-hero-description {
        font-size: 1rem; /* 16px */
    }
    
    .text-step-title {
        font-size: 1.125rem; /* 18px */
    }
    
    .text-step-description {
        font-size: 0.8125rem; /* 13px */
    }
    
    /* 確保即將推出標籤在平板尺寸下保持正確字體大小 */
    .text-caption.font-medium {
        font-size: 0.75rem !important; /* 強制保持12px */
    }
    
    /* 舊版相容性樣式 - 平板尺寸 */
    .text-topic-large {
        font-size: 1.8rem;
    }
    
    .text-topic-medium {
        font-size: 1.3rem;
    }
    
    .text-description-small {
        font-size: 0.9rem; /* 手機版進一步縮小字體 */
        max-height: 4rem; /* 手機版減少描述文字高度 */
        padding: 0 0.25rem; /* 手機版減少內邊距 */
    }
}

/* 手機尺寸 (480px 以下) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .text-display-large {
        font-size: 2.25rem; /* 36px */
    }
    
    .text-display-medium {
        font-size: 1.875rem; /* 30px */
    }
    
    .text-display-small {
        font-size: 1.5rem; /* 24px */
    }
    
    .text-heading-large {
        font-size: 1.25rem; /* 20px */
    }
    
    .text-heading-medium {
        font-size: 1rem; /* 16px */
    }
    
    .text-heading-small {
        font-size: 0.9375rem; /* 15px */
    }
    
    .text-body-large {
        font-size: 0.9375rem; /* 15px */
    }
    
    .text-body-medium {
        font-size: 0.875rem; /* 14px */
    }
    
    .text-body-small {
        font-size: 0.75rem; /* 12px */
    }
    
    .text-card-title {
        font-size: 0.9375rem; /* 15px */
        /* 移除固定高度限制，讓HTML的設定生效 */
    }
    
    .text-card-description {
        font-size: 0.75rem; /* 12px */
        /* 移除固定高度限制，讓HTML的設定生效 */
        padding: 0 0.125rem;
    }
    
    .text-hero-description {
        font-size: 0.9375rem; /* 15px */
    }
    
    .text-step-title {
        font-size: 1rem; /* 16px */
    }
    
    .text-step-description {
        font-size: 0.75rem; /* 12px */
    }
    
    /* 確保即將推出標籤在手機尺寸下保持正確字體大小 */
    .text-caption.font-medium {
        font-size: 0.75rem !important; /* 強制保持12px */
    }
    
    /* 舊版相容性樣式 - 手機尺寸 */
    .text-topic-large {
        font-size: 1.6rem;
    }
    
    .text-topic-medium {
        font-size: 1.2rem;
    }
    
    .text-description-small {
        font-size: 0.85rem; /* 小螢幕進一步縮小字體 */
        max-height: 3.5rem; /* 小螢幕進一步減少描述文字高度 */
        padding: 0 0.125rem; /* 小螢幕進一步減少內邊距 */
    }
    
    /* 小螢幕卡片高度調整 - 移除強制高度，讓Tailwind比例類別生效 */
}

/* ===== 舊版相容性保留 ===== */
/* 保留舊的類別名稱以確保向後相容 */
.text-topic-large {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.2;
}

.text-topic-medium {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.text-description-small {
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.4;
    min-height: 3rem;
    max-height: 4.5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 0.5rem;
    word-wrap: break-word;
}

.text-button {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.2;
}

/* 移除重複的卡片內容區域樣式 - 已在上方定義 */

/* 移除卡片內容區域的固定高度限制，讓HTML的設定生效 */



/* 移除重複的響應式樣式 - 已合併到上方的響應式設計區塊 */

/* ===== 字體大小 ===== */
h1 {
    font-size: 2.1rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.19rem;
}

/* ===== 品牌色彩 ===== */
.brand-color {
    color: #12B8D7;
}

.bg-brand {
    background-color: #12B8D7;
}

.border-brand {
    border-color: #12B8D7;
}

.bg-brand-light {
    background-color: #F0FBFC;
}

.text-brand-dark {
    color: #07353D;
}

/* ===== 頁面切換動畫 ===== */
.page {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* ===== 下拉選單 ===== */
.dropdown-menu {
    transition: opacity 0.18s, transform 0.18s;
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    pointer-events: none;
}

.dropdown-menu.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* ===== 語言切換按鈕 ===== */
.lang-switcher-btn.active {
    color: #12B8D7;
    font-weight: 700;
}



/* Language display */
.lang-en, .lang-zh {
    display: inline; /* Default display */
}

/* 當URL包含lang=en參數時，立即隱藏中文內容 */
html[lang="en"] .lang-zh {
    display: none;
}

/* ===== FAQ 樣式 ===== */
.faq-tab {
    transition: all 0.3s ease;
}

.faq-tab.active {
    background-color: #12B8D7;
    color: white;
}

.faq-tab:not(.active) {
    background-color: #f3f4f6;
    color: #374151;
}

.faq-tab:hover:not(.active) {
    background-color: #e5e7eb;
}

.faq-category {
    display: none;
}

.faq-category.active {
    display: block;
}

.faq-question {
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: #f9fafb;
}

.faq-answer {
    transition: all 0.3s ease;
}

.faq-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item {
    border-radius: 0.5rem;
    overflow: hidden;
}

html[lang="en"] .lang-en {
    display: inline;
}

/* 當URL包含lang=zh參數時，顯示中文內容 */
html[lang="zh"] .lang-zh {
    display: inline;
}

html[lang="zh"] .lang-en {
    display: none;
}

/* ===== 固定演示按鈕 ===== */
.fixed-demo-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background: linear-gradient(135deg, #12B8D7 0%, #0EA5B3 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 32px;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 8px 25px rgba(18, 184, 215, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.fixed-demo-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(18, 184, 215, 0.4);
    background: linear-gradient(135deg, #0EA5B3 0%, #12B8D7 100%);
}

.fixed-demo-btn:active {
    transform: translateY(-1px);
}

/* ===== 響應式設計 ===== */
@media (max-width: 768px) {
    .fixed-demo-btn {
        bottom: 20px;
        right: 20px;
        padding: 14px 28px;
        font-size: 0.95rem;
    }
}

/* ===== 卡片樣式 ===== */
.bg-white.rounded-2xl.shadow-lg {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.hover\:shadow-2xl:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ===== 主要區塊字級細一點 ===== */
.text-base {
    font-size: 1.08rem;
}

.text-lg {
    font-size: 1.17rem;
}

.text-xl {
    font-size: 1.29rem;
}

.text-2xl {
    font-size: 1.55rem;
}

.text-3xl {
    font-size: 1.85rem;
}

.text-4xl {
    font-size: 2.2rem;
}

.text-5xl {
    font-size: 2.5rem;
}

.text-6xl {
    font-size: 2.9rem;
}

.text-7xl {
    font-size: 3.4rem;
}

button,
a.button,
.btn,
.rounded-full {
    font-size: 1.05rem;
}

/* ===== 步驟進度條樣式 ===== */
.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-indicator:hover {
    transform: translateY(-2px);
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.step-indicator.active .step-circle {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(18, 184, 215, 0.4);
}

.step-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    text-align: center;
}

.step-indicator.active .step-label {
    color: #12B8D7;
    font-weight: 700;
}

.step-line {
    flex: 1;
    height: 3px;
    background: linear-gradient(90deg, #12B8D7 0%, #E5E7EB 100%);
    margin: 0 10px;
    border-radius: 2px;
    position: relative;
    top: -15px;
}

/* 移動端進度條隱藏 */
@media (max-width: 768px) {
    .step-line {
        display: none;
    }
    
    .step-indicator {
        margin: 0 5px;
    }
}

/* ===== 步驟卡片樣式 ===== */
.step-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #12B8D7, #0EA5B3);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #12B8D7;
}

.step-card:hover::before {
    transform: scaleX(1);
}

.step-card.active {
    border-color: #12B8D7;
    box-shadow: 0 15px 35px rgba(18, 184, 215, 0.2);
}

.step-card.active::before {
    transform: scaleX(1);
}

.step-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    overflow: visible;
}

.step-card:hover .step-icon {
    transform: scale(1.1) rotate(5deg);
}

.step-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #12B8D7;
    opacity: 0.7;
}

.step-card-content {
    text-align: left;
}

.step-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 8px;
    line-height: 1.3;
}

.step-description {
    color: #6B7280;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.step-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #4B5563;
    font-weight: 500;
}

/* ===== 響應式設計 ===== */
@media (max-width: 768px) {
    .step-card {
        padding: 20px;
    }
    
    .step-icon {
        width: 50px;
        height: 50px;
    }
    
    .step-title {
        font-size: 1.2rem;
    }
    
    .step-description {
        font-size: 0.9rem;
    }
    
    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .step-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 640px) {
    html {
        font-size: 15px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.22rem;
    }
}

/* ===== 滾動觸發動畫 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 初始狀態 - 隱藏元素 */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.animate {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-scale.animate {
    opacity: 1;
    transform: scale(1);
}

/* 延遲動畫 */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

.delay-600 {
    transition-delay: 0.6s;
}

.delay-700 {
    transition-delay: 0.7s;
}

.delay-800 {
    transition-delay: 0.8s;
}







/* ===== 工作卡片容器樣式 (保留舊樣式以備用) ===== */
.job-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 80rem;
    margin: 0 auto;
    justify-content: center;
}

/* 確保卡片在容器中置中並統一高度 */
.job-cards-container > div {
    width: 100%;
    max-width: 320px;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
}

/* 響應式卡片寬度 */
@media (min-width: 640px) {
    .job-cards-container > div {
        width: calc(50% - 1rem);
        max-width: 320px;
        display: flex;
        flex-direction: column;
    }
}

@media (min-width: 1024px) {
    .job-cards-container > div {
        width: calc(33.333% - 1.33rem);
        max-width: 300px;
        display: flex;
        flex-direction: column;
    }
}

@media (min-width: 1280px) {
    .job-cards-container > div {
        width: calc(20% - 1.6rem);
        max-width: 300px;
        display: flex;
        flex-direction: column;
    }
}

/* 手機版卡片高度調整 */
@media (max-width: 640px) {
    .job-cards-container > div {
        height: 20rem; /* 320px - 比 h-64 (256px) 更高 */
    }
}



/* ===== 統一政策頁面樣式 ===== */
/* 政策內容項目樣式 */
.policy-item {
    margin-bottom: 1.5rem;
}

.policy-item p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.policy-item strong {
    margin-right: 0.5rem;
}

/* 政策列表項目樣式 */
.policy-item ul {
    margin-top: 0.75rem;
    margin-bottom: 1rem;
}

.policy-item li {
    margin-bottom: 0.25rem;
}

/* 政策章節樣式 */
.policy-section {
    margin-bottom: 2rem;
}

.policy-section h2 {
    margin-bottom: 1rem;
}

.policy-section p:first-of-type {
    margin-bottom: 1.5rem;
}

/* 政策子標題樣式 */
.policy-item h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-top: 0.5rem;
}

.policy-item h3:first-child {
    margin-top: 0;
}

.policy-item ul {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.policy-item ul li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

/* 浮動導航選單樣式 */
.floating-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 16px 12px;
    max-height: 80vh;
    overflow-y: auto;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.floating-nav:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.floating-nav-title {
    font-size: 0.875rem; /* 14px */
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.nav-section-title {
    font-size: 0.875rem; /* 14px */
    font-weight: 700;
    color: #1f2937;
    margin: 16px 0 8px 0;
    text-align: center;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}

.nav-item {
    display: block;
    padding: 8px 12px;
    margin: 4px 0;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.8125rem; /* 13px */
    color: #6b7280;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}

.nav-item:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.nav-item.active {
    background: #3b82f6;
    color: white;
}

.nav-item.main-section {
    font-weight: 600;
    color: #1f2937;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    margin: 8px 0;
    padding: 10px 12px;
}

.nav-item.main-section:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.nav-item.main-section.active {
    background: #1e40af;
    color: white;
    border-color: #1e40af;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .floating-nav {
        right: 10px;
        padding: 12px 8px;
        max-width: 120px;
    }
    
    .nav-item {
        font-size: 0.75rem; /* 12px */
        padding: 6px 8px;
    }
}

/* 滾動條樣式 */
.floating-nav::-webkit-scrollbar {
    width: 4px;
}

.floating-nav::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.floating-nav::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.floating-nav::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 統一政策內容樣式 */
.policy-content {
    color: #374151;
    line-height: 1.625;
}

.policy-content .lang-zh,
.policy-content .lang-en {
    display: block;
}

.policy-content .lang-en.hidden {
    display: none;
}

/* 政策頁面響應式調整 */
@media (max-width: 768px) {
    .policy-item {
        margin-bottom: 1.25rem;
    }
    
    .policy-section {
        margin-bottom: 1.5rem;
    }
    
    .policy-item h3 {
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .policy-item ul {
        margin-top: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .policy-item ul li {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .policy-item {
        margin-bottom: 1rem;
    }
    
    .policy-section {
        margin-bottom: 1.25rem;
    }
    
    .policy-item h3 {
        margin-top: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .policy-item ul {
        margin-top: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .policy-item ul li {
        margin-bottom: 0.375rem;
    }
}

/* ===== Worker頁面Hero區塊樣式 ===== */
.worker-hero-section {
    min-height: 90vh;
    padding: 2rem 0;
}

/* ===== Hero 圖片輪播樣式 ===== */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 1s ease-in-out;
    opacity: 0;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(0.9);
}

/* 手機版圖片優化 - 保持長方形外框 */
@media (max-width: 768px) {
    .slide img {
        object-fit: cover;
        transform: scale(1);
        object-position: center;
    }
}

/* 平板版圖片優化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .slide img {
        transform: scale(0.95);
    }
}

/* 特殊圖片視角調整 - 確保看到人物頭部 */
.slide[data-slide="1"] img {
    object-position: 60% center;
}

.slide[data-slide="3"] img {
    object-position: center 25%;
}

.slide[data-slide="4"] img {
    object-position: center 35%;
}

.slide[data-slide="6"] img {
    object-position: center 35%;
}

/* 手機版特殊圖片視角調整 */
@media (max-width: 768px) {
    .slide[data-slide="1"] img {
        object-position: 65% center;
    }
    .slide[data-slide="3"] img,
    .slide[data-slide="4"] img,
    .slide[data-slide="6"] img {
        object-position: center;
    }
}



/* 輪播動畫效果 */
.slide.active {
    opacity: 1;
    z-index: 10;
    visibility: visible;
}

.slide:not(.active) {
    opacity: 0;
    z-index: 0;
    visibility: hidden;
}

/* 加工效果動畫 */
@keyframes shimmer {
    0% {
        transform: translateX(-100%) skewX(-12deg);
    }
    100% {
        transform: translateX(100%) skewX(-12deg);
    }
}

@keyframes border-pulse {
    0%, 100% {
        border-color: rgba(255, 255, 255, 0.2);
    }
    50% {
        border-color: rgba(18, 184, 215, 0.4);
    }
}

@keyframes grid-move {
    0% {
        transform: translateX(0) translateY(0);
    }
    100% {
        transform: translateX(20px) translateY(20px);
    }
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes line-sweep {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes line-sweep-vertical {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

/* 動畫類別 */
.animate-shimmer {
    animation: shimmer 3s ease-in-out infinite;
}

.animate-border-pulse {
    animation: border-pulse 2s ease-in-out infinite;
}

.animate-grid-move {
    animation: grid-move 4s ease-in-out infinite alternate;
}

.animate-spin-slow {
    animation: spin-slow 8s linear infinite;
}

.animate-line-sweep {
    animation: line-sweep 4s ease-in-out infinite;
}

.animate-line-sweep-vertical {
    animation: line-sweep-vertical 4s ease-in-out infinite;
}

/* 徑向漸層 */
.bg-radial-gradient {
    background: radial-gradient(circle at center, var(--tw-gradient-from), var(--tw-gradient-via), var(--tw-gradient-to));
}

/* 網格圖案 */
.bg-grid-pattern {
    background-image: 
        linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* 輪播指示器樣式 */
[data-slide] {
    transition: all 0.3s ease;
    transform: scale(1);
    cursor: pointer;
}

[data-slide]:hover {
    transform: scale(1.2);
    background-color: white;
    opacity: 1;
}

[data-slide].active {
    background-color: white;
    opacity: 1;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* ===== Employer Hero Image 響應式優化 ===== */
@media (max-width: 768px) {
    /* 手機版 employer hero image 優化 */
    .employer-hero-image {
        object-fit: cover;
        object-position: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* 平板版 employer hero image 優化 */
    .employer-hero-image {
        object-position: center;
    }
}