:root {
    --pearl-pink: #FADADD;
    --lavender-soft: #E6E6FA;
    --lavender-deep: #D8BFD8;
    --lavender-900: #483D8B;
    --accent-glow: rgba(255, 255, 255, 0.4);
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    color: #333;
    margin: 0;
    overflow-x: hidden;
}

h1, h2, h3, .font-serif {
    font-family: 'Noto Serif TC', serif;
}

.bg-dreamy {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)),
        url('https://pole-c4a.pages.dev/43d1f9eb-aeae-43ce-88f1-640d6d93a22d.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Floating Particles */
#particles-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.3;
    animation: float 15s infinite linear;
    filter: blur(2px);
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    50% { opacity: 0.4; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

.glass-nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.glass-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
    border-radius: 32px;
}

/* 確保輸入框文字是深色的，解決看不見文字的問題 */
.dreamy-input {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #E6E6FA;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    outline: none;
    color: #1f2937; /* 深灰黑色 */
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 確保提示字元也是清晰的深灰色 */
.dreamy-input::placeholder {
    color: #6b7280;
}

.dreamy-input:focus {
    background: #ffffff;
    border-color: var(--lavender-900);
    box-shadow: 0 0 15px rgba(72, 61, 139, 0.2);
    transform: translateY(-2px);
}

.nav-link {
    position: relative;
    padding: 0.5rem 0;
    color: #1f2937;
    font-weight: 600;
    transition: all 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--pearl-pink), var(--lavender-deep));
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--lavender-900);
}

.course-card {
    background: rgba(255, 255, 255, 0.85);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    animation: fadeInCard 0.8s ease backwards;
}

@keyframes fadeInCard {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.course-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.btn-full {
    background: #e5e7eb !important;
    color: #6b7280 !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

#success-overlay.active {
    display: flex;
    animation: fadeIn 0.4s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { 
    background: linear-gradient(var(--pearl-pink), var(--lavender-soft)); 
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.5);
}