/* ========================================
   Course 1: 家庭 × 生產力系統
   Target: 新手爸 + 家庭主責者
   Style: Professional + Warm, Trustworthy
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+TC:wght@400;500;700&display=swap');

:root {
    /* Primary: Deep Blue (Professional) */
    --primary: #1e3a5f;
    --primary-light: #2d4a73;
    --primary-dark: #152a47;

    /* Accent: Warm Orange (Family Warmth) */
    --accent: #e86a33;
    --accent-light: #ff8c5a;
    --accent-dark: #c5551f;

    /* Neutrals */
    --bg-light: #f8f9fc;
    --bg-white: #ffffff;
    --text-dark: #1a1a2e;
    --text-muted: #5a6378;
    --text-light: #8a94a8;

    /* Functional */
    --success: #22c55e;
    --warning: #f59e0b;
    --border: #e2e8f0;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(30, 58, 95, 0.08);
    --shadow-md: 0 4px 20px rgba(30, 58, 95, 0.12);
    --shadow-lg: 0 8px 40px rgba(30, 58, 95, 0.16);
}

body {
    background: var(--bg-light);
    color: var(--text-dark);
}

/* =============== HERO SECTION =============== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 6rem 0 8rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(232, 106, 51, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: var(--accent-light);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.7;
}

.hero .btn-primary {
    background: var(--accent);
    color: white;
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
    box-shadow: 0 4px 20px rgba(232, 106, 51, 0.4);
}

.hero .btn-primary:hover {
    background: var(--accent-light);
    box-shadow: 0 6px 30px rgba(232, 106, 51, 0.5);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-light);
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* =============== PAIN POINTS =============== */
.pain-section {
    background: var(--bg-white);
    padding: 5rem 0;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.pain-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 2rem;
    border-left: 4px solid var(--accent);
    transition: all 0.3s ease;
}

.pain-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.pain-card .icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

.pain-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* =============== SOLUTION SECTION =============== */
.solution-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.solution-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.solution-intro h2 {
    color: var(--primary);
}

.solution-intro h2 span {
    color: var(--accent);
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.module-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

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

.module-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

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

.module-card p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1rem;
}

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

.module-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

.module-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
}

/* =============== BEFORE/AFTER =============== */
.transform-section {
    padding: 5rem 0;
    background: var(--bg-white);
}

.transform-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.transform-box {
    padding: 2.5rem;
    border-radius: 20px;
}

.transform-box.before {
    background: linear-gradient(135deg, #fee2e2 0%, #fef3c7 100%);
    border: 2px solid #fbbf24;
}

.transform-box.after {
    background: linear-gradient(135deg, #d1fae5 0%, #cffafe 100%);
    border: 2px solid var(--success);
}

.transform-box h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.transform-box.before h3 {
    color: #b45309;
}

.transform-box.after h3 {
    color: #059669;
}

.transform-box ul {
    list-style: none;
}

.transform-box li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1rem;
}

.transform-arrow {
    font-size: 3rem;
    color: var(--primary);
}

/* =============== TESTIMONIALS =============== */
.testimonial-section {
    padding: 5rem 0;
    background: var(--primary);
    color: white;
}

.testimonial-section h2 {
    color: white;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.testimonial-content {
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.author-info h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-info p {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* =============== PRICING =============== */
.pricing-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.pricing-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--accent);
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '推薦方案';
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--accent);
    color: white;
    padding: 0.5rem 3rem;
    font-size: 0.875rem;
    font-weight: 600;
    transform: rotate(45deg);
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.pricing-header h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pricing-header .price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
}

.pricing-header .price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-header .original-price {
    font-size: 1.25rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-dark);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features .check {
    color: var(--success);
    font-size: 1.25rem;
}

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

.pricing-cta .btn-primary {
    background: var(--accent);
    color: white;
    font-size: 1.25rem;
    padding: 1.25rem 3rem;
    width: 100%;
    box-shadow: 0 4px 20px rgba(232, 106, 51, 0.4);
}

.pricing-cta .btn-primary:hover {
    background: var(--accent-dark);
}

.pricing-guarantee {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.pricing-guarantee span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* =============== FAQ =============== */
.faq-section {
    padding: 5rem 0;
    background: var(--bg-white);
}

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

.faq-item {
    background: var(--bg-light);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(30, 58, 95, 0.05);
}

.faq-question .icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* =============== FOOTER CTA =============== */
.footer-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.footer-cta h2 {
    margin-bottom: 1rem;
}

.footer-cta p {
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.footer-cta .btn-primary {
    background: var(--accent);
    color: white;
    font-size: 1.25rem;
    padding: 1.25rem 3rem;
}

/* =============== RESPONSIVE =============== */
@media (max-width: 1024px) {
    .hero {
        padding: 4rem 0 6rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

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

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

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

    .transform-arrow {
        transform: rotate(90deg);
        text-align: center;
    }

    .pricing-card {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0 6rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

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

    .transform-arrow {
        transform: rotate(90deg);
        text-align: center;
    }

    .pricing-card {
        padding: 2rem;
    }
}

@media (max-width: 640px) {

    .pain-grid,
    .module-grid {
        grid-template-columns: 1fr;
    }
}