/* CSS 變數定義 - F0FFC2 檸檬綠清新主題 */
:root {
    /* 主色系：以 #F0FFC2 檸檬綠為核心延伸 */
    --primary-light: #f8ffe8;      /* 極淺背景 */
    --primary-base: #F0FFC2;         /* 主色：檸檬綠 */
    --primary-medium: #d4e88a;       /* 主色深一階 */
    --primary-dark: #b8d45a;         /* 主色深二階 */
    
    /* 深色系：深墨綠用於文字與強調 */
    --dark-primary: #1a2e1a;         /* 主要文字 */
    --dark-secondary: #2d4a2d;       /* 次要文字 */
    --dark-tertiary: #4a634a;        /* 輔助文字 */
    
    /* 背景系統 */
    --bg-primary: #fafbe8;          /* 頁面背景：暖米綠 */
    --bg-card: #ffffff;              /* 卡片背景 */
    --bg-card-alt: #f5f8e8;          /* 交替區塊背景 */
    
    /* 文字色彩 */
    --text-primary: #1a2e1a;         /* 主要文字：深墨綠 */
    --text-secondary: #4a634a;       /* 次要文字 */
    --text-light: #ffffff;           /* 淺色文字（用於深色背景） */
    
    /* 邊框與分隔線 */
    --border-color: #d4e5b8;         /* 綠色系邊框 */
    --border-subtle: #e8f0d8;        /* 微妙邊框 */
    
    /* 語意色彩 */
    --success-color: #3d7a5f;        /* 成功：墨綠 */
    --success-bg: #e8f5e9;           /* 成功背景 */
    --danger-color: #c85a3a;         /* 錯誤：暖紅 */
    --danger-bg: #fde8e2;            /* 錯誤背景 */
    --warning-color: #c9a227;        /* 警告：深黃 */
    --warning-bg: #fff8e1;           /* 警告背景 */
    
    /* 按鈕色彩 */
    --btn-primary-bg: #1a2e1a;       /* 主按鈕：深墨綠 */
    --btn-primary-hover: #2d4a2d;    /* 主按鈕 hover */
    --btn-primary-text: #F0FFC2;     /* 主按鈕文字：檸檬綠 */
    --btn-secondary-bg: #f5f8e8;     /* 次要按鈕 */
    --btn-secondary-hover: #e8f0d8;  /* 次要按鈕 hover */
    
    /* 圓角與間距 */
    --radius-card: 12px;
    --radius-button: 8px;
    --radius-full: 9999px;
    --spacing-section: 1.5rem;
    
    /* 陰影系統 */
    --shadow-sm: 0 2px 4px rgba(26, 46, 26, 0.04);
    --shadow-md: 0 4px 12px rgba(26, 46, 26, 0.08);
    --shadow-lg: 0 8px 24px rgba(26, 46, 26, 0.12);
}

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

/* 字體設定：Orbitron 用於標題，Noto Sans TC 用於內文 */
body {
    font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    letter-spacing: 0.02em;
}

/* 標題字體階層：Orbitron 科幻風格 */
h1, h2, h3, .logo span, .price, .price-large {
    font-family: 'Orbitron', 'Noto Sans TC', sans-serif;
    letter-spacing: 0.04em;
}

h1 {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
}

h3 {
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.4;
}

h4 {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
}

/* 內文與小字 */
p, li, span {
    font-size: 1rem;
    line-height: 1.7;
}

small, .text-small {
    font-size: 0.875rem;
    line-height: 1.6;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1.5;
}

/* 程式碼字體 */
code, pre, .code-content pre {
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.logo i {
    color: var(--primary-base);
    font-size: 1.5rem;
}

.logo span {
    font-weight: 600;
    font-size: 1.25rem;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0.5rem 0;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-base);
    transition: width 0.2s ease;
}

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

nav a:hover::after {
    width: 100%;
}

/* Hero 區塊 */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--primary-light) 50%, var(--primary-base) 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(26, 46, 26, 0.08);
}

.subtitle {
    font-size: 1.25rem;
    color: var(--dark-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
}

.price-tag {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-primary);
    font-family: 'Orbitron', sans-serif;
}

.duration {
    font-size: 1rem;
    color: var(--text-secondary);
    background-color: var(--bg-card);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    font-family: 'Noto Sans TC', sans-serif;
}

