:root {
    --primary: #8E44AD; /* Purple */
    --secondary: #FDCB6E; /* Yellow/Orange */
    --accent: #FF7675; /* Soft Red/Pink */
    --blue: #0984E3; /* Bright Blue */
    --text-dark: #2D3436;
    --text-light: #636E72;
    --bg-main: #F8F9FA;
    --white: #FFFFFF;
    --border: #DFE6E9;
    --shadow-soft: 0 10px 30px rgba(142, 68, 173, 0.1);
    --shadow-pop: 0 6px 0px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito', 'Noto Sans TC', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; line-height: 1.2; color: #2D3436; margin-bottom: 20px;}
h2 { font-size: clamp(2rem, 3.5vw, 2.5rem); font-weight: 800; margin-bottom: 10px; color: var(--primary);}
h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 15px; }

.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}
.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 15px;
    background-color: var(--secondary);
    z-index: -1;
    border-radius: 10px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
}

.btn-primary {
    background-color: var(--secondary);
    color: #b36b00;
    border: 2px solid #e19500;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(253, 203, 110, 0.4);
}

.shadow-pop {
    background-color: var(--secondary);
    box-shadow: 0 6px 0px #e19500;
}
.shadow-pop:hover {
    transform: translateY(2px);
    box-shadow: 0 4px 0px #e19500;
}
.shadow-pop:active {
    transform: translateY(6px);
    box-shadow: 0 0px 0px #e19500;
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-secondary:hover {
    background-color: #f3f0f7;
    transform: translateY(-3px);
}

.pulse-btn {
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-15px);}
    60% {transform: translateY(-7px);}
}

/* Animations */
.fade-up { opacity: 0; transform: translateY(30px); transition: all 0.6s ease-out; }
.fade-up.active { opacity: 1; transform: translateY(0); }
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; } .delay-2 { transition-delay: 0.4s; } .delay-3 { transition-delay: 0.6s; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0; width: 100%; z-index: 1000; padding: 20px 0; transition: all 0.3s;
}
.navbar.scrolled {
    background-color: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 10px 0;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.6rem; font-weight: 900; color: var(--primary); display: flex; align-items: center; gap: 10px; }
.logo i { color: var(--secondary); }

/* Hero */
.hero {
    padding-top: 130px;
    position: relative;
    background-color: var(--white);
    overflow: hidden;
}
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding-bottom: 60px;
}
.badge {
    display: inline-block; padding: 8px 16px; background-color: #f1e6f7; color: var(--primary);
    border-radius: 30px; font-weight: 800; font-size: 0.9rem; margin-bottom: 25px;
}
.hero-content p { font-size: 1.2rem; color: var(--text-light); margin-bottom: 40px; }
.hero-actions { display: flex; gap: 20px; }

