/* ========================================
   first-page 首頁專屬樣式
   紀謙的自在空間 - 黃金圈架構首頁
   配色主題：深紫金色 (Purple-Gold)
   
   字體規格繼承自 global-style.css：
   - H1: --text-5xl (3rem = 48px)
   - H2: --text-4xl (2.25rem = 36px)
   - H3: --text-xl ~ --text-2xl (1.25-1.5rem)
   - 內文: --text-base (1rem = 16px)
   - 大內文: --text-lg (1.125rem = 18px)
   - 行高: --leading-relaxed (1.8)
   ======================================== */

/* ========== 頁面專屬配色變數 ========== */
:root {
    /* 主色調 - 紫金漸層 */
    --gradient-hero: linear-gradient(160deg, #2d1b3d 0%, #4a1c6b 40%, #3a1555 100%);
    --gradient-purple: linear-gradient(135deg, #6b2d9b 0%, #9b59b6 100%);
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    
    /* 紫色系 */
    --purple-dark: #4a1c6b;
    --purple-main: #6b2d9b;
    --purple-light: #9b59b6;
    --purple-soft: #d4a5e8;
    --purple-pale: #f3e5f9;
    
    /* 金色系 */
    --gold-dark: #b8860b;
    --gold-main: #d4af37;
    --gold-light: #f4d03f;
    --gold-soft: #fef3c7;
    
    /* 背景色 */
    --bg-light: #faf8fc;
    --bg-white: #ffffff;
    --bg-warm: #fdfbf7;
    
    /* 文字色 */
    --text-dark: #2d1b3d;
    --text-gray: #5c4a6e;
    --text-light: #8b7a9e;
    --white: #ffffff;
    
    /* 其他 */
    --border-light: rgba(74, 28, 107, 0.08);
    --shadow-soft: 0 8px 30px rgba(45, 27, 61, 0.08);
    --shadow-purple: 0 10px 40px rgba(107, 45, 155, 0.15);
    --shadow-gold: 0 10px 40px rgba(212, 175, 55, 0.25);
}

/* ========== 頁面基礎設定 ========== */
body {
    color: var(--text-dark);
    background: var(--bg-light);
}

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

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: var(--container-2xl);
    margin: 0 auto;
    padding: 0 var(--space-5);
}

/* ========== 共用元件 ========== */
.section-label {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    letter-spacing: 0.1em;
    color: var(--gold-main);
    text-transform: uppercase;
    margin-bottom: var(--space-4);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--purple-main);
    font-weight: var(--font-medium);
    font-size: var(--text-base);
    transition: all var(--transition-normal) var(--ease-out);
    border-bottom: 1px solid transparent;
}

.text-link:hover {
    color: var(--gold-dark);
    gap: var(--space-3);
    border-bottom-color: var(--gold-dark);
}

/* ========== 滾動動畫 ========== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ===========================================================
   HERO SECTION
   =========================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px var(--space-5) var(--space-16);
    position: relative;
    background: var(--gradient-hero);
    color: var(--white);
    overflow: hidden;
}

/* 星空裝飾 */
.hero-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    color: rgba(212, 175, 55, 0.35);
    animation: twinkle 3s ease-in-out infinite;
    font-size: 14px;
}

.star-1 { top: 12%; left: 8%; }
.star-2 { top: 25%; right: 12%; animation-delay: 0.8s; color: rgba(212, 175, 55, 0.25); font-size: 10px; }
.star-3 { top: 18%; right: 25%; animation-delay: 1.6s; color: rgba(212, 175, 55, 0.2); font-size: 18px; }
.star-4 { bottom: 30%; left: 18%; animation-delay: 2.4s; color: rgba(255, 255, 255, 0.2); font-size: 8px; }
.star-5 { bottom: 22%; right: 15%; animation-delay: 0.4s; color: rgba(212, 175, 55, 0.3); font-size: 12px; }
.star-6 { top: 55%; left: 6%; animation-delay: 1.2s; color: rgba(155, 89, 182, 0.2); font-size: 16px; }
.star-7 { top: 40%; right: 8%; animation-delay: 2s; color: rgba(212, 175, 55, 0.25); font-size: 10px; }
.star-8 { bottom: 40%; left: 25%; animation-delay: 0.6s; color: rgba(255, 255, 255, 0.15); font-size: 12px; }
.star-9 { top: 65%; right: 30%; animation-delay: 1.8s; color: rgba(212, 175, 55, 0.2); font-size: 14px; }
.star-10 { bottom: 15%; left: 40%; animation-delay: 2.2s; color: rgba(155, 89, 182, 0.15); font-size: 8px; }
.star-11 { top: 35%; left: 35%; animation-delay: 1s; color: rgba(212, 175, 55, 0.18); font-size: 10px; }
.star-12 { bottom: 35%; right: 40%; animation-delay: 2.6s; color: rgba(255, 255, 255, 0.12); font-size: 12px; }

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.8) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.15) rotate(15deg); }
}