/* 按鈕樣式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-button);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    font-family: 'Noto Sans TC', sans-serif;
}

.btn-primary {
    background-color: var(--btn-primary-bg);
    color: var(--btn-primary-text);
}

.btn-primary:hover {
    background-color: var(--btn-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(240, 255, 194, 0.3);
}

.btn-primary i {
    font-size: 1rem;
    color: var(--primary-base);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Code Preview */
.code-preview {
    background-color: #1e1e1e;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.code-header {
    background-color: #2d2d2d;
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background-color: #ff5f56;
}

.dot.yellow {
    background-color: #ffbd2e;
}

.dot.green {
    background-color: #27ca40;
}

.code-content {
    padding: 1.5rem;
}

.code-content pre {
    margin: 0;
    font-family: "Consolas", "Monaco", monospace;
    font-size: 0.9rem;
    color: #d4d4d4;
    line-height: 1.8;
}

.code-content code {
    color: #9cdcfe;
}

/* Section */
.section {
    padding: 4rem 0;
}

.section-alt {
    background-color: var(--bg-card-alt);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.section h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-card);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-base);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-base) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.2s ease;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary-base) 0%, var(--primary-medium) 100%);
    transform: scale(1.05);
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--dark-primary);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Curriculum */
.curriculum {
    max-width: 800px;
    margin: 0 auto;
}

.curriculum-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.curriculum-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-base) 0%, var(--primary-medium) 100%);
    color: var(--dark-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
    font-family: 'Orbitron', sans-serif;
    box-shadow: var(--shadow-sm);
}

.curriculum-content {
    flex: 1;
    background-color: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-card);
    border: 1px solid var(--border-color);
}

.curriculum-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.curriculum-content ul {
    list-style: none;
}

.curriculum-content li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.curriculum-content li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Instructor Card */
.instructor-card {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-card);
    border: 1px solid var(--border-color);
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.instructor-avatar {
    width: 120px;
    height: 120px;
    background-color: var(--bg-card-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid var(--border-color);
}

.instructor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.instructor-info {
    flex: 1;
}

.instructor-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.instructor-title {
    color: var(--success-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-family: 'Noto Sans TC', sans-serif;
}

.instructor-bio {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.instructor-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    background-color: var(--primary-light);
    color: var(--dark-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--primary-base);
    transition: all 0.2s ease;
}

.skill-tag:hover {
    background-color: var(--primary-base);
    transform: translateY(-1px);
}

/* Location Card */
.location-card {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-card);
    border: 1px solid var(--border-color);
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.location-icon {
    width: 80px;
    height: 80px;
    background-color: var(--bg-card-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid var(--border-color);
}

.location-icon i {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
}

.location-info {
    flex: 1;
}

.location-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.location-address {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.location-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

/* Signup Card */
.signup-card {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.signup-card h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.price-highlight {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.price-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-primary);
    display: block;
    font-family: 'Orbitron', sans-serif;
}

.price-note {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-button);
    font-size: 1rem;
    font-family: inherit;
    background-color: var(--bg-card-alt);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 3px rgba(240, 255, 194, 0.5);
    background-color: var(--bg-card);
}

.signup-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

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

/* Toast 訊息 */
.toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-button);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
    max-width: 400px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-success {
    background-color: var(--success-color);
    color: var(--text-light);
}

.toast-error {
    background-color: var(--danger-color);
    color: var(--text-light);
}

.toast-warning {
    background-color: var(--warning-color);
    color: var(--dark-primary);
}

.toast i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* 響應式設計：手機優先，由小到大 */
@media (max-width: 375px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
    }
}

@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .hero {
        padding: 3rem 0;
    }

    .price-tag {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    nav {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .curriculum-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .curriculum-content li {
        padding-left: 0;
    }

    .curriculum-content li::before {
        display: none;
    }

    .instructor-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .instructor-avatar {
        width: 100px;
        height: 100px;
    }

    .instructor-skills {
        justify-content: center;
    }

    .location-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .location-icon {
        width: 64px;
        height: 64px;
    }

    .location-icon i {
        width: 32px;
        height: 32px;
    }

    .location-details {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }

    .toast {
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}
