/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.01) 0%, transparent 70%);
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Color Variables - Modern Financial Theme with 8pt Grid System */
:root {
    /* Primary Colors */
    --primary-color: #1a1a1a;
    --secondary-color: #d4af37;
    --accent-color: #ff6b35;
    
    /* Semantic Colors */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    
    /* Neutral Colors */
    --text-primary: #ffffff;
    --text-secondary: #e5e7eb;
    --text-muted: #9ca3af;
    --text-disabled: #6b7280;
    --text-color: #ffffff;
    --text-light: #e5e7eb;
    --white: #ffffff;
    
    /* Background Colors */
    --bg-color: #1a1a1a;
    --bg-primary: #1a1a1a;
    --bg-secondary: #262626;
    --bg-tertiary: #333333;
    --bg-quaternary: #404040;
    --bg-surface: rgba(38, 38, 38, 0.8);
    --bg-overlay: rgba(0, 0, 0, 0.6);
    
    /* Border Colors */
    --border-color: #374151;
    --border-primary: #374151;
    --border-secondary: #4b5563;
    --border-accent: rgba(212, 175, 55, 0.3);
    --border-light: #6b7280;
    
    /* Gold Variations */
    --gold-light: #f4e4a6;
    --gold-medium: #d4af37;
    --gold-dark: #8b7355;
    
    /* Shadows */
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 8px 32px rgba(0, 0, 0, 0.25);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1a1a1a 0%, #262626 50%, #333333 100%);
    --gradient-secondary: linear-gradient(135deg, #d4af37 0%, #f4e4a6 50%, #d4af37 100%);
    --gradient-accent: linear-gradient(135deg, #ff6b35 0%, #ff8c42 50%, #ff6b35 100%);
    --gradient-surface: linear-gradient(135deg, rgba(38, 38, 38, 0.9) 0%, rgba(51, 51, 51, 0.8) 100%);
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f4e4a6 30%, #8b7355 100%);
    
    /* Spacing System (8pt grid) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    
    /* Typography Scale */
    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 18px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --text-3xl: 30px;
    --text-4xl: 36px;
    
    /* Line Heights */
    --leading-tight: 1.25;
    --leading-normal: 1.4;
    --leading-relaxed: 1.6;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-full: 50%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.2rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

h3 {
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h4 {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.015em;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.025em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--primary-color);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 215, 0, 0.4);
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 50%, #b8860b 100%);
    border-color: rgba(255, 215, 0, 0.6);
    color: var(--primary-color);
}

.btn-secondary {
    background: var(--gradient-surface);
    color: var(--text-primary);
    border: 2px solid var(--border-secondary);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.5s;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 16px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 19, 0.95);
    backdrop-filter: blur(30px);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
}

.header.scrolled {
    background: rgba(10, 14, 19, 0.98);
    box-shadow: var(--shadow-xl);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.2));
    transition: all 0.3s ease;
}

.logo-img:hover {
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.4));
    transform: scale(1.05);
}

.nav-logo h2 {
    color: var(--secondary-color);
    margin: 0;
    font-weight: 900;
    font-size: 1.5rem;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    letter-spacing: -0.02em;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    animation: goldPulse 8s ease-in-out infinite;
}

.nav-logo h2:hover {
    color: #d4af37;
    text-shadow: 
        0 0 10px rgba(212, 175, 55, 0.3),
        0 0 18px rgba(212, 175, 55, 0.2),
        0 0 25px rgba(212, 175, 55, 0.1);
    transform: scale(1.02);
    filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.2));
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    position: relative;
    letter-spacing: 0.025em;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-secondary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--secondary-color);
    background: rgba(0, 212, 170, 0.08);
    transform: translateY(-1px);
}

.nav-link:hover::before {
    width: 80%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white); /* 提高對比度，讓漢堡按鈕更顯眼 */
    margin: 3px 0;
    transition: 0.3s;
}

/* 讓整個漢堡區塊更醒目且可點擊區域更大 */
.header .nav-toggle {
    padding: 6px 4px;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}

.header .nav-toggle:hover span {
    background: var(--secondary-color);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
}

/* Hero Section */
.hero {
    padding: 140px 0 100px;
    background: var(--gradient-primary);
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 15%, rgba(212, 175, 55, 0.05) 0%, transparent 60%),
        radial-gradient(circle at 75% 85%, rgba(212, 175, 55, 0.03) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.02) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 2rem;
    color: var(--text-color);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.04em;
}

.highlight {
    color: var(--secondary-color);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    display: inline-block;
    margin-right: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 4px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: visible;
}

.highlight::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(
        90deg, 
        rgba(212, 175, 55, 0.5), 
        rgba(212, 175, 55, 0.8), 
        rgba(212, 175, 55, 0.5)
    );
    transition: width 0.4s ease;
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.4);
    opacity: 0;
}

.highlight:hover {
    color: #d4af37;
    text-shadow: 
        0 0 12px rgba(212, 175, 55, 0.3),
        0 0 20px rgba(212, 175, 55, 0.2),
        0 0 30px rgba(212, 175, 55, 0.1);
    transform: scale(1.03);
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.25));
}

.highlight:hover::before {
    opacity: 1;
    width: 100%;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    padding: 1.25rem;
    background: rgba(212, 175, 55, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-width: 100px;
    flex: 1;
    position: relative;
    overflow: hidden;
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.06), transparent);
    transition: left 0.6s;
}

.stat:hover::before {
    left: 100%;
}

.stat:hover {
    transform: translateY(-5px);
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.15);
}

