/**
 * 選了吧 - 歡迎頁面樣式
 * 符合設計系統的公開首頁樣式
 */

/* ============================================
   容器與佈局
   ============================================ */
.welcome-container {
    max-width: var(--container-mobile-max, 414px);
    margin: 0 auto;
    padding: var(--spacing-xl, 20px);
    background-color: var(--color-bg-secondary, #f5f5f5);
    min-height: 100vh;
    font-family: var(--font-family-primary);
}

/* ============================================
   Hero 區域
   ============================================ */
.welcome-hero {
    text-align: center;
    padding: var(--spacing-4xl, 40px) var(--spacing-xl, 20px);
    background-color: var(--color-bg-primary, #ffffff);
    border: 2px solid var(--color-primary, #FF5733);
    border-radius: var(--radius-xl, 12px);
    margin-bottom: var(--spacing-3xl, 30px);
    box-shadow: var(--shadow-lg, 0 2px 10px rgba(0, 0, 0, 0.08));
}

.hero-content {
    color: var(--color-text-primary, #333333);
}

.hero-logo {
    margin-bottom: var(--spacing-xl, 20px);
}

.app-title {
    font-size: var(--font-size-3xl, 30px);
    font-weight: var(--font-weight-bold, 700);
    margin: 0 0 var(--spacing-sm, 8px) 0;
    color: var(--color-primary, #FF5733);
}

.app-subtitle {
    font-size: var(--font-size-lg, 18px);
    font-weight: var(--font-weight-medium, 500);
    margin: 0;
    color: var(--color-text-secondary, #444444);
}

.hero-description {
    margin-top: var(--spacing-xl, 20px);
}

.description-text {
    font-size: var(--font-size-base, 14px);
    line-height: 1.6;
    margin: 0;
    color: var(--color-text-secondary, #444444);
}

.description-text strong {
    font-weight: var(--font-weight-bold, 700);
    color: var(--color-accent, #FFD700);
}

/* ============================================
   功能介紹區域
   ============================================ */
.features-section {
    margin-bottom: var(--spacing-3xl, 30px);
}

.section-title {
    font-size: var(--font-size-2xl, 24px);
    font-weight: var(--font-weight-bold, 700);
    color: var(--color-text-primary, #333333);
    text-align: center;
    margin-bottom: var(--spacing-xl, 20px);
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl, 20px);
}

.feature-card {
    background-color: var(--color-bg-primary, #ffffff);
    border-radius: var(--radius-xl, 12px);
    padding: var(--spacing-xl, 20px);
    box-shadow: var(--shadow-md, 0 2px 4px rgba(0, 0, 0, 0.08));
    transition: transform var(--transition-base, 0.3s ease), box-shadow var(--transition-base, 0.3s ease);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl, 0 4px 12px rgba(0, 0, 0, 0.15));
}

.feature-icon {
    text-align: center;
    margin-bottom: var(--spacing-md, 12px);
}

.icon-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.icon-emoji {
    font-size: 48px;
    display: inline-block;
}

.feature-title {
    font-size: var(--font-size-lg, 18px);
    font-weight: var(--font-weight-bold, 700);
    color: var(--color-primary, #FF5733);
    margin: 0 0 var(--spacing-sm, 8px) 0;
    text-align: center;
}

.feature-description {
    font-size: var(--font-size-base, 14px);
    color: var(--color-text-secondary, #444444);
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

/* ============================================
   使用流程區域
   ============================================ */
.how-it-works-section {
    margin-bottom: var(--spacing-3xl, 30px);
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg, 15px);
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md, 12px);
    background-color: var(--color-bg-primary, #ffffff);
    border-radius: var(--radius-lg, 8px);
    padding: var(--spacing-lg, 15px);
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.05));
}

.step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--color-primary, #FF5733) 0%, var(--color-primary-dark, #D32F2F) 100%);
    color: var(--color-text-inverse, #ffffff);
    border-radius: var(--radius-full, 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg, 18px);
    font-weight: var(--font-weight-bold, 700);
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: var(--font-size-md, 16px);
    font-weight: var(--font-weight-bold, 700);
    color: var(--color-text-primary, #333333);
    margin: 0 0 var(--spacing-xs, 4px) 0;
}

.step-description {
    font-size: var(--font-size-sm, 12px);
    color: var(--color-text-tertiary, #565656);
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   行動呼籲區域
   ============================================ */
.cta-section {
    margin-bottom: var(--spacing-3xl, 30px);
}

.cta-content {
    background-color: var(--color-bg-primary, #ffffff);
    border: 2px solid var(--color-primary, #FF5733);
    border-radius: var(--radius-xl, 12px);
    padding: var(--spacing-3xl, 30px) var(--spacing-xl, 20px);
    text-align: center;
    box-shadow: var(--shadow-lg, 0 2px 10px rgba(0, 0, 0, 0.08));
}

.cta-title {
    font-size: var(--font-size-2xl, 24px);
    font-weight: var(--font-weight-bold, 700);
    color: var(--color-primary, #FF5733);
    margin: 0 0 var(--spacing-sm, 8px) 0;
}

.cta-description {
    font-size: var(--font-size-base, 14px);
    color: var(--color-text-secondary, #444444);
    margin: 0 0 var(--spacing-xl, 20px) 0;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm, 8px);
    background-color: var(--color-primary, #FF5733);
    color: var(--color-text-inverse, #ffffff);
    padding: var(--spacing-lg, 15px) var(--spacing-3xl, 30px);
    border-radius: var(--radius-lg, 8px);
    font-size: var(--font-size-lg, 18px);
    font-weight: var(--font-weight-bold, 700);
    text-decoration: none;
    transition: all var(--transition-base, 0.3s ease);
    box-shadow: var(--shadow-md, 0 2px 4px rgba(0, 0, 0, 0.1));
    border: 2px solid var(--color-primary, #FF5733);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl, 0 4px 12px rgba(0, 0, 0, 0.15));
    background-color: var(--color-primary-dark, #D32F2F);
    border-color: var(--color-primary-dark, #D32F2F);
}

.cta-button:active {
    transform: translateY(0);
}

.button-text {
    display: inline-block;
}

.button-icon {
    display: inline-block;
    font-size: var(--font-size-xl, 20px);
    transition: transform var(--transition-base, 0.3s ease);
}

.cta-button:hover .button-icon {
    transform: translateX(4px);
}

/* ============================================
   響應式設計
   ============================================ */
@media (min-width: 768px) {
    .welcome-container {
        max-width: var(--container-tablet, 768px);
        padding: var(--spacing-3xl, 30px);
    }

    .features-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-xl, 20px);
    }

    .steps-container {
        max-width: 600px;
        margin: 0 auto;
    }

    .app-title {
        font-size: 36px;
    }

    .section-title {
        font-size: 28px;
    }
}

@media (min-width: 1200px) {
    .welcome-container {
        max-width: var(--container-desktop, 1200px);
    }
}

/* ============================================
   動畫效果
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card {
    animation: fadeInUp 0.6s ease-out;
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

.step-item {
    animation: fadeInUp 0.6s ease-out;
}

.step-item:nth-child(1) {
    animation-delay: 0.1s;
}

.step-item:nth-child(2) {
    animation-delay: 0.2s;
}

.step-item:nth-child(3) {
    animation-delay: 0.3s;
}

.step-item:nth-child(4) {
    animation-delay: 0.4s;
}

