/* ========================================
   about-faq 頁面專屬樣式
   紀謙的自在空間 - 常見問題 FAQ
   配色主題：紫金 (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)
   - 小字: --text-sm (0.875rem = 14px)
   - 行高: --leading-relaxed (1.8)
   ======================================== */

/* ========== 頁面專屬配色變數 ========== */
:root {
    /* 紫金主題配色 */
    --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;
    --text-dark: #2d1b3d;
    --text-gray: #5c4a6e;
    --text-light: #8b7a9e;
    --border-light: rgba(74, 28, 107, 0.12);
    
    /* 漸層 */
    --gradient-purple: linear-gradient(135deg, #6b2d9b 0%, #9b59b6 100%);
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    --gradient-hero: linear-gradient(135deg, #4a1c6b 0%, #6b2d9b 50%, #2d1b3d 100%);
    
    /* 頁面專屬陰影 */
    --shadow-sm: 0 1px 3px rgba(74, 28, 107, 0.1);
    --shadow-md: 0 4px 12px rgba(74, 28, 107, 0.15);
    --shadow-lg: 0 10px 30px rgba(74, 28, 107, 0.2);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.3);
    --shadow-gold-hover: 0 12px 40px rgba(212, 175, 55, 0.5);
}

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

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

/* ========== Page Hero ========== */
.page-hero {
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px var(--space-8) 100px;
    background: var(--gradient-hero);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    border-radius: var(--radius-circle);
    opacity: 0.3;
    pointer-events: none;
}

.page-hero-bg-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.page-hero-bg-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(155, 89, 182, 0.3) 0%, transparent 70%);
    bottom: -50px;
    left: -50px;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-8);
}

/* Hero Badge：使用 --text-sm */
.page-hero-badge {
    display: inline-block;
    padding: var(--space-3) var(--space-6);
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--gold-main);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--gold-light);
    margin-bottom: var(--space-8);
    letter-spacing: 0.1em;
}

/* Hero H1：使用 --text-5xl */
.page-hero h1 {
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-6);
    line-height: var(--leading-tight);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Hero Desc：使用 --text-lg */
.page-hero-desc {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.9);
    line-height: var(--leading-loose);
    max-width: 650px;
    margin: 0 auto;
}

/* ========== FAQ Section ========== */
.faq-section {
    padding: var(--space-20) 0;
}

.faq-section:nth-child(odd) {
    background: var(--bg-white);
}

.faq-section:nth-child(even) {
    background: var(--purple-pale);
}

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

/* Section Tag：使用 --text-sm + semibold */
.section-tag {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    letter-spacing: 0.2em;
    color: var(--gold-main);
    text-transform: uppercase;
    margin-bottom: var(--space-4);
}

/* Section Title：使用 --text-4xl */
.section-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
    color: var(--purple-dark);
    line-height: var(--leading-tight);
}

/* Section Desc：使用 --text-base */
.section-desc {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-gray);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
}

/* ========== FAQ Items ========== */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

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

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-6) var(--space-8);
    cursor: pointer;
    transition: all var(--transition-normal) var(--ease-out);
    gap: var(--space-5);
}

.faq-question:hover {
    background: var(--purple-pale);
}

.faq-question-text {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    flex: 1;
}

.faq-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--gradient-gold);
    color: var(--purple-dark);
    border-radius: var(--radius-circle);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    flex-shrink: 0;
}

/* FAQ Question Text：使用 --text-base + semibold */
.faq-question span {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--purple-dark);
    line-height: var(--leading-normal);
}

.faq-toggle {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-circle);
    background: var(--purple-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-normal) var(--ease-out);
}

.faq-toggle svg {
    transition: transform var(--transition-normal) var(--ease-out);
    stroke: var(--purple-main);
}

.faq-item.active .faq-toggle {
    background: var(--gradient-gold);
}

.faq-item.active .faq-toggle svg {
    transform: rotate(45deg);
    stroke: var(--purple-dark);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

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

/* FAQ Answer Content：使用 --text-base */
.faq-answer-content {
    padding: 0 var(--space-8) var(--space-8) calc(32px + var(--space-4) + var(--space-8));
    color: var(--text-gray);
    font-size: var(--text-base);
    line-height: var(--leading-loose);
}

.faq-answer-content p {
    margin-bottom: var(--space-4);
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

.faq-answer-content strong {
    color: var(--purple-dark);
}

.faq-answer-content .highlight {
    background: var(--gold-soft);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--gold-main);
    margin: var(--space-4) 0;
}

/* ========== CTA Section ========== */
.cta-section {
    padding: var(--space-20) 0;
    background: var(--gradient-hero);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

/* CTA H2：使用 --text-4xl */
.cta-content h2 {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-5);
    line-height: var(--leading-tight);
}

/* CTA P：使用 --text-lg */
.cta-content p {
    font-size: var(--text-lg);
    opacity: 0.9;
    margin-bottom: var(--space-8);
    line-height: var(--leading-relaxed);
}

.cta-buttons {
    display: flex;
    gap: var(--space-5);
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-8);
    background: var(--gradient-gold);
    color: var(--purple-dark);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    transition: all var(--transition-normal) var(--ease-out);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold-hover);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-8);
    background: transparent;
    color: white;
    text-decoration: none;
    border-radius: var(--radius-full);
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all var(--transition-normal) var(--ease-out);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold-main);
}

/* ========== Lightbox ========== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transition-normal) var(--ease-out);
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-circle);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-normal) var(--ease-out);
}

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

.lightbox-close svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

/* Lightbox Hint：使用 --text-sm */
.lightbox-hint {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-sm);
}

/* ========== 響應式設計 ========== */
@media (max-width: 992px) {
    .faq-answer-content {
        padding-left: var(--space-8);
    }
}

@media (max-width: 768px) {
    /* RWD Hero */
    .page-hero {
        min-height: 45vh;
        padding: 120px var(--space-5) 80px;
    }

    .page-hero h1 {
        font-size: var(--text-4xl);
    }
    
    .page-hero-badge {
        margin-bottom: var(--space-6);
    }

    /* RWD Section Title */
    .section-title {
        font-size: var(--text-3xl);
    }

    .faq-section {
        padding: var(--space-16) 0;
    }

    .faq-question {
        padding: var(--space-5);
    }

    .faq-answer-content {
        padding: 0 var(--space-5) var(--space-6) var(--space-5);
    }

    .faq-number {
        display: none;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .quick-nav-list {
        gap: var(--space-2);
    }

    .quick-nav-item {
        padding: var(--space-2) var(--space-4);
        font-size: var(--text-xs);
    }

    .cta-content h2 {
        font-size: var(--text-3xl);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-5);
    }
}