.hero-image-wrapper { position: relative; }
.img-blob {
    width: 100%; aspect-ratio: 1; 
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-soft);
    animation: morph 8s ease-in-out infinite;
    border: 6px solid var(--secondary);
}
@keyframes morph {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; border-color: var(--secondary);}
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; border-color: var(--primary);}
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; border-color: var(--secondary);}
}
.img-blob img { width: 100%; height: 100%; object-fit: cover; }
.floating-item {
    position: absolute; width: 60px; height: 60px; background: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.float-1 { top: 10%; left: -20px; color: var(--secondary); animation: floatUp 3s infinite alternate; }
.float-2 { bottom: 20%; right: -20px; color: var(--primary); animation: floatUp 4s infinite alternate; }
.float-3 { bottom: -10px; left: 20%; color: var(--blue); animation: floatUp 3.5s infinite alternate; }
@keyframes floatUp { 100% { transform: translateY(-20px) rotate(10deg); } }

/* CSS Wave */
.wave-divider { position: relative; width: 100%; overflow: hidden; line-height: 0; }
.wave-divider svg { display: block; width: calc(100% + 1.3px); height: 80px; }

/* Benefits */
.benefits { padding: 80px 0; background-color: var(--bg-main); text-align: center; }
.section-title p { font-size: 1.1rem; color: var(--text-light); }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; }
.magic-card {
    background: var(--white); border-radius: 20px; padding: 40px 30px; box-shadow: var(--shadow-soft);
    transition: transform 0.3s;
}
.magic-card:hover { transform: translateY(-10px); }
.icon-circle {
    width: 90px; height: 90px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; margin: 0 auto 20px;
}
.c-yellow { background: #fffcf0; color: #f1c40f; }
.c-blue { background: #f0f8fd; color: #0984e3; }
.c-purple { background: #f4eef7; color: #8e44ad; }
.magic-card p { color: var(--text-light); }

/* Info Section */
.info-section { padding: 100px 0; background: var(--white); }
.info-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.feature-list { margin-top: 25px; }
.feature-list li {
    font-size: 1.1rem; margin-bottom: 15px; font-weight: 700; color: var(--text-dark);
    display: flex; align-items: center; gap: 15px;
}
.feature-list span {
    width: 35px; height: 35px; background: #eaf6ee; color: #27ae60; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; font-size: 0.9rem;
}
.visual-box {
    position: relative; border-radius: 25px; overflow: hidden; box-shadow: var(--shadow-soft);
    border: 10px solid white;
}
.visual-box img { width: 100%; display: block; }
.play-btn-fake {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 80px; height: 80px; background: rgba(255,255,255,0.9); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--primary);
    box-shadow: 0 0 0 15px rgba(255,255,255,0.3); cursor: pointer; transition: all 0.3s;
}
.visual-box:hover .play-btn-fake { transform: translate(-50%, -50%) scale(1.1); background: var(--secondary); color: white;}

/* Checkout Form Section */
.checkout-section { background-color: var(--primary); position: relative; }
.checkout-bg { background-color: var(--primary); padding-bottom: 100px; }
.checkout-wrapper { max-width: 800px; margin: 0 auto; color: white;}
.checkout-header { text-align: center; margin-bottom: 40px; }
.checkout-header h2 { color: var(--secondary); font-size: 2.8rem;}

.form-container { background: var(--white); border-radius: 30px; padding: 40px; color: var(--text-dark); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.course-box {
    background: #fdfaf3; border: 2px solid var(--secondary); border-radius: 15px; padding: 20px;
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px;
}
.icon-left { font-size: 2.5rem; color: var(--secondary); }
.course-details h3 { margin-bottom: 5px; color: #2D3436; font-size: 1.3rem;}
.course-details p { color: var(--text-light); font-size: 0.9rem;}
.course-price { font-size: 1.5rem; font-weight: 900; color: var(--primary); }

.form-section { margin-bottom: 30px; }
.form-section h4 { font-size: 1.2rem; color: var(--primary); margin-bottom: 15px; display: flex; align-items: center; gap: 10px;}
.input-row { display: flex; gap: 20px; }
.input-group { flex: 1; }
.input-group label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 0.95rem; color: #636E72;}
input[type="text"], input[type="tel"], input[type="email"], .custom-select {
    width: 100%; padding: 15px 20px; border: 2px solid var(--border); border-radius: 12px;
    font-size: 1rem; color: var(--text-dark); transition: all 0.3s; font-weight: 600; background: #fafafa;
}
input:focus, .custom-select:focus { outline: none; border-color: var(--primary); background: white; box-shadow: 0 0 0 4px rgba(142,68,173,0.1); }
.custom-select {
    appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23636E72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: right 15px center; background-size: 15px; cursor: pointer;
}

.radio-box-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.radio-box input { display: none; }
.rb-content {
    border: 2px solid var(--border); border-radius: 12px; padding: 15px; text-align: center; cursor: pointer; transition: all 0.2s; background: #fafafa;
}
.rb-content i { font-size: 1.8rem; margin-bottom: 10px; display: block; }
.rb-content span { font-weight: 700; font-size: 0.9rem; }
.radio-box input:checked + .rb-content { border-color: var(--primary); background: #fdfaff; box-shadow: 0 5px 15px rgba(142,68,173,0.1); }

.submit-area { border-top: 2px dashed var(--border); margin-top: 30px; padding-top: 30px; text-align: center; }
.agreement { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; color: var(--text-light); cursor: pointer; margin-bottom: 25px;}
.agreement input { width: 18px; height: 18px; accent-color: var(--primary); }
.agreement a { color: var(--blue); text-decoration: underline; }
.btn-submit { width: 100%; border-radius: 12px; font-size: 1.3rem; padding: 20px; }
.secure-text { margin-top: 15px; font-size: 0.85rem; color: #a0a0a0; font-weight: 700; }
.secure-text i { color: #27ae60; }

/* Footer */
.fun-footer { background: white; padding: 40px 0; text-align: center; border-top: 1px solid var(--border); }
.footer-content-magic .logo { justify-content: center; margin-bottom: 10px; }
.fun-footer p { font-weight: 600; color: var(--text-light);}
.copyright { font-size: 0.85rem; margin-top: 20px; color: #b2bec3!important; }

/* Responsive */
@media (max-width: 768px) {
    .hero-container, .info-layout { grid-template-columns: 1fr; }
    .hero { padding-top: 100px; text-align: center;}
    .hero-actions { justify-content: center; flex-direction: column;}
    .badge { margin: 0 auto 20px;}
    .hero-image-wrapper { width: 80%; margin: 0 auto; order: -1; }
    .input-row, .radio-box-group { flex-direction: column; }
    .course-box { flex-direction: column; text-align: center; gap: 15px;}
}
