/* CSS Reset 與基礎設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --accent-color: #ffe66d;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --line-green: #06C755;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 頂部導航 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    font-size: 40px;
}

.logo h1 {
    font-size: 32px;
    font-weight: 900;
}

.btn-line {
    background-color: var(--line-green);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn-line:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background-color: #05b049;
}

.btn-line i {
    font-size: 26px;
}

/* 主視覺區 */
.hero {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.hero-description {
    font-size: 26px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 26px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    background-color: #ff5252;
}

/* 區塊標題 */
.section-title {
    font-size: 42px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
}

/* 課程特色 */
.features {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-card i {
    font-size: 60px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 20px;
    color: var(--text-light);
    line-height: 1.6;
}

/* 課程區塊 */
.courses {
    padding: 80px 0;
    background-color: white;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.course-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

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

.course-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: var(--shadow);
}

.course-icon i {
    font-size: 50px;
    color: white;
}

.course-card h3 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
    color: var(--text-dark);
}

.course-card > p {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.7;
}

.course-benefits {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.course-benefits li {
    font-size: 19px;
    padding: 12px 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.course-benefits i {
    color: var(--secondary-color);
    font-size: 20px;
    flex-shrink: 0;
}

/* 學員見證 */
.testimonials {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
}

.testimonials .section-title {
    color: var(--text-dark);
}

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

.testimonial-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-avatar {
    text-align: center;
    margin-bottom: 20px;
}

.testimonial-avatar i {
    font-size: 70px;
    color: var(--primary-color);
}

.testimonial-text {
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-light);
    text-align: right;
}

/* 聯絡報名 */
.contact {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: center;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-item i {
    font-size: 40px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-item h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.contact-item p {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.small-text {
    font-size: 18px !important;
    color: var(--text-light) !important;
}

.cta-box .small-text {
    font-size: 22px !important;
    color: var(--accent-color) !important;
    font-weight: 700 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.contact-cta {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.cta-box h3 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 20px;
}

.price-highlight {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}

.price-highlight span {
    font-size: 48px;
    color: var(--accent-color);
    font-weight: 900;
}

.btn-line-large {
    background-color: var(--line-green);
    color: white;
    padding: 25px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 28px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    margin-top: 25px;
}

.btn-line-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background-color: #05b049;
}

.btn-line-large i {
    font-size: 32px;
}

.cta-note {
    font-size: 18px;
    margin-top: 20px;
    opacity: 0.9;
}

/* 頁尾 */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 50px 0 30px;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo i {
    font-size: 40px;
}

.footer-logo h3 {
    font-size: 28px;
    font-weight: 700;
}

.footer-content > p {
    font-size: 20px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.footer-social {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.footer-social a {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--line-green);
    transform: translateY(-5px);
}

.copyright {
    font-size: 18px;
    opacity: 0.7;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* 浮動 LINE 按鈕 */
.floating-line {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 80px;
    height: 80px;
    background-color: var(--line-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 45px;
    box-shadow: 0 8px 20px rgba(6, 199, 85, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.floating-line:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(6, 199, 85, 0.6);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 20px rgba(6, 199, 85, 0.4);
    }
    50% {
        box-shadow: 0 8px 30px rgba(6, 199, 85, 0.7);
    }
}

/* 響應式設計 */
@media (max-width: 768px) {
    body {
        font-size: 18px;
    }

    .hero-title {
        font-size: 38px;
    }

    .hero-subtitle {
        font-size: 28px;
    }

    .hero-description {
        font-size: 22px;
    }

    .section-title {
        font-size: 32px;
    }

    .logo h1 {
        font-size: 24px;
    }

    .logo i {
        font-size: 30px;
    }

    .btn-line {
        font-size: 20px;
        padding: 12px 25px;
    }

    .btn-primary {
        font-size: 22px;
        padding: 18px 40px;
    }

    .feature-card h3,
    .course-card h3 {
        font-size: 24px;
    }

    .course-card > p,
    .feature-card p {
        font-size: 18px;
    }

    .cta-box h3 {
        font-size: 26px;
    }

    .btn-line-large {
        font-size: 24px;
        padding: 20px 40px;
    }

    .price-highlight span {
        font-size: 38px;
    }

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

    .floating-line {
        width: 70px;
        height: 70px;
        font-size: 38px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 24px;
    }
}
