/* ==========================================
   巧而園幼兒園 - 高階細緻可愛自然風格設計系統 (style.css)
   專為初學者設計：層次分明、精緻無比，附帶詳盡繁體中文註解
   ========================================== */

/* --- 1. 設計系統變數與高端自然標記 (Delicate Design Tokens) --- */
:root {
    /* 核心色彩 - 採用溫馨雅緻、日系手繪與繪本風格的暖木金色彩系統 */
    --primary-color: #D7BB7F;       /* 溫暖日系暖木金 (主色，代表溫柔、手作木質與大地的溫度) */
    --primary-light: #FAF6EC;       /* 輕柔麥芽粉底 (明亮舒適且溫潤，常用於背景/Hover) */
    --primary-dark: #8C6F3D;        /* 熟成琥珀褐 (用於深色文字與active狀態，保障無障礙對比度) */
    --secondary-color: #A37648;     /* 焦糖暖橡木 (溫潤的原木溫度) */
    --secondary-light: #FAF5EF;     /* 燕麥牛奶白 (柔和溫馨) */
    --blue-color: #4A90E2;          /* 晴空小溪藍 (清亮透徹的水源) */
    --blue-light: #F0F6FC;          /* 溪水淺藍底 */
    --green-color: #7FA87F;         /* 森林粉嫩綠 (和大自然和諧共存的粉綠色) */
    --green-light: #F4F8F4;         /* 森林粉綠淺底 */
    --accent-color: #FF8A5B;        /* 暖陽柿子橘 (自然的熟成漿果色) */
    --pink-color: #FFA5B4;          /* 櫻花花瓣粉 (花朵的粉嫩感) */
    --pink-light: #FFF5F6;          /* 櫻花淡粉底 */

    /* 高級中性色 - 溫柔、無壓迫感 */
    --text-dark: #3F3A34;           /* 炭燒深橡木 (柔和的深褐黑，比純黑更顯溫馨高雅) */
    --text-muted: #857E75;          /* 麥芽砂褐文字 */
    --bg-light: #FCFAF5;            /* 日系手繪紙張黃 (極細緻溫馨的奶油白底色，溫暖迷人) */
    --bg-white: #FFFFFF;            /* 純白 */
    --border-color: #EFE9DE;        /* 暖沙棉麻線 */
    --border-hover: rgba(215, 187, 127, 0.25); /* 暖木金邊框懸停色 */

    /* 字型系統 - 使用溫暖手寫感、日系繪本風的 Klee One，並搭配 Noto Sans TC 中文字型 */
    --font-primary: 'Klee One', 'Noto Sans TC', sans-serif;

    /* 頂級細緻陰影 - 融合暖洋洋的陽光與有機層次感，完全不髒 */
    --shadow-sm: 0 4px 10px rgba(215, 187, 127, 0.04), 0 2px 4px rgba(163, 118, 72, 0.02);
    --shadow-md: 0 10px 24px rgba(215, 187, 127, 0.06), inset 0 2px 4px rgba(255, 255, 255, 0.9);
    --shadow-lg: 0 20px 45px rgba(215, 187, 127, 0.08), 0 4px 12px rgba(163, 118, 72, 0.03);
    
    /* 圓角系統 - 可愛卻不笨重的「精緻大圓角」，融入鵝卵石有機弧度 */
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-round: 100px; /* 圓滑氣泡按鈕專用 */

    /* 物理彈性微互動轉場 (符合微動畫 0.2s 規範，平滑過渡) */
    --transition-smooth: all 0.2s ease;
    --transition-linear: all 0.2s ease;
}

/* --- 2. 基礎重設與精細排版 (Reset & Exquisite Typography) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.85;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-linear);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    border: none;
    outline: none;
}

/* --- 3. 精緻元件與標題裝飾 (Delicate Elements & Emblems) --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    padding: 0.85rem 2.2rem;
    border-radius: var(--radius-round);
    cursor: pointer;
    transition: var(--transition-smooth);
    gap: 0.6rem;
    letter-spacing: 0.8px;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-white);
    box-shadow: 0 8px 20px rgba(215, 187, 127, 0.25), inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 28px rgba(215, 187, 127, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--text-muted);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--border-color);
    color: var(--text-dark);
    border-color: var(--primary-color); /* 懸停時邊框使用暖木金點綴 */
    transform: translateY(-4px) scale(1.02);
}

.btn-lg {
    padding: 1.15rem 2.85rem;
    font-size: 1.08rem;
}