/* 星座連線 */
.hero-constellation {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* 漂浮粒子 */
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    border-radius: var(--radius-circle);
    opacity: 0;
    animation: floatP 8s ease-in-out infinite;
}

.particle-1 { width: 6px; height: 6px; background: rgba(212, 175, 55, 0.4); top: 20%; left: 15%; }
.particle-2 { width: 4px; height: 4px; background: rgba(155, 89, 182, 0.3); top: 60%; right: 20%; animation-delay: 1.5s; }
.particle-3 { width: 8px; height: 8px; background: rgba(212, 175, 55, 0.25); bottom: 25%; left: 30%; animation-delay: 3s; }
.particle-4 { width: 5px; height: 5px; background: rgba(255, 255, 255, 0.15); top: 35%; right: 35%; animation-delay: 4.5s; }
.particle-5 { width: 3px; height: 3px; background: rgba(212, 175, 55, 0.35); top: 70%; left: 60%; animation-delay: 6s; }

@keyframes floatP {
    0%, 100% { opacity: 0; transform: translateY(0) scale(1); }
    20% { opacity: 1; }
    50% { opacity: 0.6; transform: translateY(-30px) scale(1.3); }
    80% { opacity: 0.8; }
}

/* Hero 內容容器 */
.hero-container {
    max-width: var(--container-md);
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero-content {
    text-align: center;
}

/* Hero 小標語：--text-base */
.hero-whisper {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--space-6);
    letter-spacing: 0.05em;
    min-height: 1.6em;
    opacity: 0;
}

/* Hero H1：--text-5xl */
.hero h1 {
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-8);
    color: var(--white);
}

.hero-line {
    width: 60px;
    height: 2px;
    background: var(--gold-main);
    margin: 0 auto var(--space-8);
    opacity: 0.7;
}

/* Hero 引言：--text-lg */
.hero-quote {
    font-size: var(--text-lg);
    line-height: var(--leading-loose);
    color: rgba(255, 255, 255, 0.85);
    font-weight: var(--font-light);
    margin-bottom: var(--space-5);
}

/* Hero 作者：--text-sm */
.hero-author {
    font-size: var(--text-sm);
    color: var(--gold-main);
    font-weight: var(--font-medium);
    letter-spacing: 0.08em;
}

.scroll-hint {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    color: rgba(255, 255, 255, 0.35);
    font-size: var(--text-xs);
    letter-spacing: 0.15em;
    z-index: 10;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(212, 175, 55, 0.6), transparent);
    animation: scrollP 2s ease-in-out infinite;
}

@keyframes scrollP {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}


/* ===========================================================
   PAIN POINTS SECTION
   =========================================================== */
.pain-points {
    padding: var(--space-24) 0;
    background: var(--bg-warm);
}

.pain-intro {
    text-align: center;
    margin-bottom: var(--space-12);
}

/* 痛點引言：--text-xl */
.pain-lead {
    font-size: var(--text-xl);
    color: var(--text-gray);
    font-weight: var(--font-light);
    line-height: var(--leading-relaxed);
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    max-width: var(--container-lg);
    margin: 0 auto var(--space-12);
}

.pain-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-8) var(--space-6);
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.pain-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-purple);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.pain-card:hover {
    box-shadow: var(--shadow-purple);
    transform: translateY(-5px);
}