.stat-number {
    display: block;
    font-size: 2.75rem;
    font-weight: 900;
    color: var(--secondary-color);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    margin-bottom: 0.5rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.025em;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.hero-visual {
    position: relative;
    z-index: 1;
}

/* Hero Features */
.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-primary);
    backdrop-filter: blur(10px);
    margin-top: 2rem;
    min-width: 500px;
    max-width: 600px;
    text-align: center;
}

.feature-highlight {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid var(--border-primary);
    transition: all 0.3s ease;
    flex: 1;
    text-align: left;
    min-height: 80px;
    position: relative;
    overflow: hidden;
}

.feature-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.05), transparent);
    transition: left 0.6s;
}

.feature-highlight:hover::before {
    left: 100%;
}

.feature-highlight:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    background: var(--bg-quaternary);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.feature-highlight h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}

.feature-highlight p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    text-align: left;
    max-width: 100%;
}

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 2.75rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 4rem;
    font-weight: 400;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Problems Section */
.problems {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
}

.problems::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.015) 0%, transparent 50%);
    pointer-events: none;
}

/* Problems Slider Container */
.problems-container {
    position: relative;
    margin-top: 2rem;
    padding: 20px 60px; /* 還原水平寬度計算，避免擠壓三卡視區 */
    overflow: hidden; /* 隱藏多餘的卡片 */
    max-width: 1800px; /* 進一步增加最大寬度 */
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.problems-slider {
    overflow: hidden; /* 嚴格裁切，只顯示三張卡片 */
    border-radius: 0;
    width: 100%;
    padding: 12px 0; /* 預留上下空間，不影響寬度 */
    margin: 0 auto; /* 置中顯示 */
    max-width: 1024px; /* 三張卡片的總寬 */
}

.problems-track {
    display: flex;
    gap: 2rem; /* 增加卡片間距以利用更多空間 */
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible; /* 防止內部卡片 hover 時被裁切 */
    width: max-content; /* 讓軌道寬度適應所有卡片 */
}

.problems-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--gradient-gold);
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    opacity: 0.9;
}

.problems-nav-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 50%, #b8860b 100%);
    opacity: 1;
}

.problems-nav-btn.prev {
    left: 2px; /* 再微調更靠左 */
}

.problems-nav-btn.next {
    right: 6px; /* 右邊按鈕在容器內顯示 */
}

.problems-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--secondary-color);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.dot:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.problem-card {
    background: var(--gradient-surface);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 1;
    overflow: visible; /* 讓偽元素與陰影可超出卡片邊界 */
    flex: 0 0 320px;
    min-width: 320px;
    max-width: 320px;
    /* 以最小高度確保版型，但允許內容撐高避免被裁切 */
    min-height: 520px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0; /* 與解決方案區一致的貼齊頂部細條 */
    left: 0;
    right: 0;
    height: 4px; /* 與解決方案區一致的高度 */
    background: var(--gradient-gold);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px 20px 0 0;
    z-index: 2;
}

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

.problem-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    background: rgba(0, 212, 170, 0.08);
    box-shadow: var(--shadow-xl);
}

.problem-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
    flex-shrink: 0;
}

.problem-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.problem-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    /* 統一卡片標題高度，置中顯示 */
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.problem-scenario {
    margin-bottom: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* 區塊間距一致 */
}

.problem-scenario p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
    /* 統一描述高度並截斷，避免擠壓下方區塊 */
    height: 80px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pain-meter {
    margin: 1rem 0;
}

.pain-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    display: block;
}

.pain-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.pain-fill {
    height: 100%;
    background: linear-gradient(90deg, #fed7d7, #f56565);
    transition: width 0.3s ease;
}

.pain-value {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-top: 0.5rem;
    display: block;
}

.time-line {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.time-slot {
    padding: 0.5rem 1rem;
    background: #e2e8f0;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.time-slot.active {
    background: #fed7d7;
    color: var(--accent-color);
    font-weight: 500;
}

.health-cost {
    margin: 1rem 0;
    padding: 0.75rem;
    background: #fef5e7;
    border-radius: 8px;
    color: #d69e2e;
    font-weight: 500;
}

.comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
    margin: 1rem 0;
}

.manual, .automatic {
    text-align: center;
}

.manual h4, .automatic h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.manual h4 {
    color: var(--accent-color);
}

.automatic h4 {
    color: var(--secondary-color);
}

.manual ul, .automatic ul {
    list-style: none;
    font-size: 0.9rem;
}

.vs {
    font-weight: 700;
    color: var(--text-light);
}

.risk-calculator {
    margin: 1rem 0;
}

.risk-scenario {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: #fef2f2;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.risk-result {
    color: var(--accent-color);
    font-weight: 600;
}

.solution-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%);
    border-radius: 12px;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(0, 212, 170, 0.2);
    box-shadow: 0 2px 8px rgba(0, 212, 170, 0.1);
    flex-shrink: 0;
    margin-top: 8px; /* 縮小與紅色結果區的間距，讓勾更靠近 X */
    height: 84px; /* 與紅色結果區一致 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.solution-preview i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* 新增痛點卡片樣式 */
.emotion-cycle {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin: var(--space-4) 0;
    flex-wrap: wrap;
    justify-content: center;
}

.cycle-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-2);
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    min-width: 64px;
    border: 1px solid var(--border-primary);
    transition: all 0.3s ease;
}

.cycle-step:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cycle-step.danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    color: var(--danger-color);
    border-color: rgba(239, 68, 68, 0.3);
}

