/* =============================================== */
/* 1. CSS Variables (Custom Properties)            */
/* =============================================== */
:root {
    /* Main Colors */
    --clr-primary: #6b4e9d;              /* Main Purple */
    --clr-accent: #9b7fd0;                /* Lighter Purple / Accent */
    --clr-accent-light: #dcd0ff;          /* Very Light Purple */

    /* Background Colors */
    --clr-background-body: #f0eafa;        /* Fallback if image fails, or base for gradient */
    --clr-background-container: rgba(255, 255, 255, 0.95);
    --clr-background-section: white;
    --clr-background-box-light: #f6f4fb;  /* Light purple-ish background */
    --clr-background-box-gradient: linear-gradient(145deg, var(--clr-background-box-light), #ffffff);

    /* Text Colors */
    --clr-text-body: #333;
    --clr-text-header: #363637;
    --clr-text-subtle: #888;
    --clr-text-footer: #8070a8;
    --clr-text-dark-gray: #555;

    /* Border & Shadow Colors */
    --clr-border-light: #eee;
    --clr-border-subtle: rgba(107, 78, 157, 0.1);
    --clr-border-medium: rgba(107, 78, 157, 0.2);
    --clr-shadow-light: rgba(107, 78, 157, 0.1);
    --clr-shadow-medium: rgba(107, 78, 157, 0.15);

    /* Brand Colors */
    --clr-discord: #5865F2;
    --clr-threads: #000000;
    --clr-youtube: #FF0000;
    --clr-secondary: #17a2b8; /* For note-box */
    --clr-note-bg: #f8f5ff; /* For preparation-note */
    --clr-note-border: #e0d8f5; /* For preparation-note border */
    --clr-note-text: #6b4e9d; /* For preparation-note headings */
}

/* =============================================== */
/* 2. Base & Typography                            */
/* =============================================== */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-image: url('https://png.pngtree.com/thumb_back/fh260/background/20210619/pngtree-cute-lilac-simple-horizontal-gradient-background-image_729224.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    color: var(--clr-text-body);
    line-height: 1.6;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

/* 確保通用元素繼承 user-select，方便選取文字 */
h1, h2, h3, p, ul, li, span, div {
    user-select: inherit;
}

h3 {
    color: var(--clr-primary);
    margin-bottom: 1em;
}

/* 首段首字放大效果 */
.first-paragraph::first-letter {
    font-size: 300%;
    font-weight: bold;
    float: left;
    line-height: 1;
    padding-right: 8px;
    padding-top: 5px;
    margin-right: 2px;
    color: var(--clr-primary);
}

/* 強調文字樣式 */
strong {
    color: var(--clr-primary);
    font-weight: bold;
    padding: 0 2px;
    background: linear-gradient(transparent 60%, rgba(107, 78, 157, 0.1) 40%);
}

/* 高亮文字樣式 (class-based) */
.highlight {
    font-weight: bold;
    color: var(--clr-primary);
    background: linear-gradient(transparent 60%, rgba(107, 78, 157, 0.08) 40%);
    padding: 0 2px;
    border-radius: 2px;
}

/* 特刊推薦卡片中的 highlight 樣式 */
.promo-image-container .highlight {
    background: linear-gradient(transparent 60%, rgba(255, 193, 7, 0.3) 40%); /* 黃色系反白 */
    padding: 0 3px;
}

/* =============================================== */
/* 3. Layout Containers & Helpers                  */
/* =============================================== */
/* 主要內容容器 */
.newsletter-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--clr-background-container);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px var(--clr-shadow-light);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    user-select: text;
}

/* 通用區塊 */
.section {
    margin: 40px 0;
    padding: 25px;
    background: var(--clr-background-section);
    border-radius: 12px;
    border: 1px solid var(--clr-border-subtle);
    position: relative;
    transition: transform 0.3s ease;
    clear: both; /* 確保清除浮動影響 */
}

.section:hover {
    transform: translateY(-5px);
}

/* 雙欄佈局 */
.news-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
    position: relative;
}

/* Add a subtle divider between columns */
.news-columns::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: rgba(107, 78, 157, 0.1);
    transform: translateX(-50%);
}

.column {
    font-size: 16px;
    line-height: 1.8;
}

.column p {
    margin-bottom: 1.5em;
    text-align: left;
    max-width: 32em; /* 限制行長以提高可讀性 */
    user-select: text;
}