.pain-card:hover::before {
    opacity: 1;
}

.pain-icon {
    margin-bottom: var(--space-4);
}

.pain-icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--purple-soft);
}

/* 痛點卡片文字：--text-base */
.pain-card p {
    font-size: var(--text-base);
    color: var(--text-gray);
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* 痛點結語：--text-xl */
.pain-closing {
    text-align: center;
    font-size: var(--text-xl);
    color: var(--text-dark);
    line-height: var(--leading-loose);
    font-weight: var(--font-light);
}

.pain-closing strong {
    color: var(--purple-main);
    font-weight: var(--font-semibold);
}


/* ===========================================================
   STORY SECTION
   =========================================================== */
.story {
    padding: var(--space-24) 0;
    background: var(--bg-white);
}

.story-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: var(--space-16);
    align-items: center;
}

.story-image-frame {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.story-image-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(212, 175, 55, 0.2);
    pointer-events: none;
}

.story-image-frame img {
    width: 100%;
    height: auto;
    display: block;
}

/* 故事標題：--text-4xl */
.story-content h2 {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--text-dark);
    margin-bottom: var(--space-6);
    line-height: var(--leading-tight);
}

/* 故事內文：--text-base */
.story-text p {
    font-size: var(--text-base);
    color: var(--text-gray);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
}

/* 故事轉折：--text-lg */
.story-turning {
    color: var(--purple-main);
    font-weight: var(--font-medium);
    font-size: var(--text-lg);
    margin-top: var(--space-6);
    padding-left: var(--space-5);
    border-left: 3px solid var(--gold-main);
}

.story-content .text-link {
    margin-top: var(--space-5);
}


/* ===========================================================
   PHILOSOPHY SECTION
   =========================================================== */
.philosophy {
    padding: var(--space-24) 0;
    background: var(--bg-warm);
}

.philosophy-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

/* 哲學標題：--text-4xl */
.philosophy-header h2 {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--text-dark);
    margin-bottom: var(--space-5);
    line-height: var(--leading-tight);
}

/* 哲學簡介：--text-base */
.philosophy-intro {
    font-size: var(--text-base);
    color: var(--text-gray);
    line-height: var(--leading-relaxed);
    max-width: var(--container-sm);
    margin: 0 auto;
}

.beliefs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin-bottom: var(--space-16);
}

.belief-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal) var(--ease-out);
}

.belief-card:hover {
    box-shadow: var(--shadow-purple);
    transform: translateY(-5px);
}

/* 信念編號：--text-5xl */
.belief-number {
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    color: var(--purple-pale);
    line-height: 1;
    margin-bottom: var(--space-3);
}

/* 信念標題：--text-lg */
.belief-card h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-dark);
    margin-bottom: var(--space-4);
    line-height: var(--leading-snug);
}

/* 信念內文：--text-sm */
.belief-card p {
    font-size: var(--text-sm);
    color: var(--text-gray);
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* Journey Model */
.journey-model {
    max-width: var(--container-md);
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--space-10) var(--space-8);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
}

.journey-header {
    text-align: center;
    margin-bottom: var(--space-10);
}

/* Journey 標題：--text-2xl */
.journey-header h3 {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--text-dark);
    margin-bottom: var(--space-2);
}

/* Journey 副標題：--text-sm */
.journey-header p {
    font-size: var(--text-sm);
    color: var(--text-light);
    margin: 0;
}

.journey-steps {
    display: flex;
    flex-direction: column;
}

.journey-step {
    display: flex;
    gap: var(--space-5);
    align-items: flex-start;
}

.journey-step-marker {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: var(--radius-circle);
    background: var(--purple-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.journey-step:hover .journey-step-marker {
    background: var(--gradient-purple);
}

.journey-step-marker svg {
    width: 22px;
    height: 22px;
    stroke: var(--purple-main);
    transition: all var(--transition-normal);
}

.journey-step:hover .journey-step-marker svg {
    stroke: var(--white);
}

/* Journey Step 標題：--text-base */
.journey-step-content h4 {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--text-dark);
    margin-bottom: var(--space-1);
}

/* Journey Step 內文：--text-sm */
.journey-step-content p {
    font-size: var(--text-sm);
    color: var(--text-gray);
    line-height: var(--leading-relaxed);
    margin: 0;
}

.journey-connector {
    width: 2px;
    height: 24px;
    background: linear-gradient(to bottom, var(--purple-pale), var(--gold-soft));
    margin-left: 24px;
}

.journey-promise {
    text-align: center;
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-light);
}

