/* ========================================
   cian-sessions 頁面專屬樣式
   紀謙的自在空間 - 個案服務頁面
   配色主題：紫金
   ======================================== */

/* ========== 頁面專屬配色變數 ========== */
/* 注意：字體相關變數繼承自 global-style.css */
: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: #e8dff0;
    
    /* 漸層 */
    --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-purple-sm: 0 1px 3px rgba(74,28,107,0.1);
    --shadow-purple-md: 0 4px 12px rgba(74,28,107,0.15);
    --shadow-purple-lg: 0 10px 30px rgba(74,28,107,0.2);
    --shadow-purple-xl: 0 20px 50px rgba(74,28,107,0.25);
    --shadow-gold: 0 4px 20px rgba(212,175,55,0.3);
}

/* ========== 基礎設定 ========== */
img {
    max-width: 100%;
    height: auto;
}

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

/* ========== Hero Section ========== */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    padding: 140px var(--space-5) var(--space-20);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(212,175,55,0.1)" stroke-width="0.5"/></svg>') center/300px repeat;
    opacity: 0.5;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

/* 統一 H1 大小：使用 --text-5xl (3rem = 48px) */
.hero-title {
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    color: white;
    margin-bottom: var(--space-4);
    line-height: var(--leading-tight);
}

/* 副標題：使用 --text-xl (1.25rem = 20px) */
.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--gold-light);
    margin-bottom: var(--space-4);
    font-weight: var(--font-medium);
}

/* 描述文字：使用 --text-lg (1.125rem = 18px) */
.hero-description {
    font-size: var(--text-lg);
    color: rgba(255,255,255,0.85);
    margin-bottom: var(--space-8);
    line-height: var(--leading-relaxed);
}

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

/* ========== 按鈕樣式 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: var(--font-semibold);
    font-size: var(--text-base);
    transition: all var(--transition-normal) var(--ease-out);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--purple-dark);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212,175,55,0.5);
}

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

.btn-secondary:hover {
    background: var(--gold-main);
    color: var(--purple-dark);
}

.btn-detail {
    display: block;
    width: 100%;
    padding: var(--space-3) var(--space-5);
    margin-top: var(--space-4);
    background: var(--gradient-gold);
    color: var(--purple-dark);
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: var(--font-semibold);
    font-size: var(--text-base);
    transition: all var(--transition-normal) var(--ease-out);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}

.btn-detail:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #b8860b 0%, #d4af37 100%);
    color: var(--purple-dark);
}

.btn-large {
    padding: var(--space-5) var(--space-12);
    font-size: var(--text-lg);
}

/* ========== Section 通用樣式 ========== */
section {
    padding: var(--space-24) var(--space-5);
}

/* 統一 H2 大小：使用 --text-4xl (2.25rem = 36px) */
.section-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--purple-dark);
    text-align: center;
    margin-bottom: var(--space-4);
    line-height: var(--leading-tight);
}

/* 副標題：使用 --text-lg (1.125rem = 18px) */
.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-gray);
    text-align: center;
    margin-bottom: var(--space-12);
    line-height: var(--leading-relaxed);
}

/* ========== About Section ========== */
.about {
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: var(--space-16);
    align-items: start;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-purple-lg);
    border: 4px solid var(--gold-main);
}

.about-text h2 {
    font-size: var(--text-4xl);
    color: var(--purple-dark);
    margin-bottom: var(--space-5);
    line-height: var(--leading-tight);
}

.about-text p {
    color: var(--text-gray);
    margin-bottom: var(--space-5);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
}

.specialties {
    margin-top: var(--space-8);
    background: var(--bg-light);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    border-left: 4px solid var(--gold-main);
}

/* 專業領域 H3：使用 --text-xl (1.25rem = 20px) */
.specialties h3 {
    color: var(--gold-dark);
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
    font-weight: var(--font-semibold);
}

.specialties ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
    padding-left: 0;
    margin-bottom: 0;
}

.specialties li {
    color: var(--text-gray);
    font-size: var(--text-base);
    padding-left: var(--space-5);
    position: relative;
    line-height: var(--leading-relaxed);
}

.specialties li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold-main);
    font-weight: var(--font-bold);
}

/* ========== Services Section ========== */
.services {
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.service-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-purple-md);
    transition: all var(--transition-normal) var(--ease-out);
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold-main);
    box-shadow: var(--shadow-purple-xl);
}

.service-icon {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal) var(--ease-out);
}

.service-card:hover .service-icon img {
    transform: scale(1.05);
}

.service-card h3,
.service-card p,
.service-card .service-features {
    padding-left: var(--space-5);
    padding-right: var(--space-5);
}

.service-card .service-details {
    padding-left: var(--space-5);
    padding-right: var(--space-5);
    padding-bottom: var(--space-4);
}

/* 服務卡標題：使用 --text-xl (1.25rem = 20px) */
.service-title {
    font-size: var(--text-xl);
    color: var(--purple-dark);
    margin: var(--space-5) 0 var(--space-4);
    font-weight: var(--font-bold);
    line-height: var(--leading-snug);
}

/* 服務描述：使用 --text-base (1rem = 16px) */
.service-description {
    color: var(--text-gray);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
}

/* 徽章：使用 --text-sm (0.875rem = 14px) */
.feature-badge {
    background: var(--purple-pale);
    color: var(--purple-main);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-xl);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
}

/* 服務詳情：使用 --text-sm (0.875rem = 14px) */
.service-details p {
    font-size: var(--text-sm);
    color: var(--text-gray);
    margin-bottom: var(--space-2);
    line-height: var(--leading-relaxed);
}

