/* 基本重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主要配色系統 - 質感深灰與商務藍 */
    --primary-color: #005bb7;    /* 核心商務藍 */
    --primary-light: #e6f0f9;    /* 用於背景的淺藍 */
    --primary-dark: #00448a;     /* 用於 Active 狀態的深藍 */
    
    --text-main: #333333;        /* 質感深灰 (用於標題與主文字) */
    --text-muted: #666666;       /* 輔助文字顏色 */
    --bg-light: #f8fafd;         /* 網頁底色，微帶藍調的淺灰 */
    
    /* 語意色彩 (紅、綠、黃) */
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    
    /* 視覺裝飾 */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.05);
    --card-shadow: 0 8px 30px rgba(0, 91, 183, 0.08);
    --border-radius: 12px;       /* 統一全站圓角 */
    --transition-fast: 0.2s ease; /* 微動畫加速感 */
}

body {
    /* 字體優先序：英文 Roboto, 中文 Noto Sans TC */
    font-family: 'Roboto', 'Noto Sans TC', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.7; /* 提升閱讀舒適度 */
    overflow-x: hidden;
}

.container {
    max-width: 1200px; /* 針對桌面端斷點放大 */
    margin: 0 auto;
    padding: 0 2rem;
}

/* 導覽列樣式 */
header {
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* 主視覺區塊 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    /* 使用商務藍的漸層色，確保在不同背景下清晰可見 */
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

/* 按鈕樣式 (Button System) */
.btn-primary, .btn-secondary {
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius); /* 統一圓角 */
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem; /* 圖示與文字間距 */
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff !important;
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 91, 183, 0.2);
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    margin-right: 1rem;
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

/* 背景裝飾球動畫 */
.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    /* 改用商務藍與淺藍的漸層組合 */
    background: linear-gradient(var(--primary-color), var(--primary-light));
    filter: blur(100px);
    border-radius: 50%;
    z-index: -1;
    top: 5%;
    right: -5%;
    opacity: 0.15; /* 稍微調低透明度但增加範圍，提升層次感 */
    animation: move 20s infinite alternate;
}

@keyframes move {
    from { transform: translate(0, 0); }
    to { transform: translate(-100px, 100px); }
}

/* 橫幅圖片樣式 */
.banner-section {
    padding: 4rem 0; /* 增加上下間距 */
    display: flex;
    justify-content: center;
}

.banner-img {
    width: 100%;
    max-width: 100%; /* 確保圖片不超過容器 */
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    display: block;
}

/* 服務區塊樣式 */
.services {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    padding: 2.5rem 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all var(--transition-fast);
    box-shadow: var(--card-shadow);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
    transition: var(--transition-fast);
}

.service-card:hover .icon-box {
    background: var(--primary-color);
    color: #ffffff;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
}

/* 合作流程與常見問題新樣式 */
.process, .faq {
    padding: 100px 0;
}

.process-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    position: relative;
}

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

.step-num {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: var(--card-shadow);
}

.faq-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--text-main); /* 提升問答回覆的文字可見度 */
}

.faq-item:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
    transition: all 0.3s;
}

/* 頁尾 */
footer {
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    background: white;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 動效 - 基礎淡入 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* 響應式佈局 (Mobile First) */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .nav-links {
        display: none; /* 行動端暫時隱藏 */
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1200px) {
    /* 桌面端大螢幕優化 */
    .hero-content h1 {
        font-size: 4.5rem;
    }
}