/* Journey Promise：--text-base */
.journey-promise p {
    font-size: var(--text-base);
    color: var(--purple-main);
    font-weight: var(--font-medium);
    line-height: var(--leading-loose);
    font-style: italic;
    margin: 0;
}


/* ===========================================================
   ROADMAP SECTION
   =========================================================== */
.roadmap {
    padding: var(--space-24) 0;
    background: linear-gradient(180deg, var(--purple-pale) 0%, var(--bg-white) 100%);
}

.roadmap-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

/* Roadmap 標題：--text-4xl */
.roadmap-header h2 {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--purple-dark);
    margin-bottom: var(--space-3);
    line-height: var(--leading-tight);
}

/* Roadmap 副標題：--text-lg */
.roadmap-header p {
    font-size: var(--text-lg);
    color: var(--text-gray);
    max-width: var(--container-sm);
    margin: 0 auto;
}

.roadmap-steps {
    max-width: var(--container-lg);
    margin: 0 auto;
    position: relative;
}

/* 連接線 */
.roadmap-steps::before {
    content: '';
    position: absolute;
    left: 36px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--gold-main), var(--purple-light), var(--gold-main));
    border-radius: 3px;
}

.roadmap-step {
    display: flex;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
    position: relative;
}

.roadmap-step:last-child {
    margin-bottom: 0;
}

.roadmap-step-number {
    width: 72px;
    height: 72px;
    min-width: 72px;
    background: var(--gradient-gold);
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--purple-dark);
    box-shadow: var(--shadow-gold);
    position: relative;
    z-index: 2;
}

.roadmap-step-content {
    flex: 1;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal) var(--ease-out);
}

.roadmap-step-content:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-main);
}

.roadmap-step-title {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

/* Roadmap Step 標題：--text-xl */
.roadmap-step-title h3 {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--purple-dark);
    margin: 0;
}

/* Roadmap Step Icon：--text-2xl */
.roadmap-step-title .step-icon {
    font-size: var(--text-2xl);
}

/* Roadmap 副標題：--text-base */
.roadmap-step-subtitle {
    font-size: var(--text-base);
    color: var(--gold-dark);
    font-weight: var(--font-medium);
    margin-bottom: var(--space-3);
    padding-left: var(--space-4);
    border-left: 3px solid var(--gold-main);
}

.roadmap-step-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Roadmap 細節：--text-base */
.roadmap-step-details li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: var(--text-base);
    color: var(--text-gray);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-2);
}

.roadmap-step-details li:last-child {
    margin-bottom: 0;
}

.roadmap-step-details li::before {
    content: '✓';
    color: var(--gold-main);
    font-weight: var(--font-bold);
    flex-shrink: 0;
}

.roadmap-note {
    text-align: center;
    margin-top: var(--space-10);
    padding: var(--space-5) var(--space-6);
    background: rgba(212, 175, 55, 0.1);
    border-radius: var(--radius-lg);
    max-width: var(--container-sm);
    margin-left: auto;
    margin-right: auto;
}

/* Roadmap 註解：--text-base */
.roadmap-note p {
    font-size: var(--text-base);
    color: var(--purple-dark);
    font-weight: var(--font-medium);
    margin: 0;
}


/* ===========================================================
   TOOLBOX SECTION
   =========================================================== */
.toolbox {
    padding: var(--space-24) 0;
    background: var(--bg-white);
}

.toolbox-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

/* Toolbox 標題：--text-4xl */
.toolbox-header h2 {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--text-dark);
    margin-bottom: var(--space-4);
}

/* Toolbox 簡介：--text-base */
.toolbox-intro {
    font-size: var(--text-base);
    color: var(--text-gray);
    line-height: var(--leading-relaxed);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    max-width: var(--container-xl);
    margin: 0 auto;
}