.btn-sm {
    padding: 0.65rem 1.65rem;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
}

/* 精緻的手作棉麻質感標籤 */
.section-tag {
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--secondary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--secondary-light);
    padding: 0.45rem 1.25rem;
    border-radius: var(--radius-round);
    margin-bottom: 1.25rem;
    border: 1.5px solid rgba(163, 118, 72, 0.15);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

.section-tag i {
    color: var(--primary-color);
    animation: bounceSlow 3s infinite;
}

/* 細緻的標題底紋與葉片裝飾 */
.section-title {
    font-size: 2.75rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.35;
    letter-spacing: -0.5px;
}

.section-title span {
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

/* 精細手繪葉片下劃線裝飾 */
.section-title span::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0,5 Q25,9 50,5 T100,5' fill='none' stroke='%23FFA5B4' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: cover;
    z-index: -1;
    opacity: 0.8;
}

.section-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 780px;
    margin: 0 auto;
    line-height: 1.85;
}

/* --- 4. 高端導覽列樣式 (Exquisite Navbar) --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 253, 249, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(215, 187, 127, 0.04);
    z-index: 999;
    border-bottom: 1px solid rgba(239, 233, 222, 0.6);
    transition: var(--transition-linear);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.55rem;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.logo-icon {
    font-size: 1.7rem;
    color: var(--accent-color);
    filter: drop-shadow(0 3px 6px rgba(255, 138, 91, 0.25));
    animation: rotateSun 15s linear infinite;
}

.nav-menu {
    display: flex;
    gap: 2.25rem;
}

.nav-link {
    font-weight: 800;
    color: var(--text-dark);
    padding: 0.5rem 0.25rem;
    position: relative;
    font-size: 0.98rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link::before {
    content: '🍃';
    font-size: 0.75rem;
    opacity: 0;
    transform: scale(0);
    transition: var(--transition-smooth);
}

.nav-link:hover::before, .nav-link.active::before {
    opacity: 1;
    transform: scale(1);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: var(--radius-round);
    transition: var(--transition-smooth);
}

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

.nav-btns {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 漢堡選單按鈕 */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    cursor: pointer;
}

.hamburger .bar {
    height: 3px;
    width: 100%;
    background-color: var(--text-dark);
    border-radius: var(--radius-round);
    transition: var(--transition-smooth);
}

/* --- 5. 英雄橫幅區樣式 (Hero Section) --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding-top: 8.5rem;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--bg-light); /* 小麥香草黃，極致乾淨透亮 */
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 3.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr; /* 等寬比例，為右側圖片提供極佳寬度 */
    gap: 3rem; /* 縮小左右間距以最大化主視覺 */
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background-color: var(--pink-light);
    color: #FF4D71;
    padding: 0.45rem 1.4rem;
    border-radius: var(--radius-round);
    font-weight: 850;
    font-size: 0.88rem;
    margin-bottom: 1.75rem;
    border: 2px solid rgba(255, 165, 180, 0.35);
    box-shadow: 0 4px 10px rgba(255, 165, 180, 0.1);
    animation: pulseBadge 2.5s infinite;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: 3.75rem;
    font-weight: 900;
    line-height: 1.25;
    color: var(--text-dark);
    margin-bottom: 1.75rem;
    letter-spacing: -1px;
}

.hero-title span {
    color: var(--primary-color);
    background: linear-gradient(120deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.22rem;
    color: var(--text-muted);
    margin-bottom: 2.75rem;
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}

/* 精細小膠囊形狀的跑馬燈框 */
.hero-stats {
    display: flex;
    gap: 2.5rem;
    border: 2px dashed var(--border-color);
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-md);
    padding: 1.5rem 2.25rem;
    width: 100%;
    box-shadow: var(--shadow-sm);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2.85rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    font-family: 'Outfit', sans-serif;
    text-shadow: 0 2px 4px rgba(85, 166, 48, 0.1);
}

.stat-unit {
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 900;
}

.stat-label {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 850;
    margin-top: 0.5rem;
}

/* 自然可愛感主插圖 */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.kid-illustration {
    width: 100%;
    max-width: 640px;
    position: relative;
    display: flex;
    justify-content: center;
}

/* 英雄區右側精緻不對稱相框 (可愛自然感) */
.hero-image-frame {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1 / 1;
    border-radius: 40px 100px 40px 100px; /* 超萌鵝卵石造型 */
    overflow: hidden;
    border: 6px solid var(--bg-white);
    box-shadow: var(--shadow-lg), 0 20px 45px rgba(85, 166, 48, 0.1);
    transition: var(--transition-smooth);
    z-index: 5;
}