/* Flex 佈局 (圖文) */
.tool-content-flex {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.tool-image-side {
    flex: 0 0 40%;
    user-select: none; /* 圖片通常不需要被選取 */
}

.tool-text-side {
    flex: 1;
    user-select: text;
}

/* =============================================== */
/* 4. Components                                   */
/* =============================================== */

/* 4.1 Header & Footer */
/* ----------------------------------------------- */
.header {
    text-align: center;
    padding: 30px;
    background-image: url('https://png.pngtree.com/thumb_back/fh260/background/20210619/pngtree-cute-lilac-simple-horizontal-gradient-background-image_729224.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--clr-text-header);
    border-radius: 12px;
    margin-bottom: 30px;
    position: relative;
    /* overflow: hidden;  移除此行以允許搜尋結果顯示 */
}

.header::before { /* Header 覆蓋層光影動畫 */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(45deg, transparent 48%, rgba(255,255,255,0.1) 50%, transparent 52%);
    background-size: 10px 10px;
    animation: moveBackground 20s linear infinite;
    pointer-events: none;
    border-radius: 12px; /* 確保光影層也有圓角 */
}

.header h1 {
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    padding: 10px 0;
}

footer {
    text-align: center;
    margin-top: 30px;
    padding: 15px 20px;
    border-top: 1px solid var(--clr-border-light);
    color: var(--clr-text-footer);
    position: relative;
}

/* 4.2 Navigation */
/* ----------------------------------------------- */
/* 快速導覽列 (側邊) */
.quick-jump-nav {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid #e0d8f5;
    border-radius: 10px;
    padding: 15px;
    width: 200px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 15px rgba(107, 78, 157, 0.1);
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.quick-jump-nav h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1em;
    color: var(--clr-primary, #6b4e9d);
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.quick-jump-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-jump-nav li {
    margin-bottom: 5px;
}

.quick-jump-nav a {
    display: block;
    text-decoration: none;
    color: var(--clr-text-dark-gray, #555);
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.9em;
    transition: all 0.2s ease-in-out;
    border-left: 3px solid transparent;
}

.quick-jump-nav a:hover {
    background-color: #f6f4fb;
    color: var(--clr-primary, #6b4e9d);
}

.quick-jump-nav a.active {
    background-color: #ede9f9;
    color: var(--clr-primary, #6b4e9d);
    font-weight: bold;
    border-left-color: var(--clr-primary, #6b4e9d);
}

/* 手機版導覽開關 */
.quick-jump-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--clr-primary, #6b4e9d);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1em;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1001;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.quick-jump-toggle:hover {
    transform: scale(1.1);
}

/* 4.3 Content Blocks & Cards */
/* ----------------------------------------------- */
.section-title {
    color: var(--clr-primary);
    font-size: 24px;
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 2px solid var(--clr-accent);
    display: flex;
    align-items: center;
    position: relative;
}

.section-title::after { /* 標題底線動畫 */
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--clr-primary);
    animation: titleBorder 3s infinite;
}

/* 通用項目卡片基礎樣式 */
.news-item,
.update-item,
.tool-item {
    margin: 20px 0;
    padding: 20px;
    background: var(--clr-background-box-gradient);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--clr-shadow-light);
    user-select: text;
}

.news-item:hover,
.update-item:hover,
.tool-item:hover { /* 統一 hover 效果 */
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--clr-shadow-medium);
}

.news-content {
    margin: 20px 0 0 0;
    padding: 0;
    overflow: hidden; /* Ensure proper containment of floated elements */
}

.news-image-top,
.tool-image-side,
.update-banner {
    user-select: none;
}

.news-image-top img,
.tool-image-side img,
.update-banner img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--clr-shadow-light);
    transition: transform 0.3s ease;
    display: block;
}

.news-image-top {
    max-width: 600px;
    margin: 0 auto 30px;
    clear: both; /* Ensure proper spacing before columns */
}

.tool-image-side img {
    box-shadow: 0 4px 12px var(--clr-shadow-medium);
}

.update-banner {
    margin: 0 0 30px;
    overflow: hidden;
}

.update-banner img {
    border-radius: 0;
}

.news-image-top img:hover,
.tool-image-side img:hover,
.update-banner img:hover {
    transform: scale(1.02);
}

/* 大綱/重點提示框 */
.outline-box {
    background: var(--clr-background-box-gradient);
    border-left: 4px solid var(--clr-primary);
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    position: relative;
    box-shadow: inset 0 2px 4px var(--clr-shadow-light);
}

.outline-box::after { /* 裝飾用元素 */
    content: '';
    position: absolute;
    top: 10px; right: 10px;
    width: 50px; height: 50px;
    background: radial-gradient(circle, var(--clr-accent) 10%, transparent 60%);
    opacity: 0.2;
    pointer-events: none;
}

.outline-box h2 {
    color: var(--clr-primary);
    font-size: 1.2em;
    margin-bottom: 10px;
}

.outline-box ul {
    list-style-type: disc;
    margin-left: 20px;
    padding-left: 0;
}

.outline-box li {
    line-height: 1.6;
    color: var(--clr-text-body);
    margin-bottom: 0.5em;
}

/* 註解說明框 */
.note-box {
    background-color: #f8f9fa;
    border-left: 4px solid var(--clr-secondary, #17a2b8);
    padding: 15px 20px;
    margin: 25px 0;
    font-size: 0.95em;
    color: #495057;
    border-radius: 0 8px 8px 0;
}

.note-box p {
    margin: 0;
}

.note-box strong {
    background: none; /* 取消在 note-box 中的特殊背景 */
    color: inherit;
}

/* 準備說明框 */
.preparation-note {
    background-color: var(--clr-note-bg);
    border: 1px solid var(--clr-note-border);
    border-left: 4px solid var(--clr-primary);
    padding: 20px;
    margin: 25px 0;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(107, 78, 157, 0.08);
    position: relative;
}

/* Removed emoji decoration as requested */

.preparation-note h5 {
    color: var(--clr-note-text);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1em;
    border-bottom: 1px solid rgba(107, 78, 157, 0.2);
    padding-bottom: 8px;
}

.preparation-note ul {
    padding-left: 25px;
    list-style-type: '• ';
    margin-bottom: 0;
    font-size: 1.05em;
}

.preparation-note li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.preparation-note li:last-child {
    margin-bottom: 0;
}

/* 4.4 Interactive Elements */
/* ----------------------------------------------- */
/* 標籤 */
.tag {
    display: inline-block;
    padding: 5px 12px;
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
    color: white;
    border-radius: 20px;
    font-size: 0.8em;
    margin: 5px 5px 5px 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(107, 78, 157, 0.2);
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(107, 78, 157, 0.3);
}

/* 按鈕與連結組 */
.link-group {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

/* 類按鈕樣式的連結 */
.news-link {
    display: inline-block;
    color: var(--clr-primary);
    text-decoration: none;
    padding: 8px 20px;
    margin: 5px 0;
    border: 1px solid var(--clr-primary);
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background-color: transparent;
    z-index: 1;
}

.news-link::before { /* 滑過填充效果 */
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: var(--clr-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    z-index: -1;
}

.news-link:hover {
    color: white;
}

.news-link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* 純文字樣式的連結 */
.case-link {
    color: var(--clr-primary);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    padding: 2px 0;
}

.case-link::after { /* 滑過底線效果 */
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 1px;
    background: var(--clr-primary);
    transition: width 0.3s ease;
}

.case-link:hover {
    color: var(--clr-accent);
}

.case-link:hover::after {
    width: 100%;
}
/* =============================================== */
/* 新增：特刊推薦卡片 - 按鈕優化樣式             */
/* =============================================== */

/* 讓按鈕可以包含圖示 */
.cta-promo-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* 醒目的高亮按鈕樣式 */
.highlight-button {
    background: var(--clr-primary) !important; /* 直接填滿主色 */
    color: white !important;
    border-color: var(--clr-primary) !important;
    animation: pulse 2s infinite; /* 加上呼吸動畫 */
}

.highlight-button:hover {
    background: var(--clr-accent) !important; /* 滑過時變亮一點的紫色 */
    transform: translateY(-2px) scale(1.05);
}

/* 按鈕呼吸動畫 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(107, 78, 157, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(107, 78, 157, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(107, 78, 157, 0);
    }
}

/* 下拉選單 */
.period-selector-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin: -15px 0 25px 0;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.period-selector {
    position: relative;
    min-width: 250px;
}

.period-selector select {
    width: 100%;
    padding: 10px 35px 10px 15px;
    font-size: 16px;
    border: 2px solid var(--clr-primary);
    border-radius: 20px;
    background: var(--clr-background-section);
    color: var(--clr-primary);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px var(--clr-shadow-light);
}

.period-selector::after { /* 下拉箭頭 */
    content: '▼';
    font-size: 12px;
    color: var(--clr-primary);
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.period-selector select:hover {
    background: var(--clr-background-box-light);
    box-shadow: 0 2px 8px var(--clr-shadow-light);
}

.period-selector select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(107, 78, 157, 0.2);
}


/* 4.5 Specific Feature Sections */
/* ----------------------------------------------- */

/* --- 社群連結區塊 --- */
.social-connect-section {
    text-align: center;
    margin: 40px 0 20px 0;
    padding: 25px 0;
    border-top: 1px solid var(--clr-border-subtle);
    border-bottom: 1px solid var(--clr-border-subtle);
}

.social-connect-section h2 {
    color: var(--clr-primary);
    font-size: 1.5em;
    margin-bottom: 25px;
}

.social-connect-section > div {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: none;
}

.social-button img {
    width: 28px;
    height: auto;
    vertical-align: middle;
}

.social-button span {
    font-size: 0.95em;
}

.social-button:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.discord-button { background-color: var(--clr-discord); }
.discord-button:hover { background-color: #4752C4; }

.threads-button-style { background-color: var(--clr-threads); }
.threads-button-style:hover { background-color: #222222; }

.youtube-button { background-color: var(--clr-youtube); }
.youtube-button:hover { background-color: #cc0000; }

/* --- 待辦事項區塊 --- */
.coming-soon-placeholder {
    text-align: center;
    padding: 80px 40px;
    margin: 40px 0;
    background: var(--clr-background-box-gradient);
    border-radius: 12px;
    border: 1px solid var(--clr-border-subtle);
    box-shadow: 0 5px 20px var(--clr-shadow-light);
    color: var(--clr-text-dark-gray);
}

.coming-soon-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: inline-block;
    animation: bounce 2s infinite;
}

.coming-soon-placeholder h2 {
    color: var(--clr-primary);
    font-size: 28px;
    margin-bottom: 15px;
}

.coming-soon-placeholder p {
    font-size: 18px;
    line-height: 1.7;
    color: #666;
    max-width: 600px;
    margin: 10px auto;
}

/* --- 科技新聞精選 (圖片牆) --- */
.roundup-grid-final {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.roundup-image-link {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(107, 78, 157, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.roundup-image-link:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(107, 78, 157, 0.15);
}

.roundup-image-link img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- 特刊推薦卡片 --- */
.promo-image-container {
    position: relative; /* 讓內部的絕對定位元素可以對齊它 */
    border-radius: 12px;
    overflow: hidden; /* 確保遮罩和圖片的圓角生效 */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    color: white; /* 讓裡面的文字預設為白色 */
}

.promo-image-background {
    width: 100%;
    height: 100%;
    display: block; /* 移除圖片下方多餘空間 */
    object-fit: cover; /* 確保圖片填滿容器且不變形，應對各種比例 */
}

/* 特刊推薦卡片 - 數字疊加區塊樣式 */
.promo-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 10, 30, 0.1), rgba(0, 20, 60, 0.6));
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box; /* 確保 padding 不會影響寬度計算 */
    text-align: center;
}

/* 數字統計容器 */
.promo-image-overlay .hero-stats {
    display: flex;
    justify-content: center;
    /* 修改：改為 center，讓項目在換行時垂直對齊更穩定 */
    align-items: center; 
    gap: 40px; /* 項目之間的間距 */
    width: 100%;
    flex-wrap: wrap; /* 允許項目在空間不足時換行 */
}

/* 數字樣式 */
.promo-image-overlay .stat-number {
    font-size: clamp(3rem, 10vw, 4.5rem);
    font-weight: 700;
    color: #ffc107;
    line-height: 1;
    display: block;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* 標籤樣式 */
.promo-image-overlay .stat-label {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    color: #f8f9fa; 
    display: block;
    margin-top: 8px;
}
/* --- AI 競賽故事 (幻燈片) --- */
.ai-competition-story {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    background: var(--clr-background-box-gradient);
}

/* 故事導航 */
.story-nav {
    margin-bottom: 30px;
}

.story-progress {
    height: 4px;
    background: rgba(107, 78, 157, 0.1);
    border-radius: 2px;
    margin-bottom: 20px;
    overflow: hidden;
}

.story-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
    width: 20%; /* JS 會控制 */
    transition: width 0.5s ease;
}

.story-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.story-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(107, 78, 157, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.story-dot.active {
    background: var(--clr-primary);
    transform: scale(1.3);
}

/* 故事容器 */
.story-container {
    position: relative;
    min-height: 500px;
}

.story-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.5s ease;
    pointer-events: none;
}

.story-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.slide-content {
    padding: 20px;
    text-align: center;
}

.slide-title {
    font-size: 2em;
    color: var(--clr-primary);
    margin-bottom: 15px;
}

.slide-subtitle {
    color: var(--clr-text-dark-gray);
    font-size: 1.1em;
    margin-bottom: 30px;
}

/* 行動呼籲按鈕 */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.cta-button {
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cta-button.primary {
    background: var(--clr-primary);
    color: white;
}

.cta-button.primary:hover {
    background: var(--clr-accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 78, 157, 0.3);
}

.cta-button.secondary {
    border: 2px solid var(--clr-primary);
    color: var(--clr-primary);
}

.cta-button.secondary:hover {
    background: var(--clr-primary);
    color: white;
}

/* 故事導航控制 */
.story-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding: 0 20px;
}

.story-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--clr-primary);
    color: var(--clr-primary);
    font-size: 1.5em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-nav-btn:hover {
    background: var(--clr-primary);
    color: white;
}

.story-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* 幻燈片 1: 統計數據 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.stat-box {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px var(--clr-shadow-light);
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--clr-primary);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--clr-text-dark-gray);
    font-size: 0.9em;
}

/* 幻燈片 2: 部門圖表 */
.dept-chart-container {
    max-width: 600px;
    margin: 30px auto;
    height: 300px;
}

.dept-insights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.insight-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--clr-shadow-light);
    display: flex;
    flex-direction: column;
}

.insight-card.highlight {
    border: 2px solid var(--clr-primary);
    background: linear-gradient(to bottom right, white, rgba(107, 78, 157, 0.05));
}

.insight-card strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1.1em;
}