.tool-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal) var(--ease-out);
}

.tool-card:hover {
    box-shadow: var(--shadow-purple);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-5px);
}

/* Tool 情境標籤：--text-sm */
.tool-scenario {
    display: inline-block;
    font-size: var(--text-sm);
    color: var(--gold-dark);
    font-weight: var(--font-medium);
    background: var(--gold-soft);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
}

.tool-divider {
    width: 30px;
    height: 2px;
    background: var(--purple-pale);
    margin-bottom: var(--space-4);
}

/* Tool 標題：--text-lg */
.tool-card h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-dark);
    margin-bottom: var(--space-3);
}

/* Tool 內文：--text-sm */
.tool-card p {
    font-size: var(--text-sm);
    color: var(--text-gray);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
}

/* Tool 連結：--text-sm */
.tool-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--purple-main);
    font-weight: var(--font-medium);
    font-size: var(--text-sm);
    transition: all var(--transition-normal);
}

.tool-link:hover {
    color: var(--gold-dark);
    gap: var(--space-3);
}

.toolbox-note {
    text-align: center;
    margin-top: var(--space-10);
}

/* Toolbox 註解：--text-base */
.toolbox-note p {
    font-size: var(--text-base);
    color: var(--text-light);
    font-style: italic;
    line-height: var(--leading-relaxed);
    margin: 0;
}


/* ===========================================================
   VOICES SECTION
   =========================================================== */
.voices {
    padding: var(--space-24) 0;
    background: var(--bg-warm);
}

.voices-header {
    text-align: center;
    margin-bottom: var(--space-10);
}

/* Voices 標題：--text-4xl */
.voices-header h2 {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--text-dark);
}

.voices-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    max-width: var(--container-lg);
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal) var(--ease-out);
    aspect-ratio: 3 / 4;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(74, 28, 107, 0.6) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-zoom-icon {
    font-size: var(--text-3xl);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transform: scale(0.8);
    transition: transform var(--transition-normal);
}

.gallery-item:hover .gallery-zoom-icon {
    transform: scale(1);
}

.voices-more {
    text-align: center;
    margin-top: var(--space-8);
}


/* ===========================================================
   LIGHTBOX
   =========================================================== */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: lbZoom 0.3s var(--ease-out);
}

@keyframes lbZoom {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    font-size: var(--text-3xl);
    border-radius: var(--radius-circle);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-normal);
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-size: var(--text-xl);
    border-radius: var(--radius-circle);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    z-index: 10;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Lightbox Counter：--text-sm */
.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    background: rgba(0, 0, 0, 0.4);
    padding: var(--space-2) var(--space-5);
    border-radius: var(--radius-full);
}


/* ===========================================================
   FAQ SECTION
   =========================================================== */
.faq {
    padding: var(--space-24) 0;
    background: var(--bg-white);
}

.faq-header {
    text-align: center;
    margin-bottom: var(--space-10);
}

/* FAQ 標題：--text-4xl */
.faq-header h2 {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--text-dark);
}

.faq-list {
    max-width: var(--container-md);
    margin: 0 auto;
}

.faq-item {
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    background: var(--white);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.faq-item:hover {
    border-color: rgba(107, 45, 155, 0.15);
}

/* FAQ 問題：--text-base */
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-5) var(--space-6);
    cursor: pointer;
    transition: background var(--transition-normal);
    user-select: none;
}

.faq-question:hover {
    background: rgba(243, 229, 249, 0.3);
}

.faq-question span {
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    color: var(--text-dark);
    padding-right: var(--space-4);
}

.faq-question svg {
    transition: transform var(--transition-normal) var(--ease-out);
    stroke: var(--purple-light);
    flex-shrink: 0;
}

.faq-item.active .faq-question svg {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease-out);
}

.faq-item.active .faq-answer {
    max-height: 400px;
}

/* FAQ 答案：--text-sm */
.faq-answer p {
    padding: 0 var(--space-6) var(--space-5);
    font-size: var(--text-sm);
    color: var(--text-gray);
    line-height: var(--leading-relaxed);
    margin: 0;
}