.step-number {
    width: 24px;
    height: 24px;
    background: var(--gradient-gold);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.cycle-step.danger .step-number {
    background: var(--gradient-accent);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.step-text {
    font-size: var(--text-xs);
    text-align: center;
    font-weight: 600;
    line-height: var(--leading-tight);
}

.cycle-arrow {
    color: var(--text-muted);
    font-weight: 700;
    font-size: var(--text-lg);
    margin: 0 var(--space-1);
}

.emotion-cost {
    margin: var(--space-4) 0;
    padding: var(--space-4);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    border-radius: var(--radius-lg);
    color: var(--warning-color);
    font-weight: 600;
    text-align: center;
    border: 1px solid rgba(245, 158, 11, 0.2);
    box-shadow: var(--shadow-sm);
}

.strategy-chaos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
    margin: var(--space-4) 0;
}

.chaos-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: 500;
    border: 1px solid rgba(239, 68, 68, 0.2);
    transition: all 0.3s ease;
}

.chaos-item:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.chaos-item i {
    color: var(--danger-color);
    font-size: var(--text-sm);
    flex-shrink: 0;
}

.strategy-result {
    margin: var(--space-4) 0;
    padding: var(--space-4);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border-radius: var(--radius-lg);
    color: var(--danger-color);
    font-weight: 600;
    text-align: center;
    border-left: 3px solid var(--danger-color);
    box-shadow: var(--shadow-sm);
    /* 統一紅色結果區高度，垂直置中 */
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Case Studies Section */
.case-studies {
    padding: 100px 0;
    background: var(--bg-color);
    position: relative;
}

.case-studies::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.025) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.case-studies-container {
    position: relative;
    margin-top: 2rem;
    padding: 15px 60px;
}

.case-studies-slider {
    overflow: hidden; /* 僅顯示單一卡片，避免左右外露 */
    border-radius: 0;
}

.case-studies-track {
    display: flex;
    gap: 0;
    will-change: transform;
    transition: transform 0.5s ease;
}

/* Case dots (與 problems/solution dots 一致) */
.case-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.case-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-light);
    cursor: pointer;
    transition: all 0.3s ease;
}
.case-dots .dot.active { background: var(--secondary-color); transform: scale(1.2); box-shadow: 0 0 10px rgba(212,175,55,0.4); }
.case-dots .dot:hover { background: var(--secondary-color); transform: scale(1.1); }

.case-studies-track .case-study-card {
    flex: 0 0 100%; /* 單張卡片剛好一頁寬 */
    min-width: 100%;
    max-width: 100%;
    margin: 0 auto;
    flex-direction: column;
    text-align: center;
    position: relative; /* 讓補充內容可絕對定位並在 hover 顯示 */
    padding-right: 0;
}

/* 指定：讓帶有 fade-in-up 的案例卡片視覺寬度略小，但仍佔據一頁寬度 */
.case-studies-track .case-study-card.fade-in-up {
    width: 96%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .case-studies-track .case-study-card.fade-in-up {
        width: 98%;
    }
}

.case-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--gradient-gold);
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    opacity: 0.95;
}

.case-nav-btn:hover {
    transform: translateY(-50%) scale(1.08);
    box-shadow: var(--shadow-xl);
}

.case-nav-btn.prev { left: 6px; }
.case-nav-btn.next { right: 6px; }

    /* 行動/平板：把案例按鈕放到 case-dots 左右，與圓點同列 */
    .case-dots { display: flex; align-items: center; justify-content: center; gap: 12px; }
    .case-dots .case-nav-btn {
        position: static;
        top: auto;
        bottom: auto;
        transform: none;
        margin: 0 8px;
    }
    /* 尺寸與其他區一致 */
    .case-nav-btn { width: 40px; height: 40px; font-size: 1rem; }
    /* 移除在 dots 列的彈跳效果 */
    .case-dots .case-nav-btn:hover,
    .case-dots .case-nav-btn:active { transform: none; box-shadow: var(--shadow-lg); }

.case-studies-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.case-study-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden; /* 為了滑入面板與遮罩效果，需裁切邊界 */
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: block; /* 以區塊呈現，圖片佔左側、右側為資訊面板 */
    padding: 12px 16px; /* 讓卡片更大且留白更舒適 */
    min-height: 620px; /* 拉大卡片高度 */
    position: relative; /* 供遮罩與浮出層定位 */
}

/* 額外放大帶有 fade-in-up 的卡片（若套用此 class） */
.case-study-card.fade-in-up {
    min-height: 680px;
    padding-left: 6px;  /* 降低左右內距以縮小圖片兩側空隙 */
    padding-right: 6px;
}

/* 需求：當 hover 時卡片不要有往上移動畫面 */
.case-study-card:hover {
    transform: none;
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

/* Case card dim overlay */
.case-study-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 2; /* 低於補充資訊面板 */
    pointer-events: none;
}

.case-study-card:hover::before {
    opacity: 1;
}

.case-study-image {
    position: relative;
    width: 100%; /* 還原圖片為卡片寬度 */
    max-width: none; /* 讓圖片填滿左側可用區域 */
    margin: 8px 0; /* 縮小上下留白，讓左右空隙視覺更小 */
    aspect-ratio: 16 / 9; /* 保持常見比例 */
    overflow: visible;
    flex-shrink: 0;
    background: transparent; /* 移除左右黑色背景 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px; /* 圓角更順 */
    z-index: 1; /* 低於補充內容層級 */
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 不裁切，完整顯示 */
    object-position: center; /* 垂直水平置中 */
    display: block;
    transition: transform 0.3s ease;
}