.insight-card span {
    color: var(--clr-text-dark-gray);
    font-size: 0.9em;
}

/* 幻燈片 3: 主題視覺化 */
.theme-visualization {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 400px;
    margin: 30px auto;
}

.theme-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 5px 20px rgba(107, 78, 157, 0.3);
    z-index: 10;
}

.theme-item {
    position: absolute;
}

.theme-circle {
    background: white;
    border: 2px solid var(--clr-primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    padding: 20px;
}

.theme-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(107, 78, 157, 0.3);
}

.theme-circle.large { width: 150px; height: 150px; }
.theme-circle.medium { width: 120px; height: 120px; }
.theme-circle.small { width: 100px; height: 100px; }

.theme-icon { font-size: 2em; margin-bottom: 5px; }
.theme-name { font-weight: bold; font-size: 0.9em; margin-bottom: 5px; }
.theme-count { color: var(--clr-text-dark-gray); font-size: 0.8em; }

/* 幻燈片 4: 技術堆疊 */
.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.tech-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    position: relative;
    box-shadow: 0 3px 10px var(--clr-shadow-light);
    transition: all 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--clr-shadow-medium);
}

.tech-card.primary {
    border: 2px solid var(--clr-primary);
    background: linear-gradient(to bottom, white, rgba(107, 78, 157, 0.05));
}

