/* ==========================================================================
   1. 核心變數與基礎設定 (Light Mode)
   ========================================================================== */
:root {
    --bg-color: #fcfcfc;
    /* 紙張感的淺灰白 */
    --text-color: #1a1a1a;
    /* 深沉的灰黑，降低純黑的刺眼感 */
    --accent-color: #2563eb;
    /* 經典的商務藍 (Royal Blue) */
    --box-bg: #ffffff;
    /* 純白區塊 */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --transition-speed: 0.7s;
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    box-sizing: border-box;
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
}

/* ==========================================================================
   2. 簡報核心結構 (Slides & Groups)
   ========================================================================== */
.slider-container {
    width: 100vw;
    height: 100vh;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 80px 60px 40px 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transition: transform var(--transition-speed) var(--ease-out),
        opacity var(--transition-speed) ease,
        visibility var(--transition-speed);
    opacity: 0;
    visibility: hidden;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

/* ==========================================================================
   3. 進度條 (Light 版：實色無光暈)
   ========================================================================== */
#progress {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 5px;
    background: var(--accent-color);
    z-index: 1000;
    transition: width 0.6s var(--ease-out);
    /* 淺色版改用微細陰影 */
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   4. 文字樣式 (Typography)
   ========================================================================== */
.brief-title {
    font-size: 5rem;
    font-weight: 900;
    margin-top: 15vh;
    letter-spacing: -2px;
    color: #000;
}

.brief-subtitle {
    font-size: 2rem;
    font-weight: 400;
    color: #666;
    margin-top: 10px;
}

.page-title {
    font-size: 2.8rem;
    font-weight: 800;
    align-self: flex-start;
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 10px solid var(--accent-color);
    color: #000;
}

.text-gradient {
    /* 淺色版漸層改用深藍到紫，保持可讀性 */
    background: linear-gradient(135deg, #1e40af, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   5. 佈局工具 (Layout Tools)
   ========================================================================== */
.h-layout {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 30px;
    flex-grow: 1;
}

.v-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 30px;
    flex: 1;
}

.box {
    background: var(--box-bg);
    padding: 35px;
    border-radius: 16px;
    /* 淺色版核心：輕薄的邊框與柔和的陰影 */
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    flex: 1;
    transition: all 0.3s ease;
}

.box h3 {
    margin-top: 0;
    color: var(--accent-color);
    font-size: 1.6rem;
    font-weight: 700;
}

/* 比例工具 */
.flex-2 {
    flex: 2;
}

.flex-3 {
    flex: 3;
}

.flex-7 {
    flex: 7;
}

/* ==========================================================================
   6. 特殊效果 (Special Effects)
   ========================================================================== */
/* 淺色玻璃擬態：增加白皙通透感 */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* 懸停提升效果 */
.box-focus:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-color);
}

/* 片段顯示 */
.fragment {
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateX(-10px);
    /* 淺色版改用微量左移進入 */
}

.fragment.visible {
    opacity: 1;
    transform: translateX(0);
}

/* 自動網格佈局 */
.auto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    width: 100%;
}

/* 針對代碼內容的微調 */
code {
    background: #f1f5f9;
    color: #e11d48;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}