.case-study-card:hover .case-study-image {
    transform: none; /* 取消圖片浮起 */
    box-shadow: none;
    z-index: 1;
}
.case-study-card:hover .case-study-image img {
    transform: none; /* 取消圖片放大 */
}

.case-study-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0; /* 預設關閉，以確保圖片完整顯示 */
    transition: opacity 0.3s ease;
}

.case-study-card:hover .case-study-overlay {
    opacity: 0; /* 取消浮層顯示 */
}

.case-study-info h4 {
    color: var(--white);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.case-study-info p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.case-study-content {
    position: absolute;
    top: 50%;
    right: 24px; /* 改為卡片內部右側，避免被外層 overflow 剪裁 */
    left: auto;
    transform: translate(10px, -50%) scale(0.98); /* 預設位移 + 輕微縮放 */
    width: clamp(260px, 32%, 360px); /* 自適應寬度，避免超出卡片 */
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    opacity: 0; /* 預設不顯示補充內容 */
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 5; /* 高於圖片，確保不被擋住 */
}

/* 需求更新：改用底部滑入補充資訊，停用原右側浮出資訊 */
.case-study-card:hover .case-study-content {
    opacity: 0;
    pointer-events: none;
}

/* 圖片與右側資訊之間的分隔線 */
/* 需求：移除圖片與補充之間的分隔線 */
.case-study-card::after { content: none; }
.case-study-card:hover::after { content: none; }

.case-study-content h3 {
    color: var(--text-color);
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.case-study-content p {
    color: var(--text-light);
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

.case-study-stats {
    display: flex;
    gap: 1.5rem;
    justify-content: center; /* 置中顯示統計項目 */
    align-items: center;
}

.case-study-stats .stat {
    text-align: center;
    flex: 1;
}

.case-study-stats .stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--secondary-color);
    text-shadow: 0 0 10px rgba(0, 212, 170, 0.3);
    margin-bottom: 0.25rem;
}

.case-study-stats .stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Case analysis collapsible panel */
.case-analysis {
    margin-top: 12px;
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 3; /* 高於遮罩 */
}

.case-analysis-toggle {
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
}

/* Hover tooltip for analysis toggle */
.case-analysis-toggle {
    position: relative;
}

.case-analysis-toggle::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.case-analysis-toggle:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

.case-analysis-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
    transition: transform 0.25s ease;
}

.case-analysis-toggle i {
    transition: transform 0.25s ease;
}


/* 預設隱藏於卡片底部，待滑入顯示 */
.case-study-card .case-analysis-panel {
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.35s ease, opacity 0.35s ease, max-height 0.35s ease;
    background: rgba(38, 38, 38, 0.92);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 14px;
    pointer-events: none;
    max-height: clamp(120px, 28%, 220px); /* 限制高度，避免遮擋太多圖片 */
}

/* 滑鼠懸停卡片時由下往上滑入，並可互動 */
.case-study-card:hover .case-analysis-panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* 面板內文縮排與字級調整，減少占用空間 */
.case-analysis-panel h3 {
    margin: 0 0 6px 0;
    font-size: 1.05rem;
}

.case-analysis-panel p {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.case-analysis-panel .case-study-stats {
    gap: 0.75rem;
    justify-content: center; /* 於彈出面板中亦置中 */
    align-items: center;
}

.case-analysis-panel .case-study-stats .stat {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.case-analysis-panel .case-study-stats .stat-number {
    font-size: 1.4rem;
}

.case-analysis-panel .case-study-stats .stat-label {
    font-size: 0.8rem;
}

/* 在小螢幕上再緊湊一點 */
@media (max-width: 768px) {
    .case-study-card .case-analysis-panel {
        max-height: clamp(120px, 34%, 200px);
        padding: 10px 12px;
    }
    .case-analysis-panel h3 { font-size: 1rem; }
    .case-analysis-panel p { font-size: 0.88rem; }
    .case-analysis-panel .case-study-stats .stat-number { font-size: 1.3rem; }
}

.analysis-item + .analysis-item {
    border-top: 1px solid var(--border-color);
    margin-top: 12px;
    padding-top: 12px;
}

.analysis-item h4 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    color: var(--text-color);
}

.analysis-item p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 桌面環境下隱藏切換按鈕，以 hover 互動為主；行動裝置仍保留 */
@media (hover: hover) and (pointer: fine) {
    .case-study-card .case-analysis-toggle {
        display: none;
    }
}

/* Solution Section */
.solution {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
}

.solution::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 70% 20%, rgba(212, 175, 55, 0.025) 0%, transparent 50%),
        radial-gradient(circle at 30% 80%, rgba(212, 175, 55, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

/* Solution slider layout */
.solution-container {
    position: relative;
    margin-top: 2rem;
    padding: 20px 60px;
    overflow: hidden;
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.solution-slider {
    overflow: hidden;
    border-radius: 0;
    width: 100%;
    padding: 12px 0;
    margin: 0 auto;
    max-width: 1024px;
}

.solution-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    width: max-content;
}

/* Solution dots (與 problems dots 一致) */
.solution-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.solution-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.solution-dots .dot.active { background: var(--secondary-color); transform: scale(1.2); box-shadow: 0 0 10px rgba(212,175,55,0.4); }
.solution-dots .dot:hover { background: var(--secondary-color); transform: scale(1.1); }

.solution-card {
    background: var(--gradient-surface);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 1;
    overflow: visible; /* 與問題卡片一致，讓上方金框可微溢出 */
    flex: 0 0 320px;
    min-width: 320px;
    max-width: 320px;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0; /* 貼齊頂部 */
    left: 0;
    right: 0;
    height: 4px; /* 細條金框 */
    background: var(--gradient-gold);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px 20px 0 0;
}

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

.solution-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    background: rgba(0, 212, 170, 0.08);
    box-shadow: var(--shadow-xl);
}

.solution-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--gradient-gold);
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    opacity: 0.9;
}

