/* intro.css */

/* === [新增] 全螢幕 Loading 遮罩 === */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-gradient);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #2c3e50;
    text-align: center;
}

.loader-content i {
    font-size: 40px;
    margin-bottom: 15px;
    color: #d97761;
}

.loader-content p {
    font-size: 16px;
    color: #7f8c8d;
    font-weight: 500;
    letter-spacing: 1px;
    margin: 0; /* 覆蓋全域 p 的 margin */
}

:root {
    --bg-gradient: linear-gradient(135deg, #faf9f8 0%, #f3ebe3 50%, #ede3d9 100%);
    --card-bg: rgba(255, 255, 255, 0.95);
    --text: #2c3e50;
    --primary: #d97761;
    --update-banner-bg: #2d3436;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

body {
    background: var(--bg-gradient);
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    padding: 0;
}

.intro-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* === 滑動軌道 === */
.slider {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.slider::-webkit-scrollbar { display: none; }

/* === 單張卡片基礎樣式 === */
.card {
    min-width: 100vw; 
    width: 100vw;
    height: 100%;
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 25px; /* 稍微增加左右 padding */
}

.card-content {
    background: var(--card-bg);
    padding: 40px 25px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 360px;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.8s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

/* 卡片通用元素 */
.icon-circle {
    width: 70px; /* 稍微縮小圖示 */
    height: 70px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(217, 119, 97, 0.18);
    flex-shrink: 0;
}

h2 { margin-bottom: 15px; color: var(--text); font-size: 22px; }
p { color: #666; line-height: 1.5; font-size: 15px; margin-bottom: 20px; }

/* === 歡迎卡片特定樣式 === */
.welcome-title {
    font-size: 32px;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.2;
}
.author-tag {
    font-size: 18px;
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 30px;
}
.welcome-deco {
    display: flex;
    gap: 15px;
    font-size: 24px;
    color: var(--text);
    opacity: 0.3;
    margin-top: 20px;
}

/* === [新增] 快速通道與提示樣式 === */
.quick-access {
    margin-top: 40px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.quick-login-btn {
    background: white;
    border: 1px solid #e8e3dd;
    color: var(--text);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.quick-login-btn:hover {
    background: #f5f0eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.quick-login-btn i {
    color: #DB4437; /* Google Red */
}

.swipe-hint {
    font-size: 16px;     
    font-weight: 600;    
    color: #7f8c8d;          
    display: flex;
    align-items: center;
    gap: 8px;             
    opacity: 0.9;         
    margin-top: 5px;      
    animation: slideRight 1.5s infinite;
}

@keyframes slideRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); } 
}

/* 微調歡迎卡片 padding 讓按鈕放得下 */
.welcome-card {
    padding-top: 30px;
}

/* === PWA 安裝教學樣式 === */
.pwa-instructions {
    width: 100%;
    text-align: left;
    background: #f9f4f0;
    border-radius: 15px;
    padding: 15px;
}
.pwa-step {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-start;
}
.pwa-step:last-child { margin-bottom: 0; }

.step-icon {
    font-size: 24px;
    color: var(--text);
    width: 30px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.step-text {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}
.step-text strong {
    color: var(--text);
    font-size: 14px;
    display: block;
    margin-bottom: 4px;
}

/* === 最終頁：身分選擇 === */
.identity-selection {
    display: flex;
    gap: 10px;
    margin: 10px 0 25px 0;
    width: 100%;
}

.id-option { flex: 1; cursor: pointer; }
.id-option input { display: none; }

.id-box {
    border: 2px solid #eee;
    border-radius: 15px;
    padding: 12px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.2s;
    color: #888;
    height: 100%;
}

.id-box i { font-size: 18px; margin-bottom: 6px; }
.id-box span { font-weight: bold; font-size: 13px; margin-bottom: 4px; }
.id-box small { font-size: 10px; }

.id-option input:checked + .id-box {
    border-color: var(--primary);
    background: #eaf2fa;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(74, 144, 226, 0.2);
}

/* Google 按鈕 */
.google-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 50px;
    background: #d97761;
    color: white;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.2s;
    box-shadow: 0 6px 16px rgba(217, 119, 97, 0.18);
}
.google-btn:hover { background: #cf6d54; transform: scale(1.02); }

/* === 底部控制區 === */
.controls {
    padding: 20px 25px 35px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.dots { display: flex; gap: 6px; }
.dot {
    width: 6px;
    height: 6px;
    background: rgba(127,140,141,0.3);
    border-radius: 50%;
    transition: 0.3s;
}
.dot.active { background: #d97761; width: 18px; border-radius: 10px; }

.nav-btn {
    background: white;
    border: 1px solid #e8e3dd;
    color: #2c3e50;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s, background 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.nav-btn:active { background: #f5f0eb; }

.nav-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

 