.tech-usage {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--clr-primary);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
}

.tech-card h4 {
    margin: 10px 0 5px 0;
    color: var(--clr-primary);
}

.tech-card p {
    font-size: 0.9em;
    color: var(--clr-text-dark-gray);
}

.tech-insight {
    background: rgba(107, 78, 157, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

/* 幻燈片 5: 策略時間線 */
.strategy-timeline {
    display: flex;
    justify-content: space-around;
    margin: 40px 0;
    position: relative;
}

.strategy-timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--clr-primary);
    z-index: 0;
}

.timeline-item {
    text-align: center;
    position: relative;
    flex: 1;
    z-index: 1;
}

.timeline-dot {
    width: 40px;
    height: 40px;
    background: white;
    border: 3px solid var(--clr-primary);
    border-radius: 50%;
    margin: 0 auto 15px;
    position: relative;
}

.timeline-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--clr-primary);
    border-radius: 50%;
}

.timeline-item h4 {
    color: var(--clr-primary);
    margin-bottom: 10px;
}

.timeline-item p {
    color: var(--clr-text-dark-gray);
    font-size: 0.9em;
}

/* --- About Us Box (Potentially Unused) --- */
.about-us-box {
    background-color: #f8f8ff;
    padding: 25px;
    margin: 30px 0;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    position: relative;
}

.about-us-icon {
    pointer-events: none;
}


