/* 
  AI 智慧製造設計系統 (Design Advisor - Guided)
  配色方案：電光螢光綠 (#F1FF5E) 搭配 工業深煤黑 (#0B0E14)
*/

:root {
    /* 主要色彩系統 (Color System) */
    --p-color: #f1ff5e;           /* 主色 (Primary) */
    --p-color-hover: #e5f24d;     /* 主色 Hover */
    --p-color-light: rgba(241, 255, 94, 0.1); /* 主色淺背景 */
    
    --bg-dark: #0b0e14;           /* 背景深色 */
    --bg-card: #161b22;           /* 卡片背景 */
    --bg-footer: #05070a;         /* 頁尾背景 */
    
    /* 文字色彩 */
    --text-main: #f8fafc;         /* 主要文字 */
    --text-muted: #94a3b8;        /* 次要文字 */
    --text-on-p: #0b0e14;         /* 主色上的文字顏色 */
    
    /* 語意色彩 (Semantic Colors) */
    --success: #22c55e;
    --error: #ef4444;
    --warning: #f59e0b;
    
    /* 裝飾與陰影 */
    --radius-lg: 16px;
    --radius-md: 12px;
    --shadow-glow: 0 0 20px rgba(241, 255, 94, 0.25);
    --shadow-card: 0 15px 35px rgba(0, 0, 0, 0.5);
    --transition: all 0.2s ease;  /* 微動畫規範 */
}

/* 1. 基礎設定 (Basics) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: var(--transition); /* 全域微動畫套用 */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7; /* 間距優化：1.7 */
    -webkit-font-smoothing: antialiased;
}

/* 2. 字體階層 (Typography) */
h1, h2, h3, h4 {
    font-family: 'Inter', 'Noto Sans TC', sans-serif;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 8vw, 4rem); } /* 響應式字級 */
h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); margin-bottom: 3rem; text-align: center; }
h3 { font-size: 1.5rem; }

p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

code {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* 3. 配置與導覽 (Navigation) */
header {
    background-color: rgba(11, 14, 20, 0.9);
    backdrop-filter: blur(15px);
    padding: 1.2rem 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(241, 255, 94, 0.1);
}

.logo {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--p-color);
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
}

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

/* 4. 主視覺英雄區 (Hero Section) */
.hero {
    min-height: 80vh;
    padding: 4rem 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at 50% 50%, rgba(241, 255, 94, 0.05) 0%, transparent 70%);
}

.accent-text {
    color: var(--p-color);
    text-shadow: var(--shadow-glow);
}

.hero p {
    max-width: 800px;
    margin-bottom: 3rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--p-color);
    color: var(--text-on-p);
    padding: 1rem 2.5rem;
    border-radius: var(--radius-md);
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(241, 255, 94, 0.15);
}

.cta-button:hover {
    transform: translateY(-3px);
    background-color: var(--p-color-hover);
    box-shadow: 0 15px 30px rgba(241, 255, 94, 0.3);
}

/* 5. 資訊卡片區 (Information Cards) */
.pricing-info {
    padding: 6rem 5%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.info-card {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    box-shadow: var(--shadow-card);
}

.info-card:hover {
    border-color: var(--p-color);
    transform: translateY(-5px);
}

.price-tag {
    font-size: 3rem;
    font-weight: 900;
    color: var(--p-color);
    margin: 1rem 0;
}

/* 6. 團隊與圖片區 (Team Section) */
.team-section {
    padding: 6rem 5%;
    background-color: #0d1117;
}

.photo-frame {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(241, 255, 94, 0.1);
}

.team-photo {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.photo-caption {
    margin-top: 1.5rem;
    text-align: center;
    font-style: italic;
}

/* 7. 課綱規劃 (Syllabus) */
.syllabus-detailed {
    padding: 6rem 5%;
}

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

.syllabus-module {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.module-header {
    color: var(--p-color);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.module-time {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    background: var(--p-color-light);
    color: var(--p-color);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.module-list {
    list-style: none;
}

.module-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.module-list li::before {
    content: '\f061'; /* Font Awesome Arrow */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--p-color);
    font-size: 0.8rem;
}

/* 8. 服務區 (Services) */
.services {
    padding: 6rem 5%;
    background: #0d1117;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

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

.service-icon {
    font-size: 3rem;
    color: var(--p-color);
    margin-bottom: 1rem;
}

/* 9. 頁尾 (Footer) */
footer {
    padding: 5rem 5%;
    text-align: center;
    background-color: var(--bg-footer);
}

/* 10. 響應式佈局 (Responsive Design - Mobile First) */

/* 平板斷點 (Tablet: 768px) */
@media (min-width: 768px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        padding: 1.2rem 10%;
    }

    .nav-links { gap: 2.5rem; }

    .pricing-info {
        grid-template-columns: repeat(2, 1fr);
        padding: 8rem 10%;
    }

    .syllabus-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-list {
        flex-direction: row;
        justify-content: center;
    }

    .service-item {
        max-width: 320px;
    }
}

/* 桌面斷點 (Desktop: 1200px) */
@media (min-width: 1200px) {
    .pricing-info, .syllabus-detailed, .services {
        padding-left: 15%;
        padding-right: 15%;
    }
    
    .syllabus-grid {
        gap: 2.5rem;
    }
}