/* 價格：使用 --text-base (1rem = 16px) */
.service-price {
    color: var(--gold-dark) !important;
    font-weight: var(--font-bold);
    font-size: var(--text-base) !important;
}

.service-class {
    color: var(--purple-main) !important;
}

.service-card .btn-detail {
    margin-left: var(--space-8);
    margin-right: var(--space-8);
    width: calc(100% - 70px);
    margin-bottom: var(--space-3);
}

.service-card .btn-detail:last-child {
    margin-bottom: var(--space-6);
}

/* ========== Process Section ========== */
.process {
    background: var(--gradient-hero);
    color: white;
}

.process .section-title {
    color: white;
}

.process .section-subtitle {
    color: rgba(255,255,255,0.8);
}

.process-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-5);
    flex-wrap: wrap;
}

.process-step {
    text-align: center;
    padding: var(--space-8);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(212,175,55,0.3);
    flex: 1;
    min-width: 180px;
    max-width: 220px;
    transition: all var(--transition-normal) var(--ease-out);
}

.process-step:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-5px);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-gold);
    color: var(--purple-dark);
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    font-weight: var(--font-bold);
    font-size: var(--text-xl);
}

.step-icon {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-4);
}

/* 步驟標題：使用 --text-lg (1.125rem = 18px) */
.step-title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-3);
    color: var(--gold-light);
    font-weight: var(--font-semibold);
}

/* 步驟描述：使用 --text-sm (0.875rem = 14px) */
.step-description {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.8);
    line-height: var(--leading-relaxed);
}

.process-arrow {
    font-size: var(--text-4xl);
    color: var(--gold-main);
}

/* ========== Testimonials Section ========== */
.testimonials {
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
}

.testimonial-card {
    background: var(--bg-light);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    border-left: 4px solid var(--gold-main);
    transition: all var(--transition-normal) var(--ease-out);
}

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

/* 評價星星：使用 --text-xl (1.25rem = 20px) */
.testimonial-stars {
    color: var(--gold-main);
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
}

/* 評價內容：使用 --text-base (1rem = 16px) */
.testimonial-quote {
    color: var(--text-gray);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-5);
    font-style: italic;
}

/* 評價者：使用 --text-base + semibold */
.testimonial-author {
    color: var(--purple-dark);
    font-weight: var(--font-semibold);
    font-size: var(--text-base);
}

/* ========== FAQ Section ========== */
.faq {
    background: var(--bg-light);
}

.faq-list {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-4);
    overflow: hidden;
    box-shadow: var(--shadow-purple-sm);
    border: 2px solid transparent;
    transition: border-color var(--transition-normal) var(--ease-out);
}

.faq-item:hover,
.faq-item.active {
    border-color: var(--gold-main);
}

.faq-question {
    width: 100%;
    padding: var(--space-6) var(--space-8);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-primary);
    text-align: left;
    transition: background var(--transition-normal) var(--ease-out);
}

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

/* FAQ 問題：使用 --text-base + semibold */
.faq-question span {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--purple-dark);
    flex: 1;
    padding-right: var(--space-4);
}

.faq-icon {
    font-size: var(--text-2xl);
    color: var(--gold-dark);
    transition: transform var(--transition-normal) var(--ease-out);
}

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

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

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

/* FAQ 答案：使用 --text-base (1rem = 16px) */
.faq-answer p {
    padding: 0 var(--space-8) var(--space-6);
    color: var(--text-gray);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
}

/* ========== Contact Section ========== */
.contact {
    background: linear-gradient(135deg, var(--purple-pale) 0%, var(--gold-soft) 100%);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

.contact-item {
    text-align: center;
    background: white;
    padding: var(--space-10) var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-purple-md);
    transition: all var(--transition-normal) var(--ease-out);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-purple-lg);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-purple);
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-5);
    font-size: var(--text-3xl);
    color: white;
}

/* 聯絡標題：使用 --text-xl (1.25rem = 20px) */
.contact-item h3 {
    color: var(--purple-dark);
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
    font-weight: var(--font-semibold);
}

/* 聯絡資訊：使用 --text-base */
.contact-item a,
.contact-item p {
    color: var(--gold-dark);
    text-decoration: none;
    font-weight: var(--font-medium);
    font-size: var(--text-base);
}

.contact-item a:hover {
    color: var(--purple-main);
}

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

.social-media h3 {
    color: var(--purple-dark);
    margin-bottom: var(--space-5);
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--purple-main);
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition-normal) var(--ease-out);
}

.social-link:hover {
    background: var(--gold-main);
    transform: translateY(-3px);
}

.cta-button {
    text-align: center;
}

/* ========== 響應式設計 ========== */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .about-image {
        max-width: 350px;
        margin: 0 auto;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .specialties ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: var(--space-24) var(--space-5) var(--space-16);
        min-height: auto;
    }

    /* RWD H1：使用 global 的 --text-5xl (此時已被覆蓋為 2rem) */
    .hero-title {
        font-size: var(--text-5xl);
    }

    .hero-subtitle {
        font-size: var(--text-lg);
    }

    section {
        padding: var(--space-16) var(--space-5);
    }

    /* RWD H2：使用 global 的 --text-4xl (此時已被覆蓋為 1.75rem) */
    .section-title {
        font-size: var(--text-4xl);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        flex-direction: column;
    }

    .process-step {
        max-width: 100%;
        width: 100%;
    }

    .process-arrow {
        transform: rotate(90deg);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* ========== 動畫效果 ========== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-slow) var(--ease-out);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