/* ===========================================================
   CTA SECTION
   =========================================================== */
.cta-final {
    padding: var(--space-24) 0 var(--space-16);
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.cta-wrapper {
    text-align: center;
    max-width: var(--container-sm);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: var(--radius-circle);
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* CTA 標題：--text-4xl */
.cta-final h2 {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--white);
    margin-bottom: var(--space-5);
}

/* CTA 副標題：--text-lg */
.cta-sub {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.8);
    font-weight: var(--font-light);
    margin-bottom: var(--space-6);
    line-height: var(--leading-relaxed);
}

/* CTA 描述：--text-base */
.cta-desc {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.65);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-5);
}

/* CTA Pace：--text-base */
.cta-pace {
    font-size: var(--text-base);
    color: var(--gold-main);
    font-weight: var(--font-medium);
    margin-bottom: var(--space-8);
    letter-spacing: 0.03em;
}

/* CTA Button：--text-lg */
.cta-line-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-8);
    background: #06C755;
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    transition: all var(--transition-normal) var(--ease-out);
    box-shadow: 0 4px 20px rgba(6, 199, 85, 0.35);
    text-decoration: none;
}

.cta-line-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(6, 199, 85, 0.5);
    background: #05b34d;
}

.cta-line-btn svg {
    flex-shrink: 0;
}

/* CTA Hint：--text-sm */
.cta-hint {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.4);
    margin-top: var(--space-4);
}


/* ===========================================================
   RESPONSIVE DESIGN
   =========================================================== */

/* ===== 平板橫向 (1024px) ===== */
@media (max-width: 1024px) {
    .beliefs-grid {
        grid-template-columns: 1fr;
        max-width: var(--container-sm);
        margin: 0 auto var(--space-16);
    }
    
    .story-layout {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }
    
    .story-image {
        max-width: 450px;
        margin: 0 auto;
    }
}