/* =============================================== */
/* 5. Animations (@keyframes)                      */
/* =============================================== */
/* Header 背景光影移動 */
@keyframes moveBackground {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

/* Section Title 底線擴張 */
@keyframes titleBorder {
    0% { width: 50px; }
    50% { width: 100px; }
    100% { width: 50px; }
}

/* Coming Soon 圖示彈跳 */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

/* =============================================== */
/* 6. Responsive Design (Media Queries)            */
/* =============================================== */

/* --- Tablet & Larger Mobile (max-width: 1400px) --- */
@media (max-width: 1400px) {
    .quick-jump-nav {
        opacity: 0;
        transform: translateY(-50%) translateX(100%); /* 從右側滑出 */
        pointer-events: none;
    }
    .quick-jump-nav.is-mobile-active {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
        right: 20px;
        pointer-events: auto;
    }

    .quick-jump-toggle {
        display: block; /* 顯示漢堡選單 */
    }
}


/* --- Tablet & Smaller (max-width: 768px) --- */
@media (max-width: 768px) {
    /* Layout Adjustments */
    .news-columns {
        grid-template-columns: 1fr; /* 堆疊雙欄 */
        gap: 15px;
        margin-bottom: 20px;
    }
    
    /* Hide the column divider in mobile view */
    .news-columns::after {
        display: none;
    }
    
    /* Remove the column divider in mobile view */
    .news-columns::after {
        display: none;
    }
    
    .column {
        padding: 0;
    }
    
    .column p {
        text-align: left; /* Revert to left alignment on mobile for better readability */
        text-indent: 0; /* Remove text indent on mobile */
    }
    .tool-content-flex {
        flex-direction: column; /* 堆疊圖文 */
    }
    .tool-image-side {
        max-width: 100%;
        flex-basis: auto;
        margin-bottom: 20px;
    }
    .tool-text-side {
        max-width: 100%;
    }
    .social-connect-section > div {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    /* Spacing Adjustments */
    body { padding: 10px; }
    .newsletter-container { padding: 15px; }
    .header { padding: 15px; margin-bottom: 20px; }
    .section { padding: 15px; margin: 25px 0; }
    .news-item, .tool-item, .update-item { padding: 15px; }
    .news-image-top { margin-bottom: 20px; }
    .link-group { justify-content: center; }
    footer { padding: 10px 15px; margin-top: 25px; }
    .social-connect-section { padding: 20px 10px; }

    /* Typography Adjustments */
    h1 { font-size: 1.7em; }
    h2, .section-title { font-size: 1.3em; }
    h3 { font-size: 1.15em; }
    body, p, li { font-size: 15px; line-height: 1.7; }
    .first-paragraph::first-letter { font-size: 250%; }
    .column p { max-width: 100%; }

    /* Component Adjustments */
    .period-selector-container {
        justify-content: center;
        padding: 0 10px;
        margin-bottom: 20px;
    }
    .period-selector {
        min-width: 0;
        width: 90%;
    }
    .social-button {
        width: 80%;
        max-width: 300px;
        justify-content: center;
    }
    .promo-image-overlay .hero-stats {
        gap: 30px; /* 在平板上縮小間距 */
    }
}
    .coming-soon-placeholder { padding: 60px 20px; }
    .coming-soon-icon { font-size: 3rem; }
    .coming-soon-placeholder h2 { font-size: 24px; }
    .coming-soon-placeholder p { font-size: 16px; }
    
    /* AI Story Section Responsive */
    .slide-title { font-size: 1.5em; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .tech-stack-grid { grid-template-columns: repeat(2, 1fr); }
    .theme-visualization { height: 300px; }
    .theme-circle.large { width: 120px; height: 120px; }
    .theme-circle.medium { width: 100px; height: 100px; }
    .theme-circle.small { width: 80px; height: 80px; }
    .theme-icon { font-size: 1.5em; }
    .strategy-timeline { flex-direction: column; gap: 30px; }
    .strategy-timeline::before { display: none; }
    .action-buttons { flex-direction: column; align-items: center; width: 100%; }
    .cta-button { width: 80%; text-align: center; }

  


/* --- Mobile (max-width: 490px) --- */
@media (max-width: 490px) {
    /* 您原有的通用樣式 */
    h1 { font-size: 1.5em; }
    h2, .section-title { font-size: 1.2em; }
    h3 { font-size: 1.1em; }
    body, p, li { font-size: 14px; }
    .newsletter-container { padding: 10px; }
    .section { padding: 10px; }
    .tag { padding: 4px 10px; font-size: 0.75em; }
    .news-link, .social-button { padding: 10px 18px; }
    .social-button img { width: 24px; }
    .social-button span { font-size: 0.9em; }

    /* --- 以下為針對特刊卡片的修正 --- */
    
    .promo-image-container {
        /* 修改：讓容器更高一點 (從 4/5 改為 3/4)，提供更多垂直空間 */
        aspect-ratio: 3 / 4;
    }

    .promo-image-overlay .hero-stats {
        flex-direction: column; /* 垂直堆疊 */
        gap: 15px;
        align-items: center; /* 確保水平置中 */
    }

    .promo-image-overlay .stat-number {
        /* 新增：直接指定一個較小的字體大小，避免 clamp() 換算後過大 */
        font-size: 2.4rem; 
    }

    .promo-image-overlay .stat-label {
        font-size: 0.9rem;
    }
}
/* =============================================== */
/* 新增：內建搜尋功能樣式                      */
/* =============================================== */

.search-container {
    position: relative;
    max-width: 500px;
    margin: 20px auto 0 auto;
    z-index: 9000; /* 確保搜尋容器有較高的 z-index */
}

#searchInput {
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 25px;
    border: 1px solid var(--clr-border-medium);
    transition: all 0.3s ease;
}
#searchInput:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 4px rgba(107, 78, 157, 0.2);
}

.search-results-container {
    display: none; /* 預設隱藏 */
    position: absolute; /* 改回 absolute，相對於 search-container 定位 */
    top: 100%; /* 在搜尋框正下方 */
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 9999; /* 確保顯示在最上層 */
    text-align: left;
    border: 2px solid var(--clr-primary); /* 更明顯的邊框 */
    width: 100%; /* 確保寬度正確 */
    box-sizing: border-box; /* 確保 padding 和 border 不會增加寬度 */
    margin-top: 10px;
}
.search-results-container.active {
    display: block; /* 透過 JS 加入 active class 來顯示 */
}

.search-result-item {
    display: block;
    padding: 15px 20px;
    color: var(--clr-text-body);
    text-decoration: none;
    border-bottom: 1px solid var(--clr-border-light);
    transition: background-color 0.2s ease;
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-result-item:hover {
    background-color: #f6f4fb;
}

.search-result-item h5 {
    margin: 0 0 5px 0;
    font-size: 1em;
    color: var(--clr-primary);
}
.search-result-item p {
    margin: 0;
    font-size: 0.9em;
    color: #666;
    /* 多行文字省略效果 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: var(--clr-text-subtle);
}

/* 響應式圖片通用樣式 */
.responsive-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 限制最大寬度的圖片容器 */
.img-container-limit {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

/* =============================================== */
/* CSS File End                                    */
/* =============================================== */

/* =============================================== */
/* 7. Issue 016 Specific Styles (Migrated)         */
/* =============================================== */
    /* --- 016期專用：Google 40 Tips Grid Layout --- */
    .tips-category-title {
        background: linear-gradient(135deg, #6b4e9d, #9b7fd0);
        color: white;
        padding: 12px 20px;
        border-radius: 8px;
        margin-top: 40px;
        margin-bottom: 25px;
        font-size: 1.25em;
        display: inline-block;
        box-shadow: 0 4px 10px rgba(107, 78, 157, 0.2);
        font-weight: bold;
        letter-spacing: 1px;
    }

    .tips-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        margin-bottom: 30px;
    }

    .tip-card {
        background: white;
        border: 1px solid rgba(107, 78, 157, 0.1);
        border-radius: 12px;
        padding: 20px;
        transition: all 0.3s ease;
        height: 100%;
        /* Equal height */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
        display: flex;
        flex-direction: column;
    }

    .tip-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(107, 78, 157, 0.15);
        border-color: #dcd0ff;
    }

    .tip-header {
        display: flex;
        align-items: baseline;
        margin-bottom: 12px;
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 10px;
    }

    .tip-number {
        font-family: 'Segoe UI', sans-serif;
        font-weight: 900;
        color: rgba(107, 78, 157, 0.15);
        font-size: 2.5em;
        margin-right: 12px;
        line-height: 0.8;
        letter-spacing: -2px;
    }

    .tip-title {
        font-weight: bold;
        color: #333;
        font-size: 1.1em;
        line-height: 1.4;
    }

    .tip-desc {
        font-size: 0.95em;
        color: #666;
        line-height: 1.6;
        margin: 0;
        flex-grow: 1;
        /* Push footer if any */
    }

    /* --- 016期專用：Prompt 專欄樣式 --- */
    .prompt-scenario-card {
        background: white;
        border-radius: 15px;
        padding: 30px;
        margin-bottom: 30px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        border-left: 6px solid #6b4e9d;
        transition: transform 0.3s ease;
    }

    .prompt-scenario-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    }

    .prompt-title-row {
        display: flex;
        align-items: center;
        margin-bottom: 15px;
    }

    .prompt-num {
        background: #6b4e9d;
        color: white;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        margin-right: 15px;
        flex-shrink: 0;
        font-size: 1.1em;
    }

    .prompt-h {
        margin: 0;
        color: #333;
        font-size: 1.3em;
        font-weight: bold;
    }

    .prompt-intro {
        margin-bottom: 20px;
        color: #555;
        line-height: 1.7;
        font-size: 1.05em;
    }

    .prompt-box {
        background: #fcfaff;
        border: 2px dashed #dcd0ff;
        border-radius: 10px;
        padding: 20px;
        font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
        color: #4a4a4a;
        position: relative;
        margin-top: 15px;
    }

    .prompt-label {
        position: absolute;
        top: -12px;
        left: 20px;
        background: #9b7fd0;
        color: white;
        font-size: 0.85em;
        padding: 2px 10px;
        border-radius: 4px;
        font-weight: bold;
        letter-spacing: 1px;
    }

    /* Mobile adjustment for grid */
    @media (max-width: 768px) {
        .tips-grid {
            grid-template-columns: 1fr;
        }

        .prompt-scenario-card {
            padding: 20px;
        }
    }

    /* --- 016期專用：Legal News Optimization --- */
    .legal-news-container {
        font-family: 'Segoe UI', system-ui, sans-serif;
    }

    .legal-main-quote {
        font-size: 1.25em;
        line-height: 1.6;
        color: #333;
        font-weight: 500;
        margin-bottom: 30px;
        padding-left: 20px;
        border-left: 5px solid #6b4e9d;
        background: linear-gradient(to right, rgba(107, 78, 157, 0.05), transparent);
        padding: 20px;
        border-radius: 0 10px 10px 0;
    }

    .legal-highlight-box {
        background: #f8f9fa;
        border: 1px solid #e9ecef;
        border-radius: 12px;
        padding: 25px;
        margin: 30px 0;
        display: flex;
        align-items: flex-start;
        gap: 20px;
    }

    .legal-icon {
        font-size: 2.5em;
        color: #6b4e9d;
        flex-shrink: 0;
        background: white;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    }

    .legal-content h4 {
        margin: 0 0 10px 0;
        color: #6b4e9d;
        font-size: 1.1em;
    }

    .legal-content ul {
        margin: 0;
        padding-left: 20px;
        color: #555;
    }

    .legal-content li {
        margin-bottom: 8px;
    }

    /* --- 016期專用：Tech Tool Feature Grid --- */
    .tech-tool-header {
        text-align: center;
        margin-bottom: 40px;
        border-bottom: 1px solid #eee;
        padding-bottom: 30px;
    }

    .tech-tool-title {
        font-size: 2.2em;
        color: #6b4e9d;
        margin-bottom: 15px;
        font-weight: 800;
        letter-spacing: -1px;
    }

    .core-upgrade-card {
        background: linear-gradient(135deg, #2b2b2b, #1a1a1a);
        color: white;
        padding: 30px;
        border-radius: 16px;
        margin-bottom: 40px;
        position: relative;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .core-upgrade-card::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 150px;
        height: 150px;
        background: radial-gradient(circle, rgba(155, 127, 208, 0.3) 0%, transparent 70%);
        border-radius: 50%;
        transform: translate(50%, -50%);
    }

    .tech-feature-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }

    .feature-card {
        background: white;
        border: 1px solid #eee;
        border-radius: 12px;
        padding: 25px;
        transition: all 0.3s ease;
    }

    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(107, 78, 157, 0.1);
        border-color: #dcd0ff;
    }

    .feature-icon {
        font-size: 1.8em;
        margin-bottom: 15px;
        display: inline-block;
        background: #f6f4fb;
        padding: 10px;
        border-radius: 10px;
    }

    .feature-title {
        font-weight: bold;
        font-size: 1.1em;
        color: #333;
        margin-bottom: 10px;
        display: block;
    }

    .feature-desc {
        font-size: 0.95em;
        color: #666;
        line-height: 1.6;
        margin: 0;
    }

    /* Mobile adjustment */
    @media (max-width: 768px) {
        .legal-highlight-box {
            flex-direction: column;
            text-align: center;
        }

        .legal-icon {
            margin: 0 auto 15px auto;
        }

        .tech-feature-grid {
            grid-template-columns: 1fr;
        }
    }

    /* --- 016期專用：NotebookLM Feature Styles --- */
    /* --- 016期專用：NotebookLM Feature Styles (Simplified) --- */
    .highlight-box {
        background: #f3eefc;
        /* Light purple tint */
        border-left: 5px solid #6b4e9d;
        border-radius: 8px;
        padding: 30px;
        margin-top: 30px;
        position: relative;
        color: #333;
    }

    .highlight-box h3 {
        color: #6b4e9d !important;
        margin-top: 0;
    }

    .highlight-box p,
    .highlight-box li,
    .highlight-box span {
        color: #555 !important;
    }

    /* Remove previous white text overrides */

    .update-section {
        margin: 60px 0;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .update-header {
        display: flex;
        align-items: center;
        margin-bottom: 25px;
        border-bottom: 2px solid #f0f0f0;
        padding-bottom: 15px;
    }

    .update-number {
        background: #6b4e9d;
        color: white;
        font-size: 1.5em;
        font-weight: bold;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 15px;
        flex-shrink: 0;
        box-shadow: 0 3px 8px rgba(107, 78, 157, 0.3);
    }

    .update-header h2 {
        margin: 0;
        color: #333;
        font-size: 1.4em;
    }

    .update-image img {
        width: 100%;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
        border: 1px solid #eee;
    }

    .image-caption {
        text-align: center;
        font-size: 0.9em;
        color: #888;
        margin-top: 10px;
        font-style: italic;
    }

    .feature-list {
        padding: 20px;
        border-radius: 10px;
        background: #f9f9f9;
        border: 1px solid #eee;
    }

    .feature-list h3 {
        margin-top: 0;
        font-size: 1.1em;
        margin-bottom: 10px;
    }

    .feature-list ul {
        margin: 0;
        padding-left: 20px;
        color: #555;
    }

    .feature-list li {
        margin-bottom: 5px;
    }

    .info-note {
        background: #fff8e1;
        border-left: 4px solid #ffc107;
        padding: 15px;
        border-radius: 5px;
        color: #856404;
        font-size: 0.95em;
    }

    .info-note p {
        margin: 0;
    }

    /* Comparison Table Styles */
    .comparison-table table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 20px;
        background: white;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 0 0 1px #eee;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 15px;
        text-align: left;
        border-bottom: 1px solid #eee;
    }

    .comparison-table th {
        background: #f8f9fa;
        color: #555;
        font-weight: bold;
    }

    .workflow-steps ol {
        counter-reset: step-counter;
        list-style: none;
        padding: 0;
    }

    .workflow-steps li {
        position: relative;
        padding-left: 50px;
        margin-bottom: 15px;
    }

    .workflow-steps li::before {
        counter-increment: step-counter;
        content: counter(step-counter);
        position: absolute;
        left: 0;
        top: 0;
        width: 35px;
        height: 35px;
        background: #e8f0fe;
        color: #1a73e8;
        font-weight: bold;
        border-radius: 50%;
        text-align: center;
        line-height: 35px;
    }

    /* Stats Grid for Chat Evolution */
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        margin-top: 25px;
    }

    .stat-card {
        background: white;
        padding: 20px;
        border-radius: 12px;
        text-align: center;
        border: 1px solid #eee;
        transition: transform 0.2s;
    }

    .stat-card:hover {
        border-color: #6b4e9d;
        transform: translateY(-2px);
    }

    .stat-number {
        display: block;
        font-size: 2.5em;
        font-weight: 800;
        color: #6b4e9d;
        /* Uniform purple numbers */
        margin-bottom: 5px;
    }

    .stat-label {
        color: #666;
        font-size: 0.95em;
    }

    /* Role Grid */
    .role-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin: 20px 0;
    }

    .role-item {
        background: white;
        border: 1px solid #e0d8f5;
        padding: 10px 20px;
        border-radius: 25px;
        font-weight: 500;
        color: #555;
        cursor: pointer;
        transition: all 0.2s;
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

    .role-item:hover {
        border-color: #6b4e9d;
        background: #fcfaff;
        color: #6b4e9d;
        box-shadow: 0 2px 8px rgba(107, 78, 157, 0.15);
    }

    .click-hint {
        font-size: 0.8em;
        opacity: 0.6;
    }

    /* Audio Modes */
    .audio-modes {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 15px;
        margin-top: 20px;
    }

    .audio-mode-card {
        background: #fcfaff;
        border: 1px solid #e0d8f5;
        border-radius: 10px;
        padding: 20px;
        text-align: center;
        transition: transform 0.2s;
    }

    .audio-mode-card:hover {
        transform: translateY(-3px);
        border-color: #6b4e9d;
    }

    .mode-icon {
        font-size: 2em;
        margin-bottom: 10px;
    }

    .audio-mode-card h4 {
        margin: 5px 0;
        color: #6b4e9d;
    }

    .audio-mode-card p {
        font-size: 0.9em;
        color: #666;
        margin: 0;
    }

    /* Option Cards (Slide Decks) */
    .option-cards {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .option-card {
        background: white;
        border: 1px solid #eee;
        padding: 20px;
        border-radius: 10px;
        text-align: left;
    }

    .option-card h4 {
        margin-top: 0;
        color: #333;
        /* Uniform dark title */
    }

    .option-card p {
        color: #666;
        /* Uniform gray text */
        margin-bottom: 0;
    }

    /* Hover effect for interactivity hint */
    .option-card:hover {
        border-color: #6b4e9d;
    }

    /* Pricing Section */

    /* Force white text on cards that likely have dark backgrounds */
    .option-card[style*="background: linear-gradient"],
    .option-card[style*="background:linear-gradient"] {
        color: white !important;
    }

    .option-card[style*="background: linear-gradient"] h4,
    .option-card[style*="background:linear-gradient"] h4,
    .option-card[style*="background: linear-gradient"] p,
    .option-card[style*="background:linear-gradient"] p {
        color: white !important;
    }

    /* Pricing Section */
    .pricing-section {
        background: white;
        border-radius: 15px;
        border: 1px solid #e0d8f5;
        padding: 0;
        overflow: hidden;
        margin-top: 80px; /* 大幅增加上方邊距，避免被上方卡片遮住 */
        margin-bottom: 40px; /* 增加下方邊距，保持整體平衡 */
        box-shadow: 0 5px 20px rgba(107, 78, 157, 0.05);
        clear: both; /* 確保清除浮動影響 */
        position: relative; /* 確保定位上下文正確 */
        z-index: 1; /* 確保顯示層級正確 */
    }

    .pricing-intro {
        background: #6b4e9d;
        color: white;
        padding: 15px 20px;
        text-align: center;
        font-weight: 500;
    }

    .pricing-card {
        padding: 30px;
    }

    .pricing-header {
        text-align: center;
        margin-bottom: 25px;
        position: relative;
    }

    .pricing-header h3 {
        font-size: 1.8em;
        margin: 0;
    }

    .price-tag {
        display: inline-block;
        background: #e8f0fe;
        color: #1967d2;
        padding: 5px 15px;
        border-radius: 20px;
        font-weight: bold;
        margin-top: 10px;
    }

    .pricing-features {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    /* --- New Compact Layout Styles --- */
    .notebook-feature-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        margin-top: 30px;
        margin-bottom: 60px; /* 增加底部邊距，避免與下方元素重疊 */
        row-gap: 50px; /* 增加行間距，讓卡片垂直距離更明顯 */
    }

    .notebook-feature-card {
        background: #fff;
        border: 1px solid #eee;
        border-radius: 12px;
        padding: 25px;
        transition: all 0.2s;
        display: flex;
        flex-direction: column;
        height: 100%;
        position: relative; /* 確保卡片定位正確 */
        z-index: auto; /* 避免 z-index 衝突 */
    }

    .notebook-feature-card:hover {
        border-color: #dcd0ff;
        box-shadow: 0 5px 15px rgba(107, 78, 157, 0.08);
    }

    .notebook-feature-header {
        display: flex;
        align-items: center;
        margin-bottom: 15px;
        border-bottom: 1px solid #f5f5f5;
        padding-bottom: 10px;
    }

    .notebook-feature-icon {
        font-size: 1.5em;
        margin-right: 10px;
        background: #f3eefc;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }

    .notebook-feature-title {
        font-size: 1.2em;
        font-weight: bold;
        color: #333;
        margin: 0;
    }

    .notebook-sub-feature {
        margin-bottom: 15px;
    }

    .notebook-sub-feature h4 {
        font-size: 1em;
        color: #6b4e9d;
        margin: 0 0 5px 0;
    }

    .notebook-sub-feature p {
        font-size: 0.95em;
        color: #666;
        margin: 0;
        line-height: 1.5;
    }


    .pricing-feature {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #555;
    }

    .pricing-summary {
        background: #f8f9fa;
        padding: 20px;
        text-align: center;
        color: #666;
        border-top: 1px solid #eee;
        font-size: 0.95em;
    }

    /* Mobile Responsive for New Features */
    @media (max-width: 768px) {
        .notebook-feature-grid {
            grid-template-columns: 1fr;
        }

        .option-cards {
            grid-template-columns: 1fr;
        }

        .pricing-features {
            grid-template-columns: 1fr;
        }

        .highlight-box {
            padding: 20px;
        }

        .update-header {
            flex-direction: column;
            align-items: flex-start;
        }

        .update-number {
            margin-bottom: 10px;
        }
    }

/* =============================================== */
/* 8. Coming Soon Page Styles                      */
/* =============================================== */

.coming-soon-card {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(107, 78, 157, 0.15);
}

.coming-soon-icon-large {
    font-size: 80px;
    margin-bottom: 20px;
}

.coming-soon-title {
    color: var(--clr-primary);
    font-size: 2em;
    margin-bottom: 20px;
}

.coming-soon-text {
    font-size: 1.2em;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.coming-soon-actions {
    margin-top: 40px;
}

.btn-primary-large {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--clr-primary);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(107, 78, 157, 0.3);
}

.btn-primary-large:hover {
    background-color: var(--clr-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 78, 157, 0.4);
}