.solution-nav-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 50%, #b8860b 100%);
    opacity: 1;
}

.solution-nav-btn.prev { left: 2px; }
.solution-nav-btn.next { right: 6px; }

.solution-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.solution-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.solution-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.feature-demo {
    margin-top: 1.5rem;
}

.accuracy-meter {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.meter {
    width: 100px;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), #68d391);
    transition: width 0.3s ease;
}

.price-levels {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.level {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
}

.level.support {
    background: #e6fffa;
    color: var(--secondary-color);
}

.level.resistance {
    background: #fed7d7;
    color: var(--accent-color);
}

.time-slots {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.slot {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
}

.slot.day {
    background: #e6fffa;
    color: var(--secondary-color);
}

.slot.night {
    background: #f7fafc;
    color: var(--primary-color);
}

.risk-management {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.risk-item {
    padding: 0.5rem 1rem;
    background: #f0fff4;
    border-radius: 6px;
    color: var(--secondary-color);
    font-weight: 500;
}


/* Trial Section */
.trial {
    padding: 100px 0;
    background: var(--bg-color);
    position: relative;
}

.trial::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 212, 170, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 107, 107, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.trial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.trial-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.trial-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    background: rgba(0, 212, 170, 0.05);
    box-shadow: var(--shadow-lg);
}

.trial-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.3);
}

.trial-icon i {
    font-size: 2rem;
    color: var(--white);
}

.trial-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.trial-features {
    list-style: none;
    margin: 1.5rem 0;
    text-align: center;
}

.trial-features li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.trial-features i {
    color: var(--secondary-color);
}

.trial-qr {
    margin: 1.5rem 0;
}

.qr-code {
    width: 80px;
    height: 80px;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
}

.qr-code i {
    font-size: 2rem;
    color: var(--text-light);
}

/* Social Proof Section */
.social-proof {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
}

.social-proof::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(0, 212, 170, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 107, 107, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.testimonials-container {
    position: relative;
    margin-bottom: 3rem;
    z-index: 1;
}

.testimonials-slider {
    display: flex;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.testimonial-card {
    min-width: 100%;
    background: var(--bg-tertiary);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-color);
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #2d5a87);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar i {
    color: var(--white);
    font-size: 1.2rem;
}

.author-info h4 {
    margin: 0;
    color: var(--text-color);
}

.author-info span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.testimonial-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.testimonial-btn:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.3);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.stat-item .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(0, 212, 170, 0.5);
}

.stat-item .stat-label {
    color: var(--text-light);
    font-weight: 500;
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background: var(--bg-color);
    position: relative;
}

.faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 50% 30%, rgba(0, 212, 170, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 70%, rgba(255, 107, 107, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* FAQ 分類標題 */
.faq-category {
    margin: 3rem 0 2rem 0;
    text-align: center;
    position: relative;
}

.faq-category:first-child {
    margin-top: 2rem;
}

.faq-category-title {
    display: inline-block;
    background: var(--gradient-gold);
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 1;
}

.faq-category-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-gold);
    border-radius: 25px;
    opacity: 0.1;
    z-index: -1;
}

.faq-item {
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-gold);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-item:hover::before {
    opacity: 1;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.faq-question:hover {
    background: rgba(212, 175, 55, 0.05);
}

.faq-question h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
    padding-right: 1rem;
}

.faq-question i {
    color: var(--secondary-color);
    transition: all 0.3s ease;
    font-size: 1rem;
    flex-shrink: 0;
}

.faq-question:hover i {
    color: var(--gold-medium);
    transform: scale(1.1);
}

.faq-question.active i {
    transform: rotate(180deg);
    color: var(--gold-medium);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(38, 38, 38, 0.3);
}

.faq-answer.active {
    padding: 0 1.5rem 1.5rem;
    max-height: 1000px;
}