.hero-image-frame::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 15px rgba(163, 118, 72, 0.05);
    pointer-events: none;
}
.hero-image-frame:hover {
    box-shadow: var(--shadow-lg), 0 20px 45px rgba(85, 166, 48, 0.1);
    border-color: var(--bg-white);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
    border-radius: inherit;
}

/* 可愛漂浮氣泡 - 精細邊框與柔和光暈 */
.floating-bubble {
    position: absolute;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 1.35rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06), inset 0 2px 4px rgba(255, 255, 255, 0.4);
    border: 3px solid var(--bg-white);
    animation: floatIcon 6s ease-in-out infinite;
}

.bubble-1 {
    background: linear-gradient(135deg, var(--primary-color), var(--green-color));
    top: 12%;
    left: 4%;
    animation-delay: 0s;
}

.bubble-2 {
    background: linear-gradient(135deg, var(--accent-color), #FFA07A);
    top: 4%;
    right: 4%;
    animation-delay: 1.5s;
}

.bubble-3 {
    background: linear-gradient(135deg, var(--blue-color), #6CA6CD);
    bottom: 22%;
    left: -4%;
    animation-delay: 3s;
}

.bubble-4 {
    background: linear-gradient(135deg, var(--pink-color), #FFC0CB);
    bottom: 26%;
    right: -2%;
    animation-delay: 4.5s;
}

/* --- 6. 教育理念與優勢特色區樣式 --- */
.about-section {
    padding: 8.5rem 1.5rem;
    background-color: var(--bg-white);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 5.5rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.25rem;
}

/* 特色卡片細緻化 - 雙層背景與超柔光微陰影 */
.about-card {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
    padding: 3rem 2.25rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.about-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.card-icon-wrapper {
    width: 62px;
    height: 62px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    margin-bottom: 1.85rem;
    color: var(--bg-white);
    position: relative;
}

.card-icon-wrapper::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background-color: inherit;
    opacity: 0.2;
    transform: scale(1.15);
    z-index: -1;
}

/* 萌系大地彩虹背景 */
.color-pink {
    background: linear-gradient(135deg, var(--pink-color), #FFAEC9);
}

.color-orange {
    background: linear-gradient(135deg, var(--accent-color), #FFB088);
}

.color-blue {
    background: linear-gradient(135deg, var(--blue-color), #7EC0EE);
}

.color-green {
    background: linear-gradient(135deg, var(--primary-color), var(--green-color));
}

.card-title {
    font-size: 1.38rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.card-text {
    font-size: 0.98rem;
    color: var(--text-muted);
    margin-bottom: 1.85rem;
    line-height: 1.8;
    flex-grow: 1;
}

/* 精細小貼紙感的清單項目 */
.card-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 800;
    border-top: 2px dashed var(--border-color);
    padding-top: 1.25rem;
}

.card-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-dark);
}

.text-pink { color: var(--pink-color); }
.text-orange { color: var(--accent-color); }
.text-blue { color: var(--blue-color); }
.text-green { color: var(--primary-color); }

/* --- 7. 精選課程區樣式 (Curriculum Section) --- */
.courses-section {
    padding: 8.5rem 1.5rem;
    background-color: var(--bg-light);
}

.filter-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 4.5rem;
}

/* 篩選按鈕高亮細緻化 */
.filter-btn {
    font-weight: 850;
    font-size: 0.95rem;
    padding: 0.7rem 1.75rem;
    border-radius: var(--radius-round);
    cursor: pointer;
    background-color: var(--bg-white);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--green-color));
    color: var(--bg-white);
    border-color: var(--primary-color);
    box-shadow: 0 8px 18px rgba(85, 166, 48, 0.22);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 3rem;
    transition: var(--transition-smooth);
}

/* 課程卡片細緻化 - 邊框更加纖細柔和，加入微光質地 */
.course-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-color);
    transition: var(--transition-smooth);
    position: relative;
    display: flex;
    flex-direction: column;
}

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

.course-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    z-index: 10;
    font-weight: 900;
    font-size: 0.8rem;
    color: var(--bg-white);
    padding: 0.45rem 1.25rem;
    border-radius: var(--radius-round);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.course-image-wrapper {
    position: relative;
    height: 195px;
    width: 100%;
}

