/* =========================================
   設計系統 (Design System)
   ========================================= */
:root {
    /* 核心色系 - 將棕色設定為主色 */
    --primary-color: #C9996B;      /* 金棕：主要品牌色 */
    --accent-color: #28396C;       /* 深藍：強調與互動 (原本是主色) */
    --text-main: #5C4F4A;          /* 深褐：主要內文 */
    --text-muted: #8E7F7A;         /* 淺褐：說明文字 */
    --bg-main: #EDE9E6;            /* 米白：頁面底色 */
    --bg-secondary: #FBE8CE;       /* 奶油：區塊底色 */
    --bg-soft: #F9D0CD;            /* 粉紅：柔和強調 */
    --white: #ffffff;

    /* 語意色彩 */
    --success: #52734D;            /* 森林綠 */
    --error: #93332E;              /* 磚紅 */
    --warning: #B8860B;            /* 金菊 */

    /* 字體設定 */
    --font-main: 'Noto Sans TC', sans-serif;
    
    /* 視覺規範 */
    --radius: 8px;                 /* 統一圓角 */
    --shadow: 0 10px 30px rgba(92, 79, 74, 0.08);
    --transition: 0.2s ease-in-out; /* 微動畫過渡 */
}

/* =========================================
   基礎設定 (Base)
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    letter-spacing: 0.02em;
    overflow-x: hidden;
}

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

section {
    padding: 100px 0;
}

/* 響應式間距優化 */
@media (max-width: 768px) {
    section { padding: 60px 0; }
}

/* =========================================
   文字階層 (Typography)
   ========================================= */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

h1 { font-size: clamp(2.5rem, 8vw, 4rem); }
h2 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    font-weight: 400;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title i {
    display: block;
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

/* =========================================
   按鈕元件 (Buttons)
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--bg-soft);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: #f4b6b2;
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-dark {
    background-color: var(--text-main);
    color: var(--white);
}

/* =========================================
   首頁視覺區 (Hero)
   ========================================= */
header {
    height: 90vh;
    /* 遮罩改為深褐色，營造溫暖氛圍 */
    background: linear-gradient(rgba(92, 79, 74, 0.5), rgba(92, 79, 74, 0.5)),
                url('IMG_5907.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.hero-content {
    width: 100%;
}

.hero-content h1 {
    color: var(--white);
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero-content .subtitle {
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* =========================================
   講師介紹 (Lecturer)
   ========================================= */
.lecturer-flex {
    display: flex;
    gap: 60px;
    align-items: center;
    flex-wrap: wrap;
}

.lecturer-image {
    flex: 1;
    min-width: 300px;
}

.lecturer-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 20px 20px 0 var(--bg-secondary);
}

.lecturer-info {
    flex: 1.2;
    min-width: 300px;
}

.lecturer-tag {
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

.lecturer-quote {
    font-size: 1.2rem;
    font-style: italic;
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
    margin: 20px 0;
    color: var(--primary-color);
}

/* =========================================
   服務項目 (Services)
   ========================================= */
.bg-light { background-color: var(--bg-secondary); }

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

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* =========================================
   價格方案 (Pricing)
   ========================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pricing-card {
    background: var(--white);
    padding: 50px 30px;
    border-radius: var(--radius);
    border: 1px solid #eee;
    text-align: center;
    transition: var(--transition);
}

.pricing-card.highlight {
    border: 2px solid var(--accent-color);
    position: relative;
    transform: scale(1.05);
    z-index: 1;
}

@media (max-width: 768px) {
    .pricing-card.highlight { transform: scale(1); }
}

.pricing-card .price {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 30px;
}

.fa-ul {
    text-align: left;
    margin-bottom: 30px;
    line-height: 2;
}

/* =========================================
   流程與活動 (Process & Campaign)
   ========================================= */
.process-section { margin-top: 80px; }

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.step {
    text-align: center;
}

.step span {
    display: block;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    line-height: 40px;
    margin: 0 auto 15px;
    font-weight: 700;
}

.bg-warm { background-color: var(--bg-soft); }

.campaign-banner {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px;
    border-radius: var(--radius);
    text-align: center;
}

.badge {
    background-color: var(--error);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 20px;
    display: inline-block;
}

/* =========================================
   互動與動畫 (Interaction & Reveal)
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 聯絡資訊 */
.bg-dark { background-color: var(--primary-color); }
.text-white { color: var(--white); }
.text-white h2 { color: var(--white); }

.contact-info a {
    color: var(--bg-soft);
    text-decoration: none;
}

.contact-info p {
    margin-bottom: 15px;
}

.contact-info i {
    width: 25px;
    color: var(--accent-color);
}