.faq-answer p {
    margin: 0 0 1rem 0;
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

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

.faq-answer ul,
.faq-answer ol {
    margin: 0.5rem 0 1rem 0;
    padding-left: 1.5rem;
    color: var(--text-light);
}

.faq-answer li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.faq-answer strong {
    color: var(--secondary-color);
    font-weight: 600;
}

/* FAQ 響應式設計 */
@media (max-width: 768px) {
    .faq-container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .faq-category-title {
        font-size: 1rem;
        padding: 0.6rem 1.5rem;
    }
    
    .faq-question {
        padding: 1.25rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
        padding-right: 0.75rem;
    }
    
    .faq-answer {
        padding: 0 1.25rem;
    }
    
    .faq-answer.active {
        padding: 0 1.25rem 1.25rem;
        max-height: 1000px;
    }
    
    .faq-answer ul,
    .faq-answer ol {
        padding-left: 1.25rem;
    }
}

@media (max-width: 480px) {
    .faq {
        padding: 80px 0;
    }
    
    .faq-category {
        margin: 2rem 0 1.5rem 0;
    }
    
    .faq-category-title {
        font-size: 0.95rem;
        padding: 0.5rem 1.25rem;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-question h3 {
        font-size: 0.95rem;
    }
    
    .faq-answer {
        padding: 0 1rem;
    }
    
    .faq-answer.active {
        padding: 0 1rem 1rem;
        max-height: 1000px;
    }
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: var(--gradient-primary);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 2rem;
}

.cta-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.cta-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.step-content h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.step-content p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.cta-arrow {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.urgency-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 107, 107, 0.2);
    border-radius: 8px;
    color: #ffb3ba;
    font-weight: 500;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(0, 212, 170, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 107, 107, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.contact-item i {
  width: 40px;
  height: 40px;
  background: var(--secondary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0, 212, 170, 0.3);
  flex-shrink: 0;
}

.contact-item div {
  flex: 1;
}

.contact-item strong {
  color: var(--secondary-color);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.5rem;
}

.line-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.line-link:hover {
  color: var(--gold-medium);
  text-decoration: underline;
}

.contact-benefits {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-tertiary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.contact-benefits h3 {
  color: var(--text-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.benefits-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-light);
  font-size: 0.95rem;
}

.benefits-list i {
  color: var(--secondary-color);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.line-qr-section {
  text-align: center;
  padding: 2rem;
  background: var(--bg-tertiary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.line-qr-section h3 {
  color: var(--text-color);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.qr-code-container {
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
}

.qr-code-image {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.qr-code-image:hover {
  transform: scale(1.05);
}

.qr-description {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.contact-form {
    background: var(--bg-tertiary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--bg-color);
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(0, 212, 170, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--bg-color);
    color: var(--text-color);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.footer-section h3,
.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.footer-section:first-child {
    text-align: center;
}

.footer-section:nth-child(2) {
    text-align: center;
}

.footer-section:last-child {
    text-align: center;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    color: var(--text-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 0 15px rgba(0, 212, 170, 0.3);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.disclaimer {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.7;
  border: 1px solid rgba(245, 158, 11, 0.2);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.disclaimer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--warning-color);
  border-radius: 12px 0 0 12px;
}

.disclaimer p {
  margin: 0;
  color: var(--text-light);
}

.disclaimer strong {
  color: var(--warning-color);
  font-weight: 700;
}

.copyright {
    text-align: center;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .stat {
        min-width: 90px;
        padding: 1rem;
        flex: 1;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-cta {
        justify-content: center;
        gap: 1rem;
    }
    
    .hero-features {
        padding: 1.5rem;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .feature-highlight {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .feature-highlight:hover {
        transform: translateY(-3px);
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    
    .cta-steps {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-arrow {
        transform: rotate(90deg);
    }
    
    .contact-container {
      grid-template-columns: 1fr;
    }
    
    .footer-content {
      grid-template-columns: 1fr;
      gap: 2rem;
      text-align: center;
    }
    
    .contact-benefits {
      margin-top: 1.5rem;
      padding: 1.25rem;
    }
    
    .line-qr-section {
      padding: 1.5rem;
    }
    
    .qr-code-image {
      width: 180px;
      height: 180px;
    }
    
    .trial-grid {
        grid-template-columns: 1fr;
    }
    
    .problems-container {
        padding: 15px 24px; /* 收斂側邊內距，避免卡片被裁切 */
        max-width: 1600px; /* 調整平板設備的最大寬度 */
    }
    
    .problems-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .problems-nav-btn.prev {
        left: 4px; /* 再微調更靠左 */
    }
    
    .problems-nav-btn.next {
        right: 10px; /* 與左側保持一致的內距 */
    }
    
    .problems-track {
        width: max-content; /* 讓軌道寬度適應所有卡片 */
    }
    
    .problem-card {
        flex: 0 0 320px;
        min-width: 320px;
        max-width: 320px;
        min-height: 480px; /* 保留最小高度，允許內容撐高 */
        height: auto;
        padding: var(--space-4);
    }
    
    .solution-card { padding: var(--space-4); }
    .solution-container { padding: 15px 24px; }
    .solution-nav-btn { width: 40px; height: 40px; font-size: 1rem; }
    /* 讓解決方案區按鈕在行動裝置時與 dots 同列 */
    .solution-dots { display: flex; align-items: center; justify-content: center; gap: 12px; }
    .solution-dots .solution-nav-btn {
        position: static;
        top: auto;
        bottom: auto;
        transform: none;
        margin: 0 8px;
    }
    
    .case-studies-grid {
        max-width: 100%;
    }
    
    /* 平板與大手機：把痛點左右按鈕移至底部圓點兩側，避免貼到卡片 */
    /* 先重置先前在卡片容器內的左右定位，避免與下方規則衝突 */
    .problems-nav-btn.prev,
    .problems-nav-btn.next { left: auto; right: auto; }
    .problems-nav-btn {
        top: auto;
        bottom: 6px;
        transform: none;
        z-index: 11;
    }
    .problems-nav-btn.prev { left: calc(50% - 120px); right: auto; }
    .problems-nav-btn.next { left: calc(50% + 120px); right: auto; }

    .case-study-card {
        flex-direction: column;
        text-align: center;
    }
    
    .case-study-image {
        width: 100%;
        max-width: none;
        aspect-ratio: 16 / 9;
        height: auto;
        margin: 12px auto 10px;
    }
    
    .case-study-content {
        position: absolute;
        left: 50%;
        bottom: 12px;
        top: auto;
        transform: translate(-50%, 10px);
        width: calc(100% - 36px);
        margin: 0;
        padding: 12px 14px;
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        box-shadow: var(--shadow-lg);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
    }
    .case-study-card:hover .case-study-content {
        opacity: 1;
        transform: translate(-50%, 0);
        pointer-events: auto;
    }
    
    .case-study-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-slider {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .stat {
        width: 100%;
        max-width: 200px;
    }
    
    .hero-features {
        padding: 1rem;
        gap: 1.5rem;
    }
    
    .feature-highlight {
        padding: 1rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
    }
    
    .feature-icon i {
        font-size: 1.2rem;
    }
    
    .feature-highlight h3 {
        font-size: 1.1rem;
    }
    
    .feature-highlight p {
        font-size: 0.9rem;
    }
    
    .case-study-image {
        width: 100%;
        max-width: none;
        aspect-ratio: 16 / 9;
        height: auto;
        margin: 10px auto 8px;
    }
    
    .case-study-content {
        padding: 1rem;
    }
    
    .case-study-content h3 {
        font-size: 1.1rem;
    }
    
    .case-study-stats .stat-number {
        font-size: 1.5rem;
    }
    
    .case-studies-grid {
        gap: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .contact-benefits {
      margin-top: 1rem;
      padding: 1rem;
    }
    
    .line-qr-section {
      padding: 1.25rem;
    }
    
    .qr-code-image {
      width: 160px;
      height: 160px;
    }
    
    .benefits-list li {
      font-size: 0.9rem;
    }
    
    .disclaimer {
      padding: 1.25rem;
      font-size: 0.85rem;
    }
    
    .problems-container {
        padding: 10px 12px; /* 手機側邊內距最小化，確保單卡完整顯示 */
        max-width: 1400px; /* 調整手機設備的最大寬度 */
    }
    
    .problems-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .problems-nav-btn.prev {
        left: 4px; /* 再微調更靠左 */
    }
    
    .problems-nav-btn.next {
        right: 10px; /* 與左側保持一致的內距 */
    }
    
    .problems-track {
        width: max-content; /* 讓軌道寬度適應所有卡片 */
    }
    
    .problem-card {
        flex: 0 0 300px;
        min-width: 300px;
        max-width: 300px;
        min-height: 460px; /* 保留最小高度，允許內容撐高 */
        height: auto;
        padding: var(--space-4);
    }
    
    .problem-card h3 {
        font-size: var(--text-lg);
    }
    
    .problem-icon {
        width: 56px;
        height: 56px;
    }
    
    .problem-icon i {
        font-size: var(--text-xl);
    }
    
    .solution-card { padding: var(--space-4); }
    
    .solution-card h3 {
        font-size: var(--text-lg);
    }
    
    .solution-icon {
        width: 56px;
        height: 56px;
    }
    
    .solution-icon i {
        font-size: var(--text-xl);
    }

    .solution-container { padding: 10px 12px; }
    .solution-nav-btn { width: 35px; height: 35px; font-size: 0.9rem; }
    .solution-nav-btn.prev { left: 4px; }
    .solution-nav-btn.next { right: 10px; }
    .case-dots .case-nav-btn {
        position: static;
        top: auto;
        bottom: auto;
        transform: none;
        margin: 0 6px;
    }
    /* 尺寸與其他區一致（小手機） */
    .case-nav-btn { width: 35px; height: 35px; font-size: 0.9rem; }
    .case-dots .case-nav-btn:hover,
    .case-dots .case-nav-btn:active { transform: none; box-shadow: var(--shadow-lg); }
    
    .back-to-top {
        bottom: calc(16px + env(safe-area-inset-bottom));
        right: max(16px, env(safe-area-inset-right));
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .testimonials-slider {
        margin-bottom: 1.25rem;
    }

    /* 小手機：維持按鈕在 dots 左右，使用彈性佈局 */
    .problems-nav-btn.prev,
    .problems-nav-btn.next { left: auto; right: auto; }
    .problems-dots {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    .problems-dots .problems-nav-btn {
        position: static;
        top: auto;
        bottom: auto;
        transform: none; /* 修正位移導致的消失問題 */
        margin: 0 6px;
    }
    .solution-dots .solution-nav-btn { position: static; margin: 0 6px; }

    /* 小手機：移除 hover/active 的位移放大效果，避免一高一低或抖動 */
    .problems-dots .problems-nav-btn:hover,
    .problems-dots .problems-nav-btn:active,
    .solution-dots .solution-nav-btn:hover,
    .solution-dots .solution-nav-btn:active {
        transform: none;
        box-shadow: var(--shadow-lg);
    }
}

/* 針對 iPhone 14 Pro Max 尺寸（430x932）強制 Hero CTA 垂直排列且順序與小機種一致 */
@media (width: 430px) and (height: 932px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    .hero-cta .btn { width: auto; align-self: center; }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes goldPulse {
    0% {
        text-shadow: 
            0 0 15px rgba(212, 175, 55, 0.3),
            0 0 25px rgba(212, 175, 55, 0.1);
    }
    50% {
        text-shadow: 
            0 0 20px rgba(212, 175, 55, 0.5),
            0 0 35px rgba(212, 175, 55, 0.3),
            0 0 50px rgba(212, 175, 55, 0.1);
    }
    100% {
        text-shadow: 
            0 0 15px rgba(212, 175, 55, 0.3),
            0 0 25px rgba(212, 175, 55, 0.1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-left {
    animation: fadeInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-right {
    animation: fadeInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in {
    animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-down {
    animation: slideInDown 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom));
    right: max(20px, env(safe-area-inset-right));
    width: 50px;
    height: 50px;
    background: var(--gradient-gold);
    color: var(--primary-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
}

.back-to-top.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 50%, #b8860b 100%);
}

    .back-to-top:active {
        transform: translateY(-1px);
    }
    
    .disclaimer {
      padding: 1rem;
      font-size: 0.8rem;
    }
    
    .footer-content {
      gap: 1.5rem;
    }

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-2 {
    margin-top: 1rem;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* ========================= */
/* Tablet and Mobile Add-ons */
/* 非侵入式：僅在小尺寸覆蓋，桌面維持原樣 */
@media (max-width: 1023px) {
    /* 媒體無損自適應 */
    img, video, canvas, svg {
        max-width: 100%;
        height: auto;
    }

    /* 平板整體間距微調，避免擁擠 */
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Hero 區適度收斂字級與間距（桌面保留不變） */
    .hero-container {
        gap: 3rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .hero-title {
        font-size: 3.25rem;
    }

    /* 滑動容器在平板邊距略縮，避免按鈕遮擋 */
    .problems-container,
    .solution-container,
    .case-studies-container {
        padding-left: 24px;
        padding-right: 24px;
    }
    /* 在行動/平板：按鈕作為 dots 兩側的鄰居，保持小間距（不靠兩邊） */
    .problems-dots {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }
    .problems-dots .problems-nav-btn {
        position: static;
        top: auto;
        bottom: auto;
        transform: none; /* 修正位移導致的消失問題 */
        margin: 0 8px;
    }
    /* 行動/平板：在圓點列中的按鈕不要有位移彈跳效果（hover/active） */
    .problems-dots .problems-nav-btn:hover,
    .problems-dots .problems-nav-btn:active,
    .solution-dots .solution-nav-btn:hover,
    .solution-dots .solution-nav-btn:active {
        transform: none;
        box-shadow: var(--shadow-lg);
    }
}

@media (max-width: 767px) {
    /* 手機字級、段落與區塊間距漸進縮小（不影響桌面） */
    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.6rem; }
    p { font-size: 0.95rem; }

    .section-title { margin-bottom: 1rem; }
    .section-subtitle { margin-bottom: 2.5rem; }

    /* 主要區塊上下留白再收斂 */
    .hero { padding: 120px 0 80px; }
    .problems, .solution, .case-studies, .trial, .faq, .contact, .cta {
        padding-top: 80px;
        padding-bottom: 80px;
    }
}

/* ===================================================== */
/* 全裝置細分斷點（非侵入式，僅在對應寬度覆蓋） */
/* 1) 超小手機：iPhone SE 等（<=374px） */
@media (max-width: 374px) {
    .container { padding-left: 12px; padding-right: 12px; }
    .hero-title { font-size: 1.7rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-features { min-width: auto; max-width: 100%; }
    .feature-highlight { padding: 0.9rem; }
}

/* 2) 標準手機：375-414px（iPhone 14 Pro / XR / Pixel 7） */
@media (min-width: 375px) and (max-width: 414px) {
    .container { padding-left: 14px; padding-right: 14px; }
    .hero-title { font-size: 1.9rem; }
    .hero-features { min-width: auto; max-width: 100%; }
}

/* 折疊機（Z Fold 5/Asus Zenbook Fold 展開/闔上）微調：確保滑動區域與卡片比例 */
@media (width: 360px) and (height: 740px) { /* Galaxy Z Fold 闔上近似尺寸 */
    .problems-slider, .solution-slider { max-width: 100%; }
    .problem-card, .solution-card { min-width: 300px; max-width: 300px; }
}

@media (min-width: 884px) and (max-width: 900px) and (min-height: 830px) and (max-height: 860px) {
    .container { max-width: 92%; }
    .hero-container { gap: 3rem; }
}

/* Nest Hub / Nest Hub Max（寬高固定設備）排版密度優化 */
@media (width: 1024px) and (height: 600px), (width: 1280px) and (height: 800px) {
    .section-title { font-size: 2.2rem; }
    .section-subtitle { margin-bottom: 2.5rem; }
    .hero { padding: 110px 0 80px; }
    .hero-title { font-size: 2.6rem; }
    .hero-container { gap: 2.5rem; }
    .trial-grid { grid-template-columns: 1fr 1fr; }
}

/* 3) 大手機：415-480px（iPhone 14 Pro Max / Galaxy S） */
@media (min-width: 415px) and (max-width: 480px) {
    .container { padding-left: 16px; padding-right: 16px; }
    .hero-title { font-size: 2rem; }
}

/* 4) 小平板 / 折疊展開：481-767px */
@media (min-width: 481px) and (max-width: 767px) {
    .container { padding-left: 18px; padding-right: 18px; }
}

/* 5) 標準平板：768-1024px */
@media (min-width: 768px) and (max-width: 1024px) {
    .container { padding-left: 20px; padding-right: 20px; }
}

/* 6) 大平板：1025-1366px（iPad Pro / Surface Pro） */
@media (min-width: 1025px) and (max-width: 1366px) {
    .container { max-width: 95%; }
}

/* 7) 桌面 1367px+ 維持現有樣式，不覆蓋 */

/* 特殊小螢幕溢出修正：避免內容超出視窗寬 */
@media (max-width: 480px) {
    .hero-container { padding-left: 1rem; padding-right: 1rem; }
    .hero-features { min-width: 0; max-width: 100%; width: 100%; }
    /* 小手機：縮短與 dots 的距離 */
    .problems-dots .problems-nav-btn.prev { left: -48px; }
    .problems-dots .problems-nav-btn.next { right: -48px; }
}