.css-illustration-course {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.course-inner-icon {
    font-size: 4.4rem;
    color: var(--bg-white);
    opacity: 0.95;
    z-index: 2;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
}

.course-card:hover .course-inner-icon {
    transform: scale(1.2) rotate(8deg);
}

/* 可愛且高端的溫柔色彩 */
.art-bg {
    background: linear-gradient(135deg, #FAD2E1 0%, #FFCAD4 100%);
}
.science-bg {
    background: linear-gradient(135deg, #FDE2E4 0%, #FFCAD4 100%);
}
.language-bg {
    background: linear-gradient(135deg, #B5E2FA 0%, #90E0EF 100%);
}
.sport-bg {
    background: linear-gradient(135deg, #E2F0CB 0%, #C7F9CC 100%);
}
.block-bg {
    background: linear-gradient(135deg, #FFEFD5 0%, #FFD8A8 100%);
}
.music-bg {
    background: linear-gradient(135deg, #E8E8E4 0%, #FFE5D9 100%);
}
.nature-green-bg {
    background: linear-gradient(135deg, #D8F3DC 0%, #95D5B2 100%);
}
.forest-bg {
    background: linear-gradient(135deg, #E8F5E9 0%, #A5D6A7 100%);
}

.css-illustration-course::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.25);
    top: -30px;
    right: -30px;
}

.css-illustration-course::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    bottom: -20px;
    left: -20px;
}

.course-info {
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-name {
    font-size: 1.38rem;
    font-weight: 900;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.course-text {
    font-size: 0.98rem;
    color: var(--text-muted);
    margin-bottom: 1.85rem;
    line-height: 1.8;
    flex-grow: 1;
}

/* 縫線感極細分割線 */
.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px dashed var(--border-color);
    padding-top: 1.25rem;
}

.course-age {
    font-size: 0.88rem;
    font-weight: 850;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.course-age i {
    color: var(--primary-color);
}

.course-details-btn {
    font-size: 0.88rem;
    font-weight: 900;
    color: var(--primary-color);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition-smooth);
}

.course-details-btn:hover {
    color: var(--accent-color);
    gap: 0.6rem;
}

/* --- 8. 師資團隊區樣式 (Teachers Section) --- */
.teachers-section {
    padding: 8.5rem 1.5rem;
    background-color: var(--bg-white);
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 3rem;
}

/* 師資卡片細緻化 - 帶有一點點立體相框質感 */
.teacher-card {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
    border-radius: var(--radius-lg);
    padding: 3rem 2.25rem;
    border: 2px solid var(--border-color);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.teacher-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.teacher-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
    border: 4px solid var(--bg-white);
    box-shadow: 0 8px 16px rgba(163, 118, 72, 0.1);
}

.color-avatar-1 {
    background: linear-gradient(135deg, #FFD1DC 0%, #FFE5EC 100%);
}
.color-avatar-2 {
    background: linear-gradient(135deg, #B5E2FA 0%, #E0F2FE 100%);
}
.color-avatar-3 {
    background: linear-gradient(135deg, #FFF0F5 0%, #FFE5D9 100%);
}

.teacher-placeholder-icon {
    font-size: 2.75rem;
    color: var(--bg-white);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.teacher-meta {
    width: 100%;
}

.teacher-role {
    font-weight: 900;
    font-size: 0.82rem;
    color: var(--primary-color);
    background-color: var(--primary-light);
    padding: 0.4rem 1.35rem;
    border-radius: var(--radius-round);
    display: inline-block;
    margin-bottom: 0.85rem;
    border: 1.5px solid rgba(215, 187, 127, 0.25);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

.teacher-name {
    font-size: 1.55rem;
    font-weight: 900;
    margin-bottom: 0.85rem;
    color: var(--text-dark);
}

.teacher-quote {
    font-size: 0.98rem;
    font-style: normal;
    color: var(--secondary-color);
    margin-bottom: 1.85rem;
    font-weight: 800;
    position: relative;
    padding: 0 1rem;
}

.teacher-quote::before {
    content: '“';
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    color: var(--pink-color);
    position: absolute;
    top: -10px;
    left: -2px;
    opacity: 0.6;
}

.teacher-quote::after {
    content: '”';
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    color: var(--pink-color);
    position: absolute;
    bottom: -22px;
    right: -2px;
    opacity: 0.6;
}

.teacher-certs {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 2px dashed var(--border-color);
    padding-top: 1.5rem;
    margin-bottom: 1.75rem;
    font-weight: 700;
}

.teacher-certs li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.teacher-certs i {
    color: var(--primary-color);
}

/* --- 9. 家長好評推薦樣式 (Testimonial Section) --- */
.testimonials-section {
    padding: 8.5rem 1.5rem;
    background-color: var(--bg-light);
}

.testimonials-slider-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonials-container {
    position: relative;
    min-height: 260px;
}

/* 家長卡片細緻化 - 柔軟棉麻布紋陰影與小蕾絲壓邊 */
.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    box-shadow: 0 15px 35px rgba(215, 187, 127, 0.05);
    border: 2px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.96);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.testimonial-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 10;
}

.testi-rating {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    font-size: 1.25rem;
    letter-spacing: 2px;
}

.testi-text {
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.9;
    margin-bottom: 2.25rem;
    letter-spacing: 0.5px;
}

.testi-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.testi-user-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    color: var(--primary-color);
    font-weight: 900;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(215, 187, 127, 0.2);
}

.pink-avatar { background-color: var(--pink-light); }
.blue-avatar { background-color: var(--blue-light); }
.green-avatar { background-color: var(--green-light); }

.user-name {
    font-size: 1rem;
    font-weight: 900;
    color: var(--text-dark);
}

.user-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 700;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 2.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dot.active, .dot:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    width: 28px;
    border-radius: 6px;
}

/* --- 10. 預約參觀與聯絡表單區樣式 --- */
.contact-section {
    padding: 8.5rem 1.5rem;
    background-color: var(--bg-white);
}

.contact-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 0;
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.contact-info-panel {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    padding: 4rem 3.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.contact-info-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80' width='80' height='80'%3E%3Cpath d='M14,3 C24,3 24,13 14,13 C4,13 4,3 14,3 Z' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.6;
    pointer-events: none;
}

.contact-panel-title {
    font-size: 2.4rem;
    font-weight: 900;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.contact-panel-text {
    font-size: 1.05rem;
    opacity: 0.92;
    margin-bottom: 3.5rem;
    line-height: 1.8;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    flex-grow: 1;
}

.info-item {
    display: flex;
    gap: 1.25rem;
}

.info-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.info-text h4 {
    font-size: 1.15rem;
    font-weight: 900;
    margin-bottom: 0.35rem;
}

.info-text p {
    font-size: 0.98rem;
    opacity: 0.92;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 3.5rem;
}

.social-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: var(--transition-smooth);
    border: 2px solid rgba(255, 255, 255, 0.08);
}

.social-icon:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* 聯絡表單面板細緻化 */
.contact-form-panel {
    padding: 4rem 3.5rem;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-white);
}

.form-title {
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 2.25rem;
}

.appointment-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-dark);
}

.form-group label .required {
    color: var(--accent-color);
}

/* 輸入框細緻化 - 加上軟萌陰影與呼吸燈邊框效果 */
.form-group input, .form-group select, .form-group textarea {
    padding: 0.9rem 1.25rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    background-color: var(--bg-light);
    font-size: 0.98rem;
    transition: var(--transition-smooth);
    color: var(--text-dark);
    font-weight: 700;
    box-shadow: inset 0 2px 4px rgba(163, 118, 72, 0.02);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(215, 187, 127, 0.18);
}

.form-group textarea {
    resize: none;
}

/* 表單提交按鈕加載狀態 */
.btn-loading {
    display: none;
}

button[type="submit"].loading .btn-text {
    display: none;
}

button[type="submit"].loading .btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- 11. 頁尾樣式 --- */
.main-footer {
    background-color: var(--text-dark);
    color: rgba(255, 255, 255, 0.5);
    padding: 3.5rem 1.5rem;
    text-align: center;
    border-top: 2px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.8px;
}

/* --- 12. 彈出視窗細緻化樣式 (Modal Detail Refinements) --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(63, 58, 52, 0.45);
    backdrop-filter: blur(12px);
}

.modal-content {
    position: relative;
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 3.5rem 3rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), inset 0 2px 4px rgba(255, 255, 255, 0.9);
    z-index: 1001;
    transform: translateY(-30px);
    transition: var(--transition-smooth);
    border: 2px solid var(--border-color);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2.25rem;
    font-weight: 300;
    color: var(--text-muted);
    cursor: pointer;
    background: transparent;
    transition: var(--transition-smooth);
    line-height: 1;
}

.modal-close:hover {
    color: var(--accent-color);
    transform: rotate(90deg) scale(1.1);
}

/* 預約成功確認框 */
.success-content {
    text-align: center;
    max-width: 460px;
}

.success-icon-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.75rem;
    margin: 0 auto 1.5rem;
    border: 2px solid rgba(215, 187, 127, 0.25);
    box-shadow: 0 4px 10px rgba(215, 187, 127, 0.15);
}

.success-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.success-text {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2.25rem;
    line-height: 1.8;
    font-weight: 700;
}

/* 詳情 Modal 排版細緻化 */
.modal-detail-title {
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-detail-badge {
    font-size: 0.78rem;
    padding: 0.4rem 1.25rem;
    border-radius: var(--radius-round);
    color: var(--bg-white);
    font-weight: 900;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.modal-detail-p {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.85;
    margin-bottom: 1.85rem;
    font-weight: 700;
}

.modal-detail-heading {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0.95rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 0.65rem;
}

.modal-detail-list {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-detail-list li {
    font-size: 0.98rem;
    font-weight: 750;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.modal-detail-list li i {
    color: var(--primary-color);
}

/* --- 13. 微互動與高級萌系動畫 (Animations) --- */
@keyframes floatIcon {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(3deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

@keyframes rotateSun {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseBadge {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes bounceSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* 網頁上漂浮螢火蟲特效 */
.sparkle {
    animation: floatSparkle 4s ease-in-out infinite;
    opacity: 0.8;
}

@keyframes floatSparkle {
    0%, 100% { transform: translateY(0) scale(0.8); opacity: 0.4; }
    50% { transform: translateY(-8px) scale(1.2); opacity: 0.9; }
}

/* --- 14. 響應式網頁設計 (Media Queries) --- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 5rem;
        padding-top: 3.5rem;
    }
    
    .hero-content {
        align-items: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info-panel {
        padding: 3.5rem 2.5rem;
    }

    .contact-form-panel {
        padding: 3.5rem 2.5rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 73px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 73px);
        background-color: var(--bg-white);
        flex-direction: column;
        align-items: center;
        padding: 3rem 0;
        gap: 2.25rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.03);
        transition: var(--transition-smooth);
        z-index: 998;
    }

    .nav-menu.active {
        left: 0;
    }

    .btn-nav {
        display: none;
    }

    .hero-title {
        font-size: 2.95rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1.75rem;
        justify-content: space-around;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .modal-content {
        padding: 2.5rem 2rem;
    }

    /* 漢堡選單 active 動畫 */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--accent-color);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: var(--accent-color);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.35rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .about-card {
        padding: 2.25rem 1.75rem;
    }
}

/* ==========================================
   巧而園幼兒園 - logo.jpg 與 招生流程新增細緻樣式 (Enrollment & Logo Enhancements)
   ========================================== */

/* 導覽列與頁尾 logo 樣式 */
.logo-img {
    height: 46px;
    width: auto;
    border-radius: var(--radius-sm);
    object-fit: contain;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 3px 6px rgba(215, 187, 127, 0.12));
}

.logo:hover .logo-img {
    transform: scale(1.08) rotate(-4deg);
}

.footer-logo {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.footer-logo-img {
    height: 56px;
    width: auto;
    border-radius: var(--radius-md);
    filter: brightness(0.95);
    opacity: 0.9;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* 英雄區徽章 logo 樣式 */
.hero-badge-logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--pink-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    vertical-align: middle;
    margin-right: 6px;
}

/* 招生入園流程區樣式 (Enroll Section) */
.enroll-section {
    padding: 8.5rem 1.5rem;
    background-color: var(--bg-white);
}

.enroll-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
    position: relative;
    margin-top: 4.5rem;
}

/* 精細虛線連接線，展現精緻地圖感 */
@media (min-width: 1025px) {
    .enroll-timeline::before {
        content: '';
        position: absolute;
        top: 145px;
        left: 10%;
        width: 80%;
        height: 4px;
        background-image: linear-gradient(to right, var(--border-color) 50%, transparent 50%);
        background-size: 16px 4px;
        z-index: 1;
    }
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-num {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-light);
    font-family: 'Outfit', sans-serif;
    line-height: 1;
    margin-bottom: -1.5rem;
    position: relative;
    z-index: 3;
    text-shadow: 2px 2px 0 var(--border-color);
}

.step-card {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-step:hover .step-card {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.step-icon-wrapper {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    color: var(--bg-white);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.step-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 0.85rem;
}

.step-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.75;
    font-weight: 700;
}
