/* 基礎設定 - 根據設計 Skill 優化 */
:root {
    /* 主要配色系統 (基於 #F77000) */
    --primary-color: #F77F00;         /* 主色：主題橘 */
    --primary-light: #FFF5EB;         /* 淺主色：背景/Hover 使用 */
    --primary-dark: #D46B00;          /* 深主色：Active/點擊 使用 */
    
    /* 專業次色與輔助色 */
    --secondary-color: #003049;       /* 次色：深藍色 (展現穩重感) */
    --gray-light: #F3F4F6;            /* 淺灰：用於次要按鈕背景 */
    --gray-dark: #4B5563;             /* 深灰：用於內文與次要元素 */
    
    /* 語義色彩 */
    --success: #10B981;               /* 成功：綠色 */
    --error: #EF4444;                 /* 錯誤：紅色 */
    --warning: #F59E0B;               /* 警告：黃色 */
    
    /* 文字與背景 */
    --text-main: #1F2937;             /* 主要文字：高級深灰 */
    --text-sub: #6B7280;              /* 次要文字：中階灰 */
    --bg-white: #FFFFFF;              /* 純白背景 */
    --bg-soft: #FFFCF9;               /* 輕盈橘底背景 */
    
    /* 字體配置 */
    --font-heading: 'Noto Sans TC', 'Outfit', sans-serif; /* 標題優先使用 Noto Sans TC */
    --font-body: 'Inter', 'Noto Sans TC', sans-serif;     /* 內文混合 Inter 與 Noto Sans */
    --font-ui: 'Noto Sans TC', sans-serif;
    
    /* 視覺規範 tokens */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    
    /* 動畫過度 */
    --transition: 0.2s ease;          /* 統一微動畫 0.2s */
    --shadow-soft: 0 10px 25px -5px rgba(247, 127, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* 平滑滾動 */
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.7;                 /* 根據 Skill 優化行高至 1.7 */
    letter-spacing: 0.01em;           /* 適度調整字距 */
    overflow-x: hidden;
}

/* 常用容器與輔助工具 */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

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

h1, h2, h3 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #111827;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

/* 導覽列 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px); /* 毛玻璃效果 */
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -1px;
}

.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

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

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

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

.nav-cta {
    background-color: var(--primary-color);
    color: #fff !important;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: transform var(--transition), background-color var(--transition) !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    background-color: var(--primary-dark);
}

/* 英雄區 (Hero Section) */
.hero {
    padding: 180px 0 100px;
    background: radial-gradient(circle at top right, #fff5eb, transparent),
                radial-gradient(circle at bottom left, #fff7ed, transparent);
    text-align: center;
}

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

.hero p {
    font-size: 1.25rem;
    color: #4b5563;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.highlight {
    background: linear-gradient(120deg, rgba(247, 127, 0, 0.25) 0%, rgba(247, 127, 0, 0.25) 100%);
    background-repeat: no-repeat;
    background-size: 100% 0.4em;
    background-position: 0 88%;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* 按鈕樣式 */
/* 按鈕樣式 - 統一規範 */
.btn {
    padding: 0.8rem 2rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;                       /* 圖示與文字間距 */
    transition: all var(--transition);/* 統一 0.2s transitions */
    cursor: pointer;
    border: none;
}

.btn.primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(247, 127, 0, 0.39);
}

.btn.primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 127, 0, 0.23);
}

.btn.secondary {
    background-color: var(--gray-light);
    color: var(--text-main);
}

.btn.secondary:hover {
    background-color: #E5E7EB;
    transform: translateY(-2px);
}

/* 服務簡介 Section */
.intro {
    padding: 100px 0;
}

.grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #4b5563;
}

.intro-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-card .icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 0.9rem;
    color: #6b7280;
}

/* 服務項目 Section */
.services {
    padding: 100px 0;
    background-color: var(--section-bg);
}

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

.service-card {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--card-shadow);
}

.service-num {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 800;
    color: #fff5eb;
    position: absolute;
    top: -10px;
    right: 20px;
    z-index: 0;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.service-card h3, .service-card p, .service-icon {
    position: relative;
    z-index: 1;
}

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

.service-card p {
    color: #4b5563;
}

/* 見證區 Section */
.testimonials {
    padding: 100px 0;
}

.testimonials-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem 0;
    scrollbar-width: none;
}

.testimonial-card {
    min-width: 350px;
    background: #fff;
    padding: 2.5rem;
    border-radius: 20px;
    border-left: 5px solid var(--primary-color);
    box-shadow: var(--card-shadow);
    font-style: italic;
    font-size: 1.1rem;
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background-color: var(--section-bg);
}

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

.faq-item {
    background: #fff;
    margin-bottom: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

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

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    color: #4b5563;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 1.5rem;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

/* CTA Section */
.cta {
    padding: 100px 0;
}

.cta-card {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1f2937 100%);
    color: #fff;
    padding: 5rem 3rem;
    border-radius: 32px;
    text-align: center;
}

.cta-card h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.cta-item {
    color: #fff;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s ease;
}

.cta-item:hover {
    opacity: 0.7;
}

.contact-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    font-size: 1rem;
    color: #9ca3af;
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-logo {
    height: 24px;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

footer p {
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.privacy {
    font-size: 0.85rem;
    max-width: 600px;
    margin: 1rem auto 0;
}

/* 動畫基礎 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.is-visible {
    animation: fadeInUp 0.8s ease forwards;
}

/* 手機版調整 - 響應式優化 */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero { padding: 140px 0 60px; }
    .hero h1 { font-size: 2.5rem; }
    .grid { grid-template-columns: 1fr; gap: var(--spacing-md); }
    .section-title { font-size: 2rem; }
    .cta-card { padding: 3rem 1.5rem; border-radius: var(--radius-lg); }
    .contact-info { gap: 1rem; flex-direction: column; }
    .btn { width: 100%; justify-content: center; } /* 手機版按鈕全寬 */
}
