/* ====================================================
 梵熹品牌官網 共用樣式表 v1
 ====================================================
 改顏色主題 → 修改下方 :root 變數區
 改字型 → 找 body 的 font-family
 ==================================================== */

/* 廣告雜誌排版字型載入（v39.2 補載：先前全站引用 Italiana/Playfair/Noto Serif TC 但無 loader，全部 fallback 系統字） */
@import url('https://fonts.googleapis.com/css2?family=Italiana&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Noto+Serif+TC:wght@300;400;500;600;700;900&family=Noto+Sans+TC:wght@300;400;500;600;700;900&display=swap');

/* v40.1 中文主字型：Chiron Sung HK（齊倫宋・港繁優化）自託管
   用 unicode-range 限定 CJK + 全形標點，英文/數字 fallback 到 Noto Sans TC（保留原雜誌感） */
@font-face {
  font-family: 'Chiron Sung HK';
  src: url('字型/ChironSungHK-R.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+3000-303F, U+4E00-9FFF, U+FF00-FFEF, U+2000-206F;
}
@font-face {
  font-family: 'Chiron Sung HK';
  src: url('字型/ChironSungHK-B.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+3000-303F, U+4E00-9FFF, U+FF00-FFEF, U+2000-206F;
}

:root {
 /* 對齊 FanSi 品牌視覺規範（2026-05-14 拍板）：Pantone 622/623 雙霧綠 + 柚紅 spice + 奶白米紙 */
 --底色-主: #FAF6EE;   /* 奶白米紙（紙底）— 不用純白 */
 --底色-次: #F4ECDC;   /* 微深奶白（卡片/分區底）*/
 --主文色: #1F2823;    /* 深霧綠墨（文字主色，比純黑帶霧綠底）*/
 --副文色: #5C6B62;    /* 中霧綠墨（次級文字）*/
 --強調色: #9CB5A6;    /* 霧綠深 Pantone 623 C（主色 60%）*/
 --次色:   #BFD0C4;    /* 霧綠淡 Pantone 622 C（次色 30%）*/
 --CTA色:  #9CB5A6;    /* 霧綠深 = 一般 CTA */
 --CTA深色: #7A9387;   /* 霧綠深-暗 = hover */
 --spice色: #E85D3C;   /* 柚紅 spice（≤10%，關鍵數字／引號／章節編號／highlight）*/
 --分隔色: #D8DDD5;    /* 淡霧綠灰 */
 --卡片色: #EFE9DA;    /* 卡片底（介於 紙底 與 次底 之間）*/
 --成功色: #7A9387;
 --警示色: #E85D3C;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
 /* v40.2 字型分層（回應「Chiron Sung 套 body 太普通」回饋）：
    內文（body）中文 → Noto Sans TC 黑體（乾淨好讀，回復原樣）
    標題層（h1/h2/h3/.區段標題/.主標）中文 → Chiron Sung HK 港繁宋（雜誌感，見下方標題規則）
    顯示用英文 Playfair Display / Italiana 由各區塊自己宣告 */
 font-family: 'Noto Sans TC', "PingFang TC", "Microsoft JhengHei", "蘋方-繁", "微軟正黑體", sans-serif;
 background: var(--底色-主);
 color: var(--主文色);
 line-height: 1.8;
 font-size: 17px;
 letter-spacing: 0.02em;
 -webkit-font-smoothing: antialiased;
}

/* v41.2 標題層字體＝對齊核可 mockup：中文標題用 Noto Serif TC 宋體，
   英文/數字標題接 Playfair Display serif，整體雜誌感（取代先前 Chiron Sung）。
   眉標（Playfair 斜體 uppercase）另有規則。 */
h1, h2, h3,
.區段標題, .主標,
.hero-標題, .頁首-標題, .文章-標題, .課程-標題 {
 /* v41.3 全站標題字重對齊首頁核可 mockup：600（秀氣宋體），取代先前 700 偏黑 */
 font-family: 'Noto Serif TC', 'Playfair Display', Georgia, serif;
 font-weight: 600;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.容器 { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.容器.窄 { max-width: 760px; }
.容器.中 { max-width: 960px; }
.中央 { text-align: center; }

/* ====================================================
 導覽列（全站共用）
==================================================== */
.導覽 {
 background: rgba(251, 247, 240, 0.92);
 backdrop-filter: blur(10px);
 -webkit-backdrop-filter: blur(10px);
 border-bottom: 1px solid var(--分隔色);
 position: sticky;
 top: 0;
 z-index: 100;
}
.導覽 .容器 {
 display: flex;
 align-items: center;
 justify-content: space-between;
 padding-top: 18px;
 padding-bottom: 18px;
}
/* logo＝對齊 mockup：FanSi 走 Italiana 襯線、梵熹（CJK）走 Noto Serif TC，中點改 spice 圓點 */
.導覽 .logo {
 font-family: 'Italiana', 'Noto Serif TC', serif;
 font-size: 30px;
 font-weight: 600;
 letter-spacing: 0.04em;
 color: var(--主文色);
 display: inline-flex;
 align-items: center;
}
.導覽 .logo span {
 font-size: 0;
 width: 8px;
 height: 8px;
 border-radius: 50%;
 background: var(--spice色);
 margin: 0 12px;
 display: inline-block;
 flex: none;
}
.導覽 nav ul {
 display: flex;
 list-style: none;
 gap: 44px;
 align-items: center;
}
.導覽 nav a {
 font-size: 18px;
 font-weight: 500;
 letter-spacing: 0.04em;
 color: var(--主文色);
 transition: color 0.2s;
}
.導覽 nav a:hover { color: var(--強調色); }
.導覽 nav a.active { color: var(--強調色); font-weight: 600; }
.導覽 .導覽動作 { display: flex; align-items: center; gap: 16px; }
.導覽 .購物車icon {
 width: 22px;
 height: 22px;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 color: var(--主文色);
 position: relative;
}
.導覽 .購物車icon .數量 {
 position: absolute;
 top: -8px;
 right: -10px;
 background: var(--CTA色);
 color: white;
 font-size: 11px;
 width: 18px;
 height: 18px;
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 font-weight: 700;
}
.導覽 .登入按鈕 {
 padding: 12px 30px;
 border: 1.5px solid var(--強調色);
 border-radius: 999px;
 font-size: 17px;
 color: var(--CTA深色);
 font-weight: 500;
 transition: all 0.2s;
}
.導覽 .登入按鈕:hover { background: var(--CTA深色); color: white; }
.漢堡按鈕 { display: none; cursor: pointer; font-size: 24px; color: var(--主文色); }

/* ====================================================
 區段共用
==================================================== */
section { padding: 100px 0; }
section.窄 { padding: 70px 0; }
.區段標題 {
 font-size: 36px;
 font-weight: 600;
 line-height: 1.4;
 text-align: center;
 margin-bottom: 24px;
 letter-spacing: 0.04em;
}
.區段副標 {
 font-size: 17px;
 color: var(--副文色);
 text-align: center;
 margin-bottom: 60px;
 line-height: 1.8;
}
.眉標 {
 display: inline-block;
 font-family: 'Playfair Display', 'Noto Serif TC', serif;
 font-style: italic;
 font-size: 16px;
 letter-spacing: 0.3em;
 color: var(--CTA深色);
 font-weight: 500;
 margin-bottom: 18px;
 text-transform: uppercase;
}

/* ====================================================
 按鈕
==================================================== */
.主按鈕 {
 display: inline-block;
 background: var(--spice色);
 color: #fff;
 padding: 16px 40px;
 border-radius: 999px;
 text-decoration: none;
 font-size: 16px;
 font-weight: 600;
 letter-spacing: 0.06em;
 transition: all 0.3s ease;
 box-shadow: 0 16px 34px -14px rgba(232, 93, 60, 0.7);
 border: none;
 cursor: pointer;
}
.主按鈕:hover {
 background: #d24c2d;
 transform: translateY(-2px);
 box-shadow: 0 18px 38px -14px rgba(232, 93, 60, 0.8);
}
.次按鈕 {
 display: inline-block;
 background: transparent;
 color: var(--強調色);
 padding: 14px 32px;
 border-radius: 999px;
 text-decoration: none;
 font-size: 15px;
 font-weight: 500;
 letter-spacing: 0.06em;
 border: 1.5px solid var(--強調色);
 transition: all 0.3s ease;
 cursor: pointer;
}
.次按鈕:hover { background: var(--強調色); color: var(--底色-次); }
.小按鈕 {
 font-size: 13px;
 padding: 10px 24px;
 letter-spacing: 0.06em;
}

/* ====================================================
 Hero（首頁與通用大標頁）
==================================================== */
.英雄區 {
 background: linear-gradient(178deg, #FBF7EF 0%, #F8F1E3 56%, #F4EBD9 100%);
 padding: 130px 0 110px;
 text-align: center;
}
.英雄區 h1 {
 font-size: clamp(46px, 5.2vw, 76px);
 font-weight: 600;
 line-height: 1.26;
 letter-spacing: 0.05em;
 margin: 10px 0 32px;
}
.英雄區 h1 .金字 {
 color: var(--spice色);
 position: relative;
 white-space: nowrap;
}
.英雄區 h1 .金字::after {
 content: "";
 position: absolute;
 left: 0; right: 0; bottom: 0.04em;
 height: 3px;
 background: var(--spice色);
 opacity: 0.5;
 border-radius: 2px;
}
.英雄區 .副標 {
 font-size: 20px;
 color: var(--副文色);
 line-height: 1.9;
 margin-bottom: 40px;
 letter-spacing: 0.05em;
 max-width: 680px;
 margin-left: auto;
 margin-right: auto;
}
.英雄區 .按鈕組 {
 display: flex;
 gap: 16px;
 justify-content: center;
 flex-wrap: wrap;
}

/* 子頁面 Hero（簡短版） */
.頁面標頭 {
 /* v41.3 暖調光感 hero（對齊首頁核可 mockup）：米桃漸層底取代平米色色塊 */
 background: linear-gradient(178deg, #FBF7EF 0%, #F8F1E3 56%, #F4EBD9 100%);
 padding: 96px 0 72px;
 text-align: center;
 border-bottom: 1px solid var(--分隔色);
}
.頁面標頭 h1 {
 font-size: 44px;
 font-weight: 600;
 margin-bottom: 14px;
 letter-spacing: 0.05em;
 line-height: 1.26;
}
.頁面標頭 p {
 color: var(--副文色);
 font-size: 17px;
}

/* ====================================================
 卡片（課程卡 / 文章卡 / 講師卡）
==================================================== */
.卡片格網 {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 32px;
}
.卡片格網.兩欄 { grid-template-columns: repeat(2, 1fr); }
.卡片格網.四欄 { grid-template-columns: repeat(4, 1fr); }

.卡片 {
 background: var(--底色-次);
 border-radius: 8px;
 overflow: hidden;
 display: flex;
 flex-direction: column;
 transition: all 0.3s ease;
 border: 1px solid var(--分隔色);
}
.卡片:hover {
 transform: translateY(-4px);
 box-shadow: 0 20px 40px rgba(184, 152, 90, 0.15);
}
.卡片 .卡片圖 {
 aspect-ratio: 16/10;
 background: var(--卡片色);
 background-size: cover;
 background-position: center;
 display: flex;
 align-items: center;
 justify-content: center;
 color: var(--強調色);
 font-size: 13px;
 letter-spacing: 0.1em;
}
.卡片 .卡片內容 {
 padding: 24px 24px 28px;
 display: flex;
 flex-direction: column;
 flex: 1;
}
.卡片 .分類標 {
 font-size: 12px;
 letter-spacing: 0.15em;
 color: var(--強調色);
 font-weight: 600;
 margin-bottom: 10px;
 text-transform: uppercase;
}
.卡片 h3 {
 font-size: 20px;
 font-weight: 700;
 line-height: 1.4;
 margin-bottom: 12px;
 letter-spacing: 0.02em;
}
.卡片 .摘要 {
 color: var(--副文色);
 font-size: 15px;
 line-height: 1.8;
 margin-bottom: 20px;
 flex: 1;
}
.卡片 .卡片底 {
 display: flex;
 align-items: center;
 justify-content: space-between;
 padding-top: 16px;
 border-top: 1px dashed var(--分隔色);
}
.卡片 .meta {
 font-size: 13px;
 color: var(--副文色);
}
.卡片 .價格 {
 color: var(--強調色);
 font-size: 18px;
 font-weight: 700;
}
.卡片 .價格 .幣 { font-size: 13px; margin-right: 2px; }

/* 講師卡（特殊版型） */
.講師卡 {
 background: var(--底色-次);
 padding: 32px 28px;
 border-radius: 8px;
 text-align: center;
 border: 1px solid var(--分隔色);
 transition: all 0.3s;
}
.講師卡:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(184, 152, 90, 0.15); }
.講師卡 .頭像 {
 width: 120px;
 height: 120px;
 border-radius: 50%;
 background: var(--卡片色);
 margin: 0 auto 20px;
 background-size: cover;
 background-position: center;
 display: flex;
 align-items: center;
 justify-content: center;
 color: var(--強調色);
 font-size: 11px;
 letter-spacing: 0.08em;
}
.講師卡 h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.講師卡 .頭銜 { font-size: 13px; color: var(--強調色); letter-spacing: 0.1em; margin-bottom: 16px; }
.講師卡 .簡述 { font-size: 14px; color: var(--副文色); line-height: 1.8; margin-bottom: 20px; }

/* ====================================================
 分類 Tabs
==================================================== */
.分類列 {
 display: flex;
 gap: 8px;
 justify-content: center;
 flex-wrap: wrap;
 margin-bottom: 48px;
}
.分類列 a {
 padding: 10px 24px;
 border-radius: 999px;
 background: var(--底色-次);
 color: var(--副文色);
 font-size: 14px;
 letter-spacing: 0.06em;
 border: 1px solid var(--分隔色);
 transition: all 0.2s;
 cursor: pointer;
}
.分類列 a:hover { color: var(--強調色); border-color: var(--強調色); }
.分類列 a.active {
 background: var(--主文色);
 color: var(--底色-次);
 border-color: var(--主文色);
}

/* ====================================================
 表單
==================================================== */
.表單 {
 max-width: 480px;
 margin: 0 auto;
}
.表單組 { margin-bottom: 20px; }
.表單組 label {
 display: block;
 font-size: 14px;
 font-weight: 600;
 margin-bottom: 8px;
 letter-spacing: 0.04em;
 color: var(--主文色);
}
.表單組 input,
.表單組 textarea,
.表單組 select {
 width: 100%;
 padding: 14px 16px;
 border: 1px solid var(--分隔色);
 border-radius: 6px;
 background: var(--底色-次);
 font-size: 15px;
 color: var(--主文色);
 font-family: inherit;
 transition: border-color 0.2s;
}
.表單組 input:focus,
.表單組 textarea:focus,
.表單組 select:focus {
 outline: none;
 border-color: var(--強調色);
}
.表單組 textarea { min-height: 120px; resize: vertical; }
.表單組 .提示 { font-size: 13px; color: var(--副文色); margin-top: 6px; }
.表單組.勾選 { display: flex; align-items: start; gap: 10px; }
.表單組.勾選 input { width: auto; margin-top: 4px; }
.表單組.勾選 label { margin-bottom: 0; font-weight: 400; font-size: 14px; line-height: 1.7; }

.表單分組 {
 background: var(--底色-次);
 padding: 32px;
 border-radius: 8px;
 margin-bottom: 24px;
 border: 1px solid var(--分隔色);
}
.表單分組 h3 {
 font-size: 18px;
 margin-bottom: 20px;
 letter-spacing: 0.04em;
 padding-bottom: 12px;
 border-bottom: 1px solid var(--分隔色);
}

/* Tab 切換 */
.切換組 {
 display: flex;
 gap: 0;
 margin-bottom: 32px;
 border-bottom: 1px solid var(--分隔色);
}
.切換組 .切換鈕 {
 flex: 1;
 padding: 16px 24px;
 text-align: center;
 cursor: pointer;
 font-size: 15px;
 font-weight: 600;
 letter-spacing: 0.06em;
 color: var(--副文色);
 border-bottom: 2px solid transparent;
 transition: all 0.2s;
}
.切換組 .切換鈕.active {
 color: var(--強調色);
 border-bottom-color: var(--強調色);
}

/* ====================================================
 會員專區（側邊欄佈局）
==================================================== */
.會員佈局 {
 display: grid;
 grid-template-columns: 240px 1fr;
 gap: 48px;
 margin-top: 32px;
}
.側邊欄 {
 background: var(--底色-次);
 padding: 24px;
 border-radius: 8px;
 border: 1px solid var(--分隔色);
 align-self: start;
 position: sticky;
 top: 100px;
}
.側邊欄 .我的頭像 {
 width: 80px;
 height: 80px;
 border-radius: 50%;
 background: var(--卡片色);
 margin: 0 auto 16px;
 display: flex;
 align-items: center;
 justify-content: center;
 color: var(--強調色);
 font-size: 11px;
}
.側邊欄 .我的名字 { text-align: center; font-weight: 600; margin-bottom: 4px; }
.側邊欄 .我的Email { text-align: center; font-size: 13px; color: var(--副文色); margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--分隔色); }
.側邊欄 nav ul { list-style: none; }
.側邊欄 nav li { margin-bottom: 4px; }
.側邊欄 nav a {
 display: block;
 padding: 12px 16px;
 border-radius: 6px;
 font-size: 15px;
 color: var(--主文色);
 transition: all 0.2s;
}
.側邊欄 nav a:hover { background: var(--卡片色); color: var(--強調色); }
.側邊欄 nav a.active { background: var(--卡片色); color: var(--強調色); font-weight: 600; }

/* ====================================================
 購物車表格
==================================================== */
.購物清單 {
 background: var(--底色-次);
 border-radius: 8px;
 overflow: hidden;
 border: 1px solid var(--分隔色);
 margin-bottom: 32px;
}
.購物項 {
 display: grid;
 grid-template-columns: 80px 1fr auto auto;
 gap: 24px;
 align-items: center;
 padding: 24px;
 border-bottom: 1px solid var(--分隔色);
}
.購物項:last-child { border-bottom: none; }
.購物項 .縮圖 {
 width: 80px;
 height: 80px;
 background: var(--卡片色);
 border-radius: 6px;
 background-size: cover;
 background-position: center;
}
.購物項 .品項 h4 { font-size: 16px; margin-bottom: 4px; }
.購物項 .品項 .品項說明 { font-size: 13px; color: var(--副文色); }
.購物項 .項目價格 { font-size: 18px; font-weight: 700; color: var(--強調色); }
.購物項 .移除 {
 font-size: 13px;
 color: var(--警示色);
 cursor: pointer;
 background: none;
 border: none;
}

.訂單摘要 {
 background: var(--卡片色);
 padding: 32px;
 border-radius: 8px;
}
.訂單摘要 .項 {
 display: flex;
 justify-content: space-between;
 padding: 10px 0;
 font-size: 15px;
}
.訂單摘要 .項.總計 {
 font-size: 22px;
 font-weight: 700;
 color: var(--強調色);
 padding: 16px 0;
 border-top: 1px solid var(--分隔色);
 margin-top: 8px;
}

/* ====================================================
 文章詳情排版
==================================================== */
.文章主體 {
 max-width: 720px;
 margin: 0 auto;
 padding: 60px 0;
}
.文章標頭 { text-align: center; margin-bottom: 48px; }
.文章標頭 .分類標 {
 display: inline-block;
 margin-bottom: 16px;
}
.文章標頭 h1 {
 font-size: 40px;
 font-weight: 800;
 line-height: 1.4;
 margin-bottom: 24px;
 letter-spacing: 0.04em;
}
.文章標頭 .meta { font-size: 14px; color: var(--副文色); letter-spacing: 0.04em; }
.文章標頭 .meta span { margin: 0 6px; }
.文章封面 {
 width: 100%;
 aspect-ratio: 16/9;
 background: var(--卡片色);
 border-radius: 8px;
 margin-bottom: 48px;
 background-size: cover;
 background-position: center;
 display: flex;
 align-items: center;
 justify-content: center;
 color: var(--強調色);
}

.文章內文 { font-size: 17px; line-height: 2; color: var(--主文色); }
.文章內文 h2 {
 font-size: 26px;
 font-weight: 700;
 margin: 48px 0 20px;
 letter-spacing: 0.03em;
 padding-left: 14px;
 border-left: 4px solid var(--強調色);
}
.文章內文 h3 {
 font-size: 20px;
 font-weight: 700;
 margin: 32px 0 14px;
}
.文章內文 p { margin-bottom: 22px; }
.文章內文 ul, .文章內文 ol { margin: 0 0 22px 24px; }
.文章內文 li { margin-bottom: 8px; }
.文章內文 blockquote {
 border-left: 3px solid var(--強調色);
 background: var(--卡片色);
 padding: 24px 28px;
 margin: 32px 0;
 font-style: italic;
 color: var(--副文色);
 border-radius: 0 6px 6px 0;
}
.文章內文 a { color: var(--強調色); text-decoration: underline; }
.文章內文 img { margin: 32px 0; border-radius: 6px; }

.文章CTA {
 background: var(--卡片色);
 padding: 40px 32px;
 border-radius: 8px;
 margin: 48px 0;
 text-align: center;
}

/* ====================================================
 Footer
==================================================== */
footer {
 background: var(--主文色);
 color: var(--底色-次);
 padding: 80px 0 40px;
 margin-top: 80px;
}
footer .頁尾組 {
 display: grid;
 grid-template-columns: 2fr 1fr 1fr 1fr;
 gap: 48px;
 margin-bottom: 48px;
}
footer h4 {
 font-size: 14px;
 letter-spacing: 0.2em;
 color: var(--CTA色);
 margin-bottom: 20px;
 text-transform: uppercase;
}
footer .品牌欄 .logo {
 font-family: 'Italiana', 'Noto Serif TC', serif;
 font-size: 26px;
 font-weight: 600;
 letter-spacing: 0.04em;
 margin-bottom: 14px;
 display: inline-flex;
 align-items: center;
}
footer .品牌欄 .logo span {
 font-size: 0;
 width: 7px;
 height: 7px;
 border-radius: 50%;
 background: var(--spice色);
 margin: 0 10px;
 display: inline-block;
 flex: none;
}
footer .品牌欄 p { font-size: 14px; opacity: 0.7; line-height: 1.9; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 10px; }
footer ul a {
 font-size: 14px;
 opacity: 0.75;
 transition: opacity 0.2s;
}
footer ul a:hover { opacity: 1; color: var(--CTA色); }
footer .訂閱 input {
 width: 100%;
 padding: 10px 14px;
 border: 1px solid rgba(255,255,255,0.2);
 background: rgba(255,255,255,0.05);
 border-radius: 4px;
 color: var(--底色-次);
 font-size: 14px;
 margin-bottom: 10px;
 font-family: inherit;
}
footer .訂閱 input::placeholder { color: rgba(255,255,255,0.4); }
footer .訂閱 button {
 width: 100%;
 padding: 10px;
 background: var(--CTA色);
 color: var(--主文色);
 border: none;
 border-radius: 4px;
 font-weight: 600;
 cursor: pointer;
 font-family: inherit;
}
footer .頁尾底 {
 border-top: 1px solid rgba(255,255,255,0.1);
 padding-top: 24px;
 display: flex;
 justify-content: space-between;
 align-items: center;
 font-size: 13px;
 opacity: 0.6;
 flex-wrap: wrap;
 gap: 16px;
}
footer .頁尾底 .法律連結 a { margin: 0 8px; }

/* ====================================================
 公用工具
==================================================== */
.分頁 { display: flex; gap: 8px; justify-content: center; margin-top: 48px; }
.分頁 a {
 width: 40px;
 height: 40px;
 display: flex;
 align-items: center;
 justify-content: center;
 border: 1px solid var(--分隔色);
 border-radius: 6px;
 font-size: 14px;
 color: var(--主文色);
 transition: all 0.2s;
}
.分頁 a:hover, .分頁 a.active { background: var(--強調色); color: white; border-color: var(--強調色); }

.麵包屑 {
 font-size: 13px;
 color: var(--副文色);
 margin-bottom: 24px;
 letter-spacing: 0.04em;
}
.麵包屑 a:hover { color: var(--強調色); }
.麵包屑 span { margin: 0 8px; opacity: 0.5; }

.分隔 { height: 1px; background: var(--分隔色); margin: 32px 0; }

/* ====================================================
 FAQ 手風琴（常見問題頁）
==================================================== */
.FAQ搜尋 {
 max-width: 560px;
 margin: 0 auto 48px;
 position: relative;
}
.FAQ搜尋 input {
 width: 100%;
 padding: 16px 20px 16px 52px;
 border: 1px solid var(--分隔色);
 border-radius: 999px;
 background: var(--底色-次);
 font-size: 15px;
 font-family: inherit;
 color: var(--主文色);
 transition: border-color 0.2s, box-shadow 0.2s;
}
.FAQ搜尋 input:focus {
 outline: none;
 border-color: var(--強調色);
 box-shadow: 0 0 0 4px rgba(184, 152, 90, 0.1);
}
.FAQ搜尋::before {
 content: "";
 position: absolute;
 left: 22px;
 top: 50%;
 transform: translateY(-50%);
 font-size: 16px;
 opacity: 0.5;
}
.FAQ列 { max-width: 780px; margin: 0 auto; }
.FAQ群 { margin-bottom: 40px; }
.FAQ群 .群標題 {
 font-size: 14px;
 font-weight: 700;
 letter-spacing: 0.2em;
 color: var(--強調色);
 text-transform: uppercase;
 margin-bottom: 20px;
 padding-bottom: 12px;
 border-bottom: 1px solid var(--分隔色);
}
.FAQ項 {
 background: var(--底色-次);
 border: 1px solid var(--分隔色);
 border-radius: 8px;
 margin-bottom: 12px;
 overflow: hidden;
 transition: border-color 0.2s;
}
.FAQ項:hover { border-color: var(--強調色); }
.FAQ項 summary {
 padding: 20px 24px;
 cursor: pointer;
 font-size: 16px;
 font-weight: 600;
 letter-spacing: 0.02em;
 list-style: none;
 display: flex;
 justify-content: space-between;
 align-items: center;
 gap: 16px;
 color: var(--主文色);
}
.FAQ項 summary::-webkit-details-marker { display: none; }
.FAQ項 summary::after {
 content: "+";
 font-size: 24px;
 color: var(--強調色);
 font-weight: 300;
 transition: transform 0.3s;
 flex-shrink: 0;
}
.FAQ項[open] summary::after { transform: rotate(45deg); }
.FAQ項 .FAQ答 {
 padding: 0 24px 24px;
 color: var(--副文色);
 font-size: 15px;
 line-height: 1.9;
}
.FAQ項 .FAQ答 p { margin-bottom: 12px; }
.FAQ項 .FAQ答 p:last-child { margin-bottom: 0; }
.FAQ項 .FAQ答 ul, .FAQ項 .FAQ答 ol { margin: 0 0 12px 24px; }

/* ====================================================
 活動報名頁
==================================================== */
.活動標頭 {
 background: linear-gradient(135deg, var(--底色-次) 0%, var(--卡片色) 100%);
 padding: 80px 0;
 text-align: center;
 border-bottom: 1px solid var(--分隔色);
}
.活動標頭 .活動類型 {
 display: inline-block;
 padding: 6px 16px;
 background: var(--主文色);
 color: var(--CTA色);
 border-radius: 999px;
 font-size: 12px;
 letter-spacing: 0.2em;
 margin-bottom: 20px;
}
.活動標頭 h1 {
 font-size: 44px;
 font-weight: 800;
 line-height: 1.3;
 letter-spacing: 0.04em;
 margin-bottom: 16px;
 max-width: 800px;
 margin-left: auto;
 margin-right: auto;
}
.活動標頭 .副標 { color: var(--副文色); font-size: 18px; margin-bottom: 28px; }
.活動資訊列 {
 display: flex;
 justify-content: center;
 gap: 32px;
 flex-wrap: wrap;
 font-size: 15px;
 color: var(--主文色);
}
.活動資訊列 .資訊項 {
 display: flex;
 align-items: center;
 gap: 8px;
}
.活動資訊列 .資訊項 .icon { color: var(--強調色); font-size: 18px; }

.倒數計時 {
 display: flex;
 gap: 16px;
 justify-content: center;
 margin: 40px 0;
}
.倒數塊 {
 background: var(--底色-次);
 border: 1px solid var(--分隔色);
 border-radius: 8px;
 padding: 16px 20px;
 min-width: 88px;
 text-align: center;
}
.倒數塊 .數字 {
 font-size: 36px;
 font-weight: 800;
 color: var(--強調色);
 line-height: 1;
 letter-spacing: 0.04em;
 font-variant-numeric: tabular-nums;
}
.倒數塊 .單位 {
 font-size: 12px;
 letter-spacing: 0.15em;
 color: var(--副文色);
 margin-top: 8px;
 text-transform: uppercase;
}

.名額狀態 {
 display: inline-flex;
 align-items: center;
 gap: 10px;
 padding: 10px 20px;
 background: var(--底色-次);
 border: 1px solid var(--分隔色);
 border-radius: 999px;
 font-size: 14px;
 margin-bottom: 20px;
}
.名額狀態 .點 {
 width: 8px;
 height: 8px;
 border-radius: 50%;
 background: var(--成功色);
 box-shadow: 0 0 0 4px rgba(122, 147, 103, 0.15);
}
.名額狀態.剩少 .點 { background: var(--警示色); box-shadow: 0 0 0 4px rgba(196, 105, 79, 0.15); }
.名額狀態.額滿 .點 { background: var(--副文色); box-shadow: none; }

.活動雙欄 {
 display: grid;
 grid-template-columns: 1fr 420px;
 gap: 48px;
 align-items: start;
}
.活動內文 { font-size: 16px; line-height: 1.95; color: var(--主文色); }
.活動內文 h2 {
 font-size: 26px;
 font-weight: 700;
 margin: 36px 0 16px;
 letter-spacing: 0.03em;
 padding-left: 14px;
 border-left: 4px solid var(--強調色);
}
.活動內文 h2:first-child { margin-top: 0; }
.活動內文 p { margin-bottom: 18px; color: var(--副文色); }
.活動內文 ul { margin: 0 0 22px 22px; color: var(--副文色); }
.活動內文 li { margin-bottom: 10px; }
.活動流程 {
 background: var(--底色-次);
 border: 1px solid var(--分隔色);
 border-radius: 8px;
 padding: 24px 28px;
 margin: 24px 0;
}
.活動流程 .流程項 {
 display: grid;
 grid-template-columns: 96px 1fr;
 gap: 16px;
 padding: 14px 0;
 border-bottom: 1px dashed var(--分隔色);
 align-items: start;
}
.活動流程 .流程項:last-child { border-bottom: none; }
.活動流程 .時間 {
 font-weight: 700;
 color: var(--強調色);
 font-size: 14px;
 letter-spacing: 0.04em;
}
.活動流程 .內容 .主標 { font-weight: 600; margin-bottom: 4px; }
.活動流程 .內容 .補述 { font-size: 14px; color: var(--副文色); }

.報名卡 {
 background: var(--底色-次);
 border: 1px solid var(--分隔色);
 border-radius: 12px;
 padding: 32px;
 position: sticky;
 top: 100px;
}
.報名卡 .價格區 {
 text-align: center;
 padding-bottom: 24px;
 margin-bottom: 24px;
 border-bottom: 1px solid var(--分隔色);
}
.報名卡 .原價 {
 font-size: 15px;
 color: var(--副文色);
 text-decoration: line-through;
 margin-bottom: 6px;
}
.報名卡 .現價 {
 font-size: 36px;
 font-weight: 800;
 color: var(--強調色);
 letter-spacing: 0.02em;
}
.報名卡 .現價 .幣 { font-size: 16px; margin-right: 4px; }
.報名卡 .優惠標 {
 display: inline-block;
 margin-top: 8px;
 padding: 4px 12px;
 background: var(--警示色);
 color: white;
 border-radius: 999px;
 font-size: 12px;
 letter-spacing: 0.08em;
}
.報名卡 .含項 { list-style: none; margin-bottom: 24px; }
.報名卡 .含項 li {
 padding: 8px 0;
 font-size: 14px;
 color: var(--主文色);
 display: flex;
 gap: 10px;
 align-items: start;
}
.報名卡 .含項 li::before {
 content: "<svg class="圖示-勾" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" width="14" height="14"><polyline points="20 6 9 17 4 12"/></svg>";
 color: var(--成功色);
 font-weight: 700;
 flex-shrink: 0;
}
.報名卡 .主按鈕 { width: 100%; text-align: center; }
.報名卡 .安心 {
 text-align: center;
 font-size: 12px;
 color: var(--副文色);
 margin-top: 14px;
 letter-spacing: 0.04em;
}

/* ====================================================
 電子報落地頁
==================================================== */
.磁鐵英雄 {
 background: linear-gradient(180deg, var(--底色-次) 0%, var(--卡片色) 100%);
 padding: 100px 0 80px;
}
.磁鐵雙欄 {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 64px;
 align-items: center;
}
.磁鐵文案 .眉標 { margin-bottom: 20px; }
.磁鐵文案 h1 {
 font-size: 44px;
 font-weight: 800;
 line-height: 1.3;
 letter-spacing: 0.04em;
 margin-bottom: 24px;
}
.磁鐵文案 h1 .金字 { color: var(--強調色); }
.磁鐵文案 .描述 {
 font-size: 18px;
 color: var(--副文色);
 line-height: 1.9;
 margin-bottom: 28px;
}
.磁鐵文案 .含哪些 {
 list-style: none;
 margin-bottom: 32px;
}
.磁鐵文案 .含哪些 li {
 padding: 10px 0;
 font-size: 16px;
 display: flex;
 gap: 12px;
 align-items: start;
}
.磁鐵文案 .含哪些 li::before {
 content: "<svg class="圖示-勾" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" width="14" height="14"><polyline points="20 6 9 17 4 12"/></svg>";
 color: var(--成功色);
 font-weight: 700;
 font-size: 18px;
 flex-shrink: 0;
}
.磁鐵預覽 {
 position: relative;
}
.磁鐵預覽 .模擬PDF {
 background: var(--底色-次);
 border: 1px solid var(--分隔色);
 border-radius: 8px;
 aspect-ratio: 3/4;
 box-shadow: 0 40px 80px rgba(184, 152, 90, 0.2), 0 16px 32px rgba(0, 0, 0, 0.06);
 transform: rotate(-3deg);
 padding: 40px 32px;
 display: flex;
 flex-direction: column;
 justify-content: space-between;
 transition: transform 0.4s;
}
.磁鐵預覽 .模擬PDF:hover { transform: rotate(0); }
.模擬PDF .封面眉 {
 font-size: 11px;
 letter-spacing: 0.3em;
 color: var(--強調色);
 text-transform: uppercase;
}
.模擬PDF .封面標 {
 font-size: 32px;
 font-weight: 800;
 line-height: 1.3;
 margin: 20px 0;
}
.模擬PDF .封面線 {
 width: 60px;
 height: 3px;
 background: var(--強調色);
 margin: 16px 0;
}
.模擬PDF .封面副 {
 font-size: 14px;
 color: var(--副文色);
 line-height: 1.7;
}
.模擬PDF .封面底 {
 font-size: 12px;
 letter-spacing: 0.15em;
 color: var(--強調色);
 text-align: right;
}

.訂閱表單 {
 background: var(--底色-次);
 border: 1px solid var(--分隔色);
 border-radius: 12px;
 padding: 32px;
 margin-top: 24px;
 box-shadow: 0 12px 32px rgba(184, 152, 90, 0.08);
}
.訂閱表單 .表單組 input[type="email"] {
 font-size: 16px;
}
.訂閱表單 .主按鈕 { width: 100%; }
.信任列 {
 display: flex;
 gap: 32px;
 justify-content: center;
 flex-wrap: wrap;
 margin-top: 40px;
 padding-top: 32px;
 border-top: 1px solid var(--分隔色);
}
.信任項 { text-align: center; }
.信任項 .大數 {
 font-size: 32px;
 font-weight: 800;
 color: var(--強調色);
 letter-spacing: 0.02em;
}
.信任項 .說明 {
 font-size: 13px;
 color: var(--副文色);
 letter-spacing: 0.08em;
 margin-top: 4px;
}

/* ====================================================
 課程內部播放頁（學習區）
==================================================== */
.學習標頭 {
 background: var(--主文色);
 color: var(--底色-次);
 padding: 24px 0;
 border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.學習標頭 .容器 {
 display: flex;
 justify-content: space-between;
 align-items: center;
 gap: 24px;
 flex-wrap: wrap;
}
.學習標頭 .課程名 { font-size: 18px; font-weight: 600; letter-spacing: 0.04em; }
.學習標頭 .課程名 .回 {
 color: var(--CTA色);
 font-size: 14px;
 margin-right: 12px;
 opacity: 0.8;
}
.學習標頭 .進度條包 { flex: 1; max-width: 360px; }
.學習標頭 .進度文字 {
 display: flex;
 justify-content: space-between;
 font-size: 12px;
 opacity: 0.7;
 margin-bottom: 6px;
 letter-spacing: 0.06em;
}
.學習標頭 .進度條 {
 width: 100%;
 height: 6px;
 background: rgba(255, 255, 255, 0.1);
 border-radius: 999px;
 overflow: hidden;
}
.學習標頭 .進度填 {
 height: 100%;
 background: linear-gradient(90deg, var(--CTA色), var(--強調色));
 border-radius: 999px;
 transition: width 0.4s;
}

.學習佈局 {
 display: grid;
 grid-template-columns: 320px 1fr;
 gap: 32px;
 padding: 32px 0;
 align-items: start;
}
.章節列 {
 background: var(--底色-次);
 border: 1px solid var(--分隔色);
 border-radius: 10px;
 padding: 8px;
 position: sticky;
 top: 24px;
 max-height: calc(100vh - 48px);
 overflow-y: auto;
}
.章節 {
 margin-bottom: 4px;
}
.章節 .章節頭 {
 padding: 14px 16px;
 font-size: 13px;
 font-weight: 700;
 letter-spacing: 0.1em;
 color: var(--副文色);
 text-transform: uppercase;
 display: flex;
 justify-content: space-between;
 align-items: center;
}
.章節 .章節頭 .小進度 {
 font-size: 11px;
 color: var(--強調色);
 font-weight: 600;
 letter-spacing: 0.04em;
 text-transform: none;
}
.章節 ul { list-style: none; }
.章節 li a {
 display: grid;
 grid-template-columns: 24px 1fr auto;
 gap: 12px;
 align-items: center;
 padding: 12px 16px;
 border-radius: 6px;
 font-size: 14px;
 color: var(--主文色);
 transition: background 0.2s;
}
.章節 li a:hover { background: var(--卡片色); }
.章節 li a.目前 {
 background: var(--卡片色);
 color: var(--強調色);
 font-weight: 600;
}
.章節 li a .勾 {
 width: 18px;
 height: 18px;
 border-radius: 50%;
 border: 1.5px solid var(--分隔色);
 display: inline-flex;
 align-items: center;
 justify-content: center;
 font-size: 11px;
 color: white;
}
.章節 li a.完成 .勾 { background: var(--成功色); border-color: var(--成功色); }
.章節 li a.完成 .勾::before { content: "<svg class="圖示-勾" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" width="14" height="14"><polyline points="20 6 9 17 4 12"/></svg>"; }
.章節 li a .時長 { font-size: 12px; color: var(--副文色); }

.學習主區 { min-width: 0; }
.影片框 {
 aspect-ratio: 16/9;
 background: #000;
 border-radius: 10px;
 overflow: hidden;
 display: flex;
 align-items: center;
 justify-content: center;
 color: rgba(255, 255, 255, 0.5);
 font-size: 14px;
 letter-spacing: 0.1em;
}
.影片框 iframe { width: 100%; height: 100%; border: 0; }

.單元資訊 {
 background: var(--底色-次);
 border: 1px solid var(--分隔色);
 border-radius: 10px;
 padding: 28px 32px;
 margin-top: 24px;
}
.單元資訊 .單元眉 {
 font-size: 12px;
 letter-spacing: 0.2em;
 color: var(--強調色);
 text-transform: uppercase;
 margin-bottom: 8px;
}
.單元資訊 h1 {
 font-size: 26px;
 font-weight: 700;
 line-height: 1.4;
 letter-spacing: 0.03em;
 margin-bottom: 16px;
}
.單元工具列 {
 display: flex;
 gap: 12px;
 flex-wrap: wrap;
 padding: 16px 0;
 margin: 16px 0;
 border-top: 1px solid var(--分隔色);
 border-bottom: 1px solid var(--分隔色);
}
.單元工具列 button {
 border: 1px solid var(--分隔色);
 background: var(--底色-主);
 color: var(--主文色);
 padding: 10px 18px;
 border-radius: 999px;
 font-size: 13px;
 font-family: inherit;
 cursor: pointer;
 letter-spacing: 0.04em;
 transition: all 0.2s;
}
.單元工具列 button:hover { border-color: var(--強調色); color: var(--強調色); }
.單元工具列 button.完成 { background: var(--成功色); color: white; border-color: var(--成功色); }

.學習頁籤 {
 display: flex;
 gap: 0;
 border-bottom: 1px solid var(--分隔色);
 margin-bottom: 20px;
}
.學習頁籤 .頁籤鈕 {
 padding: 12px 20px;
 font-size: 14px;
 font-weight: 600;
 letter-spacing: 0.06em;
 color: var(--副文色);
 cursor: pointer;
 border-bottom: 2px solid transparent;
}
.學習頁籤 .頁籤鈕.active { color: var(--強調色); border-bottom-color: var(--強調色); }

.資料下載 .資料項 {
 display: flex;
 align-items: center;
 gap: 16px;
 padding: 14px 18px;
 border: 1px solid var(--分隔色);
 border-radius: 8px;
 margin-bottom: 10px;
 background: var(--底色-主);
 transition: border-color 0.2s;
}
.資料下載 .資料項:hover { border-color: var(--強調色); }
.資料下載 .資料項 .圖示 {
 width: 40px;
 height: 40px;
 background: var(--卡片色);
 border-radius: 6px;
 display: flex;
 align-items: center;
 justify-content: center;
 font-size: 18px;
}
.資料下載 .資料項 .名 { flex: 1; font-size: 15px; }
.資料下載 .資料項 .類 { font-size: 12px; color: var(--副文色); letter-spacing: 0.06em; }

.筆記區 textarea {
 width: 100%;
 min-height: 200px;
 padding: 16px 20px;
 border: 1px solid var(--分隔色);
 border-radius: 8px;
 background: var(--底色-主);
 font-family: inherit;
 font-size: 15px;
 line-height: 1.8;
 color: var(--主文色);
 resize: vertical;
}
.筆記區 textarea:focus { outline: none; border-color: var(--強調色); }
.筆記儲存 {
 margin-top: 12px;
 display: flex;
 justify-content: space-between;
 align-items: center;
}
.筆記儲存 .儲存提示 { font-size: 12px; color: var(--副文色); }

.討論列表 .討論項 {
 background: var(--底色-主);
 border: 1px solid var(--分隔色);
 border-radius: 8px;
 padding: 16px 20px;
 margin-bottom: 12px;
}
.討論列表 .發問者 {
 display: flex;
 align-items: center;
 gap: 12px;
 margin-bottom: 10px;
}
.討論列表 .小頭 {
 width: 36px;
 height: 36px;
 border-radius: 50%;
 background: var(--卡片色);
 display: flex;
 align-items: center;
 justify-content: center;
 font-size: 14px;
 color: var(--強調色);
 font-weight: 700;
}
.討論列表 .發問者 .名 { font-weight: 600; }
.討論列表 .發問者 .時 { font-size: 12px; color: var(--副文色); margin-left: auto; }
.討論列表 .問題 { color: var(--主文色); font-size: 15px; line-height: 1.8; }

.下一單元 {
 margin-top: 32px;
 background: var(--卡片色);
 border-radius: 10px;
 padding: 24px 32px;
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 24px;
 flex-wrap: wrap;
}
.下一單元 .下一資訊 .提示 {
 font-size: 12px;
 letter-spacing: 0.2em;
 color: var(--強調色);
 text-transform: uppercase;
 margin-bottom: 6px;
}
.下一單元 .下一資訊 .名 { font-size: 18px; font-weight: 700; }

/* ====================================================
 全站浮動 UI（Cookie / LINE / 回頁首 / 手機選單）
==================================================== */

/* Cookie 同意 banner */
.Cookie同意 {
 position: fixed;
 bottom: 24px;
 left: 24px;
 right: 24px;
 max-width: 720px;
 margin: 0 auto;
 background: var(--主文色);
 color: var(--底色-次);
 padding: 20px 24px;
 border-radius: 12px;
 box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
 z-index: 9999;
 display: none;
 align-items: center;
 gap: 20px;
 flex-wrap: wrap;
}
.Cookie同意.顯示 { display: flex; animation: 升起 0.4s ease; }
@keyframes 升起 { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.Cookie同意 .Cookie文 {
 flex: 1;
 min-width: 240px;
 font-size: 14px;
 line-height: 1.7;
 opacity: 0.95;
}
.Cookie同意 .Cookie文 a {
 color: var(--CTA色);
 text-decoration: underline;
}
.Cookie同意 .Cookie按鈕組 {
 display: flex;
 gap: 8px;
 flex-shrink: 0;
}
.Cookie同意 button {
 padding: 10px 20px;
 border-radius: 999px;
 font-size: 13px;
 font-family: inherit;
 cursor: pointer;
 letter-spacing: 0.04em;
 border: 1px solid rgba(255,255,255,0.3);
 background: transparent;
 color: var(--底色-次);
 transition: all 0.2s;
}
.Cookie同意 button:hover { background: rgba(255,255,255,0.1); }
.Cookie同意 button.主 {
 background: var(--CTA色);
 border-color: var(--CTA色);
 color: var(--主文色);
 font-weight: 600;
}
.Cookie同意 button.主:hover { background: var(--CTA深色); border-color: var(--CTA深色); }

/* LINE 浮動客服按鈕 */
.LINE浮動 {
 position: fixed;
 right: 20px;
 bottom: 90px;
 width: 60px;
 height: 60px;
 background: #06C755;
 color: white;
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 font-size: 28px;
 box-shadow: 0 8px 24px rgba(6, 199, 85, 0.4);
 z-index: 998;
 cursor: pointer;
 transition: transform 0.3s, box-shadow 0.3s;
 text-decoration: none;
}
.LINE浮動:hover {
 transform: scale(1.08) translateY(-2px);
 box-shadow: 0 12px 32px rgba(6, 199, 85, 0.55);
}
.LINE浮動 .LINE提示 {
 position: absolute;
 right: 72px;
 white-space: nowrap;
 background: var(--主文色);
 color: var(--底色-次);
 font-size: 13px;
 padding: 8px 14px;
 border-radius: 999px;
 opacity: 0;
 transform: translateX(10px);
 transition: all 0.3s;
 pointer-events: none;
 letter-spacing: 0.04em;
}
.LINE浮動:hover .LINE提示 { opacity: 1; transform: translateX(0); }

/* 回頁首按鈕 */
.回頁首 {
 position: fixed;
 right: 20px;
 bottom: 20px;
 width: 48px;
 height: 48px;
 background: var(--底色-次);
 color: var(--強調色);
 border: 1.5px solid var(--強調色);
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 font-size: 18px;
 font-weight: 700;
 box-shadow: 0 6px 16px rgba(184, 152, 90, 0.2);
 z-index: 997;
 cursor: pointer;
 opacity: 0;
 visibility: hidden;
 transform: translateY(10px);
 transition: all 0.3s;
 text-decoration: none;
}
.回頁首.顯示 { opacity: 1; visibility: visible; transform: translateY(0); }
.回頁首:hover { background: var(--強調色); color: white; }

/* 手機選單抽屜 */
.手機選單 {
 position: fixed;
 top: 0;
 right: 0;
 width: 280px;
 max-width: 85vw;
 height: 100vh;
 background: var(--底色-次);
 box-shadow: -8px 0 30px rgba(0,0,0,0.12);
 z-index: 1001;
 transform: translateX(100%);
 transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
 padding: 80px 32px 32px;
 overflow-y: auto;
}
.手機選單.開啟 { transform: translateX(0); }
.手機選單 ul { list-style: none; }
.手機選單 li {
 border-bottom: 1px solid var(--分隔色);
}
.手機選單 li a {
 display: block;
 padding: 16px 0;
 font-size: 16px;
 letter-spacing: 0.06em;
 color: var(--主文色);
 font-weight: 500;
}
.手機選單 li a:hover { color: var(--強調色); }
.手機選單 .關閉鈕 {
 position: absolute;
 top: 24px;
 right: 24px;
 width: 36px;
 height: 36px;
 background: var(--卡片色);
 border: none;
 border-radius: 50%;
 font-size: 18px;
 cursor: pointer;
 color: var(--主文色);
}
.手機選單 .手機CTA {
 margin-top: 28px;
 padding-top: 24px;
 border-top: 1px solid var(--分隔色);
}
.手機選單 .手機CTA .主按鈕 { width: 100%; text-align: center; }
.手機選單背景 {
 position: fixed;
 inset: 0;
 background: rgba(45, 37, 32, 0.5);
 backdrop-filter: blur(4px);
 z-index: 1000;
 opacity: 0;
 visibility: hidden;
 transition: all 0.3s;
}
.手機選單背景.顯示 { opacity: 1; visibility: visible; }

/* ====================================================
 CRO 元件：見證、信任徽章、Sticky CTA
==================================================== */

/* 見證卡片 */
.見證卡 {
 background: var(--底色-次);
 border: 1px solid var(--分隔色);
 border-radius: 10px;
 padding: 28px 32px;
 text-align: left;
 position: relative;
 transition: all 0.3s;
}
.見證卡:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(184, 152, 90, 0.12); border-color: var(--強調色); }
.見證卡 .引號 {
 position: absolute;
 top: 16px;
 right: 24px;
 font-size: 48px;
 color: var(--卡片色);
 font-family: Georgia, serif;
 line-height: 1;
}
.見證卡 .見證內容 {
 font-size: 15px;
 line-height: 1.95;
 color: var(--主文色);
 margin-bottom: 20px;
 position: relative;
 z-index: 1;
}
.見證卡 .見證成果 {
 background: var(--卡片色);
 padding: 12px 16px;
 border-radius: 6px;
 font-size: 14px;
 color: var(--主文色);
 margin-bottom: 20px;
 border-left: 3px solid var(--成功色);
}
.見證卡 .見證成果 strong { color: var(--成功色); }
.見證卡 .見證人 {
 display: flex;
 align-items: center;
 gap: 12px;
 padding-top: 16px;
 border-top: 1px solid var(--分隔色);
}
.見證卡 .見證人頭 {
 width: 48px;
 height: 48px;
 border-radius: 50%;
 background: var(--卡片色);
 display: flex;
 align-items: center;
 justify-content: center;
 font-weight: 700;
 color: var(--強調色);
 font-size: 16px;
 flex-shrink: 0;
 background-size: cover;
 background-position: center;
}
.見證卡 .見證人資 .名 { font-weight: 600; font-size: 15px; }
.見證卡 .見證人資 .職 { font-size: 12px; color: var(--副文色); letter-spacing: 0.04em; }
.見證卡 .星評 { color: #F5B500; font-size: 14px; margin-bottom: 12px; letter-spacing: 0.1em; }

/* 信任徽章列 */
.信任徽章列 {
 display: flex;
 gap: 16px;
 justify-content: center;
 flex-wrap: wrap;
 margin: 32px 0;
}
.信任徽章 {
 display: inline-flex;
 align-items: center;
 gap: 10px;
 padding: 12px 20px;
 background: var(--底色-次);
 border: 1px solid var(--分隔色);
 border-radius: 999px;
 font-size: 13px;
 font-weight: 600;
 letter-spacing: 0.04em;
 color: var(--主文色);
}
.信任徽章 .圖 {
 font-size: 18px;
 color: var(--成功色);
}

/* 媒體 / 合作 logo 牆 */
.媒體牆 {
 display: grid;
 grid-template-columns: repeat(6, 1fr);
 gap: 32px;
 align-items: center;
 margin: 40px 0;
 padding: 32px 0;
 border-top: 1px solid var(--分隔色);
 border-bottom: 1px solid var(--分隔色);
}
.媒體項 {
 text-align: center;
 font-size: 14px;
 font-weight: 700;
 letter-spacing: 0.1em;
 color: var(--副文色);
 opacity: 0.6;
 transition: opacity 0.2s;
 text-transform: uppercase;
}
.媒體項:hover { opacity: 1; color: var(--主文色); }
@media (max-width: 980px) { .媒體牆 { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (max-width: 720px) { .媒體牆 { grid-template-columns: repeat(2, 1fr); } }

/* 數字成就列 */
.成就列 {
 display: grid;
 grid-template-columns: repeat(4, 1fr);
 gap: 32px;
 text-align: center;
 padding: 40px 0;
}
.成就項 .大數 {
 font-size: 44px;
 font-weight: 800;
 color: var(--強調色);
 letter-spacing: 0.02em;
 line-height: 1;
 font-variant-numeric: tabular-nums;
}
.成就項 .大數 .單位 { font-size: 22px; margin-left: 4px; }
.成就項 .說明 {
 font-size: 13px;
 color: var(--副文色);
 margin-top: 12px;
 letter-spacing: 0.08em;
 text-transform: uppercase;
}
@media (max-width: 720px) { .成就列 { grid-template-columns: repeat(2, 1fr); gap: 24px; } .成就項 .大數 { font-size: 36px; } }

/* 退費保證徽章 */
.保證徽章 {
 display: inline-flex;
 align-items: center;
 gap: 12px;
 padding: 16px 24px;
 background: linear-gradient(135deg, rgba(122, 147, 103, 0.1) 0%, rgba(122, 147, 103, 0.05) 100%);
 border: 1.5px solid var(--成功色);
 border-radius: 10px;
 margin: 16px 0;
}
.保證徽章 .保證圖 {
 width: 48px;
 height: 48px;
 background: var(--成功色);
 color: white;
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 font-size: 22px;
 flex-shrink: 0;
}
.保證徽章 .保證文 .主 { font-weight: 700; font-size: 15px; color: var(--主文色); }
.保證徽章 .保證文 .副 { font-size: 13px; color: var(--副文色); margin-top: 2px; }

/* Sticky 購買 CTA（手機顯眼） */
.Sticky購買 {
 position: fixed;
 bottom: 0;
 left: 0;
 right: 0;
 background: var(--底色-次);
 border-top: 1px solid var(--分隔色);
 box-shadow: 0 -8px 24px rgba(0,0,0,0.08);
 padding: 12px 20px;
 display: none;
 justify-content: space-between;
 align-items: center;
 gap: 16px;
 z-index: 50;
}
.Sticky購買 .Sticky價格 {
 font-size: 20px;
 font-weight: 800;
 color: var(--強調色);
}
.Sticky購買 .Sticky價格 .原 {
 font-size: 13px;
 color: var(--副文色);
 text-decoration: line-through;
 margin-right: 8px;
 font-weight: 400;
}
.Sticky購買 .主按鈕 { padding: 12px 24px; font-size: 14px; }
@media (max-width: 720px) {
 .Sticky購買.啟用 { display: flex; }
 body.有Sticky { padding-bottom: 80px; }
}

/* 試聽片段區 */
.試聽區 {
 background: linear-gradient(135deg, var(--底色-次) 0%, var(--卡片色) 100%);
 border: 1px solid var(--分隔色);
 border-radius: 12px;
 padding: 40px 32px;
 margin: 32px 0;
 display: grid;
 grid-template-columns: 1.2fr 1fr;
 gap: 32px;
 align-items: center;
}
.試聽影片 {
 aspect-ratio: 16/9;
 background: #000;
 border-radius: 8px;
 display: flex;
 align-items: center;
 justify-content: center;
 color: rgba(255,255,255,0.5);
 font-size: 13px;
 position: relative;
 cursor: pointer;
}
.試聽影片::before {
 content: "▶";
 position: absolute;
 width: 64px;
 height: 64px;
 background: rgba(201, 169, 97, 0.95);
 color: white;
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 font-size: 22px;
 padding-left: 4px;
 transition: transform 0.3s;
}
.試聽影片:hover::before { transform: scale(1.1); }
.試聽文 .眉標 { margin-bottom: 12px; }
.試聽文 h3 { font-size: 24px; margin-bottom: 12px; letter-spacing: 0.03em; }
.試聽文 p { color: var(--副文色); font-size: 15px; line-height: 1.9; margin-bottom: 16px; }
.試聽文 .試聽資訊 {
 display: flex;
 gap: 16px;
 flex-wrap: wrap;
 font-size: 13px;
 color: var(--副文色);
}
.試聽文 .試聽資訊 span::before { content: "•"; margin-right: 6px; color: var(--強調色); }
@media (max-width: 720px) { .試聽區 { grid-template-columns: 1fr; padding: 28px 20px; } }

/* 課程測驗頁專屬 */
.測驗框 {
 max-width: 720px;
 margin: 0 auto;
 background: var(--底色-次);
 border: 1px solid var(--分隔色);
 border-radius: 14px;
 padding: 48px 40px;
 box-shadow: 0 16px 40px rgba(184, 152, 90, 0.08);
}
.測驗進度 {
 display: flex;
 justify-content: space-between;
 align-items: center;
 margin-bottom: 28px;
 font-size: 13px;
 letter-spacing: 0.08em;
 color: var(--副文色);
}
.測驗進度條 {
 flex: 1;
 height: 6px;
 background: var(--分隔色);
 border-radius: 999px;
 margin: 0 16px;
 overflow: hidden;
}
.測驗進度填 {
 height: 100%;
 background: linear-gradient(90deg, var(--CTA色), var(--強調色));
 border-radius: 999px;
 transition: width 0.4s ease;
}
.測驗題 h2 {
 font-size: 26px;
 font-weight: 700;
 letter-spacing: 0.03em;
 margin-bottom: 24px;
 line-height: 1.5;
}
.測驗選項 {
 display: flex;
 flex-direction: column;
 gap: 12px;
 margin-bottom: 32px;
}
.測驗選項 button {
 text-align: left;
 padding: 18px 22px;
 border: 1.5px solid var(--分隔色);
 background: var(--底色-主);
 border-radius: 10px;
 font-family: inherit;
 font-size: 15px;
 color: var(--主文色);
 cursor: pointer;
 transition: all 0.2s;
 line-height: 1.6;
}
.測驗選項 button:hover {
 border-color: var(--強調色);
 background: var(--卡片色);
 transform: translateX(4px);
}
.測驗結果 {
 text-align: center;
 padding: 24px 0;
}
.測驗結果 .結果眉 {
 font-size: 13px;
 letter-spacing: 0.2em;
 color: var(--強調色);
 margin-bottom: 16px;
 text-transform: uppercase;
}
.測驗結果 h2 { font-size: 32px; margin-bottom: 16px; letter-spacing: 0.03em; }
.測驗結果 .結果說明 { color: var(--副文色); font-size: 16px; line-height: 1.9; margin-bottom: 32px; }

/* ====================================================
 響應式（手機版）
==================================================== */
@media (max-width: 980px) {
 .卡片格網 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
 .卡片格網.四欄 { grid-template-columns: repeat(2, 1fr); }
 footer .頁尾組 { grid-template-columns: 1fr 1fr; gap: 32px; }
 .會員佈局 { grid-template-columns: 1fr; gap: 24px; }
 .側邊欄 { position: static; }
}
@media (max-width: 720px) {
 body { font-size: 16px; }
 .容器 { padding: 0 20px; }
 .英雄區 h1 { font-size: 36px; }
 .英雄區 .副標 { font-size: 17px; }
 .區段標題 { font-size: 28px; }
 .頁面標頭 h1 { font-size: 30px; }
 section { padding: 70px 0; }
 .英雄區 { padding: 80px 0 60px; }
 .卡片格網, .卡片格網.兩欄, .卡片格網.四欄 { grid-template-columns: 1fr; gap: 20px; }
 .導覽 nav { display: none; }
 .漢堡按鈕 { display: block; }
 footer .頁尾組 { grid-template-columns: 1fr; }
 .購物項 { grid-template-columns: 60px 1fr; gap: 12px; padding: 16px; }
 .購物項 .縮圖 { width: 60px; height: 60px; }
 .購物項 .項目價格, .購物項 .移除 { grid-column: 2; }
 .文章標頭 h1 { font-size: 28px; }
 .文章內文 h2 { font-size: 22px; }
 .活動雙欄 { grid-template-columns: 1fr; gap: 32px; }
 .報名卡 { position: static; }
 .磁鐵雙欄 { grid-template-columns: 1fr; gap: 40px; }
 .磁鐵文案 h1 { font-size: 32px; }
 .磁鐵預覽 .模擬PDF { max-width: 320px; margin: 0 auto; transform: rotate(0); }
 .學習佈局 { grid-template-columns: 1fr; gap: 20px; }
 .章節列 { position: static; max-height: none; }
 .活動標頭 h1 { font-size: 30px; }
 .活動標頭 .倒數塊 { min-width: 70px; padding: 12px 14px; }
 .活動標頭 .倒數塊 .數字 { font-size: 28px; }
 .學習標頭 .容器 { flex-direction: column; align-items: flex-start; }
 .學習標頭 .進度條包 { width: 100%; max-width: none; }
}

/* ====================================================
 暗色模式（v26 加；由 設定.js 注入 data-theme="dark"）
 ==================================================== */
[data-theme="dark"] {
 --底色-主: #1A1613;
 --底色-次: #221D19;
 --主文色: #F2EAD8;
 --副文色: #A89986;
 --強調色: #D4B878;
 --CTA色: #E0BF7A;
 --CTA深色: #C4A05C;
 --分隔色: #3A3026;
 --卡片色: #2A231D;
 --成功色: #92AD7D;
 --警示色: #D68567;
 color-scheme: dark;
}
[data-theme="dark"] body { background: var(--底色-主); color: var(--主文色); }
[data-theme="dark"] img:not([src*="logo"]):not(.no-dim) { filter: brightness(.92) contrast(.96); }
[data-theme="dark"] [style*="background-image"] { filter: brightness(.88) contrast(.95); }
[data-theme="dark"] .主題切換 { background: var(--底色-次); border-color: var(--分隔色); }
@media (prefers-color-scheme: dark) {
 html:not([data-theme="light"]) {
 color-scheme: dark;
 }
}

/* ====================================================
   a11y v34：skip-to-content + focus-visible
   ==================================================== */
.跳過導航 {
  position: absolute;
  top: -100px; left: 16px;
  background: var(--強調色); color: var(--底色-主);
  padding: 10px 20px; border-radius: 0 0 8px 8px;
  z-index: 10000; font-size: 14px; letter-spacing: 0.06em;
  text-decoration: none;
  transition: top .15s ease;
}
.跳過導航:focus { top: 0; outline: 2px solid var(--主文色); outline-offset: 2px; }
/* 鍵盤聚焦明顯，滑鼠點不要框 */
*:focus { outline: 0; }
*:focus-visible { outline: 2px solid var(--強調色); outline-offset: 3px; border-radius: 2px; }
button:focus-visible, a:focus-visible, [role="button"]:focus-visible, summary:focus-visible {
  outline-color: var(--強調色); outline-offset: 3px;
}

/* ====================================================
   部落格 AEO 強化（v38.4 統一抽到全站樣式）
==================================================== */
.重點摘要 {
  background: linear-gradient(135deg, var(--底色-次) 0%, #F2EFE6 100%);
  border-left: 4px solid var(--強調色);
  padding: 28px 32px;
  margin: 0 0 40px;
  border-radius: 0 6px 6px 0;
}
.重點摘要 .label {
  font-size: 11px;
  letter-spacing: .32em;
  color: var(--強調色);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}
.重點摘要 ul { list-style: none; padding: 0; margin: 0; }
.重點摘要 li {
  padding: 7px 0 7px 26px;
  position: relative;
  font-size: 15px;
  line-height: 1.7;
  color: var(--主文色);
}
.重點摘要 li::before {
  content: "●";
  position: absolute;
  left: 4px;
  top: 7px;
  color: var(--強調色);
  font-size: 10px;
}
.重點摘要 li strong { color: var(--強調色); font-weight: 700; }

/* ====================================================
   文末轉化卡（blog → 課程內鏈漏斗）
==================================================== */
.文末轉化 {
  padding: 72px 0;
  background: linear-gradient(180deg, var(--底色) 0%, var(--底色-次) 100%);
}
.文末轉化卡 {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 0;
  align-items: stretch;
  background: var(--底色);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,.05);
}
.文末轉化文 {
  padding: 52px 52px 52px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.文末轉化文 .眉標 {
  margin-bottom: 14px;
}
.文末轉化文 h2 {
  font-size: 30px;
  line-height: 1.4;
  margin: 0 0 18px;
  letter-spacing: 0.01em;
}
.文末轉化文 p {
  font-size: 15px;
  color: var(--副文色);
  line-height: 1.85;
  margin: 0 0 30px;
}
.文末轉化動作 {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.文末轉化圖 {
  display: block;
  background-size: cover;
  background-position: center;
  min-height: 300px;
  transition: transform .6s ease;
}
.文末轉化圖:hover { transform: scale(1.03); }
@media (max-width: 768px) {
  .文末轉化 { padding: 48px 0; }
  .文末轉化卡 { grid-template-columns: 1fr; }
  .文末轉化文 { padding: 36px 28px; }
  .文末轉化文 h2 { font-size: 22px; }
  .文末轉化圖 { min-height: 220px; order: -1; }
}