/* ===== 平板直向 / 大手機 (768px) ===== */
@media (max-width: 768px) {
    /* ----- 全域 Section Padding 縮小 ----- */
    .pain-points,
    .story,
    .philosophy,
    .toolbox,
    .voices,
    .faq,
    .cta-final {
        padding: var(--space-16) 0;
    }
    
    .roadmap {
        padding: var(--space-16) 0 var(--space-12);
    }
    
    /* ----- Hero ----- */
    .hero {
        min-height: auto;
        padding: 5rem var(--space-5) var(--space-10);
    }
    
    .hero h1 {
        font-size: var(--text-3xl);
    }
    
    .hero-quote {
        font-size: var(--text-base);
        line-height: var(--leading-relaxed);
    }
    
    .hero-whisper {
        font-size: var(--text-sm);
    }
    
    .scroll-hint {
        display: none;
    }
    
    /* ----- Pain Points ----- */
    .pain-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }
    
    .pain-lead {
        font-size: var(--text-base);
    }
    
    .pain-card p {
        font-size: var(--text-sm);
    }
    
    .pain-closing {
        font-size: var(--text-base);
    }
    
    /* ----- Story ----- */
    .story-content h2 {
        font-size: var(--text-2xl);
    }
    
    .story-text p {
        font-size: var(--text-sm);
    }
    
    .story-turning {
        font-size: var(--text-base);
    }
    
    .section-label {
        font-size: var(--text-sm);
    }
    
    /* ----- Philosophy ----- */
    .philosophy-header h2 {
        font-size: var(--text-2xl);
    }
    
    .philosophy-intro {
        font-size: var(--text-sm);
    }
    
    .belief-card h3 {
        font-size: var(--text-base);
    }
    
    .belief-card p {
        font-size: var(--text-sm);
    }
    
    .journey-model {
        padding: var(--space-6) var(--space-5);
    }
    
    /* ----- Roadmap ----- */
    .roadmap-header h2 {
        font-size: var(--text-2xl);
    }
    
    .roadmap-header p {
        font-size: var(--text-base);
    }
    
    .roadmap-steps {
        max-width: 90%;
        margin: 0 auto;
    }
    
    .roadmap-steps::before {
        left: 26px;
    }
    
    .roadmap-step {
        gap: var(--space-4);
    }
    
    .roadmap-step-number {
        width: 52px;
        height: 52px;
        min-width: 52px;
        font-size: var(--text-xl);
    }
    
    .roadmap-step-content {
        padding: var(--space-5);
    }
    
    .roadmap-step-title h3 {
        font-size: var(--text-base);
    }
    
    .roadmap-step-subtitle {
        font-size: var(--text-sm);
    }
    
    .roadmap-step-details li {
        font-size: var(--text-sm);
    }
    
    .roadmap-note p {
        font-size: var(--text-sm);
    }
    
    /* ----- Toolbox: 單欄顯示 ----- */
    .tools-grid {
        grid-template-columns: 1fr;
        max-width: var(--container-sm);
        margin: 0 auto;
    }
    
    .toolbox-header h2 {
        font-size: var(--text-2xl);
    }
    
    .toolbox-intro {
        font-size: var(--text-sm);
    }
    
    .tool-card {
        padding: var(--space-5);
    }
    
    .tool-card h3 {
        font-size: var(--text-base);
    }
    
    .tool-card p {
        font-size: var(--text-sm);
    }
    
    .tool-scenario {
        font-size: var(--text-xs);
    }
    
    .toolbox-note p {
        font-size: var(--text-sm);
    }
    
    /* ----- Voices ----- */
    .voices-header h2 {
        font-size: var(--text-2xl);
    }
    
    .voices-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }
    
    /* ----- FAQ ----- */
    .faq-header h2 {
        font-size: var(--text-2xl);
    }
    
    .faq-question span {
        font-size: var(--text-sm);
    }
    
    .faq-answer p {
        font-size: var(--text-sm);
    }
    
    /* ----- CTA Final ----- */
    .cta-final h2 {
        font-size: var(--text-2xl);
    }
    
    .cta-sub {
        font-size: var(--text-base);
    }
    
    .cta-desc {
        font-size: var(--text-sm);
    }
    
    .cta-pace {
        font-size: var(--text-sm);
    }
    
    /* ----- Lightbox ----- */
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: var(--text-base);
    }
    
    .lightbox-prev { left: 12px; }
    .lightbox-next { right: 12px; }
    
    .lightbox-close {
        width: 40px;
        height: 40px;
        top: 12px;
        right: 12px;
        font-size: var(--text-xl);
    }
}

/* ===== 手機 (480px) ===== */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-4);
    }
    
    /* ----- 全域 Section Padding 再縮小 ----- */
    .pain-points,
    .story,
    .philosophy,
    .toolbox,
    .voices,
    .faq,
    .cta-final {
        padding: var(--space-12) 0;
    }
    
    .roadmap {
        padding: var(--space-12) 0 var(--space-10);
    }
    
    /* ----- Hero ----- */
    .hero {
        padding: 4.5rem var(--space-4) var(--space-8);
    }
    
    .hero h1 {
        font-size: var(--text-2xl);
        margin-bottom: var(--space-5);
    }
    
    .hero-line {
        margin-bottom: var(--space-5);
    }
    
    .hero-quote {
        font-size: var(--text-sm);
    }
    
    .hero-quote br {
        display: none;
    }
    
    /* ----- Pain Points ----- */
    .pain-intro {
        margin-bottom: var(--space-8);
    }
    
    .pain-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
        margin-bottom: var(--space-8);
    }
    
    .pain-card {
        padding: var(--space-4) var(--space-3);
    }
    
    .pain-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .pain-card p {
        font-size: var(--text-xs);
    }
    
    .pain-card p br {
        display: none;
    }
    
    .pain-closing {
        font-size: var(--text-sm);
    }
    
    /* ----- Story ----- */
    .story-layout {
        gap: var(--space-8);
    }
    
    .story-content h2 {
        font-size: var(--text-xl);
        margin-bottom: var(--space-4);
    }
    
    .story-text p {
        font-size: var(--text-sm);
        margin-bottom: var(--space-3);
    }
    
    .story-turning {
        font-size: var(--text-sm);
        padding-left: var(--space-4);
        margin-top: var(--space-4);
    }
    
    /* ----- Philosophy ----- */
    .philosophy-header {
        margin-bottom: var(--space-8);
    }
    
    .philosophy-header h2 {
        font-size: var(--text-xl);
    }
    
    .philosophy-intro br {
        display: none;
    }
    
    .beliefs-grid {
        gap: var(--space-4);
        margin-bottom: var(--space-10);
    }
    
    .belief-card {
        padding: var(--space-5);
    }
    
    .belief-number {
        font-size: var(--text-3xl);
    }
    
    /* ----- Roadmap: 縮減寬度 ----- */
    .roadmap-header {
        margin-bottom: var(--space-8);
    }
    
    .roadmap-header h2 {
        font-size: var(--text-xl);
    }
    
    .roadmap-header p {
        font-size: var(--text-sm);
    }
    
    .roadmap-header p br {
        display: none;
    }
    
    .roadmap-steps {
        max-width: 100%;
    }
    
    .roadmap-steps::before {
        display: none;
    }
    
    .roadmap-step {
        flex-direction: column;
        gap: var(--space-3);
        margin-bottom: var(--space-5);
    }
    
    .roadmap-step-number {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: var(--text-base);
    }
    
    .roadmap-step-content {
        padding: var(--space-4);
        /* 縮減卡片寬度，不要滿版 */
        margin-left: var(--space-3);
        margin-right: var(--space-3);
    }
    
    .roadmap-step-title {
        gap: var(--space-2);
        margin-bottom: var(--space-2);
    }
    
    .roadmap-step-title h3 {
        font-size: var(--text-sm);
    }
    
    .roadmap-step-title .step-icon {
        font-size: var(--text-lg);
    }
    
    .roadmap-step-subtitle {
        font-size: var(--text-xs);
        margin-bottom: var(--space-2);
        padding-left: var(--space-3);
    }
    
    .roadmap-step-details li {
        font-size: var(--text-xs);
        gap: var(--space-2);
        margin-bottom: var(--space-1);
    }
    
    .roadmap-note {
        margin-top: var(--space-6);
        padding: var(--space-4);
    }
    
    .roadmap-note p {
        font-size: var(--text-xs);
    }
    
    /* ----- Toolbox ----- */
    .toolbox-header {
        margin-bottom: var(--space-8);
    }
    
    .toolbox-header h2 {
        font-size: var(--text-xl);
    }
    
    .toolbox-intro br {
        display: none;
    }
    
    .tools-grid {
        gap: var(--space-4);
    }
    
    .tool-card {
        padding: var(--space-4);
    }
    
    /* ----- Voices ----- */
    .voices-header {
        margin-bottom: var(--space-6);
    }
    
    .voices-header h2 {
        font-size: var(--text-xl);
    }
    
    .voices-gallery {
        gap: var(--space-3);
    }
    
    .voices-more {
        margin-top: var(--space-5);
    }
    
    /* ----- FAQ ----- */
    .faq-header {
        margin-bottom: var(--space-6);
    }
    
    .faq-header h2 {
        font-size: var(--text-xl);
    }
    
    .faq-item {
        margin-bottom: var(--space-3);
    }
    
    .faq-question {
        padding: var(--space-4);
    }
    
    .faq-question span {
        font-size: var(--text-sm);
    }
    
    .faq-answer p {
        padding: 0 var(--space-4) var(--space-4);
        font-size: var(--text-xs);
    }
    
    /* ----- CTA Final ----- */
    .cta-final h2 {
        font-size: var(--text-xl);
        margin-bottom: var(--space-4);
    }
    
    .cta-sub {
        font-size: var(--text-sm);
        margin-bottom: var(--space-4);
    }
    
    .cta-desc {
        font-size: var(--text-xs);
        margin-bottom: var(--space-4);
    }
    
    .cta-desc br {
        display: none;
    }
    
    .cta-pace {
        font-size: var(--text-xs);
        margin-bottom: var(--space-6);
    }
    
    .cta-line-btn {
        font-size: var(--text-base);
        padding: var(--space-3) var(--space-5);
        width: 100%;
    }
    
    .cta-hint {
        font-size: var(--text-xs);
    }
}
