/* CTA 組件樣式 - 基於 fundraising.css 原本樣式 */
.cta-section {
    padding: 5rem 0;
    background: var(--gradient-beacon);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 30% 70%, rgba(0, 245, 212, 0.2) 0%, transparent 50%);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cta-title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, rgba(0, 245, 212, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: white; /* 為不支持 background-clip 的瀏覽器提供備用顏色 */
    text-shadow: 0 0 30px rgba(0, 245, 212, 0.5);
    animation: ctaTitleGlow 4s ease-in-out infinite alternate;
}

.cta-description {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9); /* 確保在深色背景上有足夠對比度 */
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid white;
    color: var(--text-primary);
    font-weight: 600;
    padding: 1.2rem 2.5rem;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
}



.btn-cta.primary {
    background: var(--primary, #00f5d4);
    color: white;
    border-color: var(--primary, #00f5d4);
    box-shadow: 0 4px 15px rgba(0, 245, 212, 0.3);
}

.btn-cta.primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

.btn-cta.secondary {
    background: transparent;
    color: var(--primary, #00f5d4);
    border: 2px solid var(--primary, #00f5d4);
}

.btn-cta.secondary:hover {
    background: var(--primary, #00f5d4);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 245, 212, 0.3);
}

.btn-cta i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-cta:hover i {
    transform: scale(1.1);
}

/* 按鈕文字樣式 */
.btn-cta .btn-text {
    display: inline-block;
    transition: all 0.3s ease;
}

/* 按鈕徽章樣式 */
.btn-cta .btn-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm, 4px);
    margin-left: 0.5rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.btn-cta.secondary .btn-badge {
    background: rgba(0, 245, 212, 0.1);
    color: var(--primary, #00f5d4);
}

/* 按鈕狀態樣式 */
.btn-cta.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-cta.loading .btn-text::after {
    content: '';
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes ctaTitleGlow {
    from {
        text-shadow: 0 0 20px rgba(0, 245, 212, 0.5);
    }
    to {
        text-shadow: 0 0 40px rgba(0, 245, 212, 0.8);
    }
}

/* 按鈕變體樣式 */
.btn-cta.outline {
    background: transparent;
    color: var(--primary, #00f5d4);
    border: 2px solid var(--primary, #00f5d4);
}

.btn-cta.outline:hover {
    background: var(--primary, #00f5d4);
    color: white;
}

.btn-cta.ghost {
    background: transparent;
    color: var(--text-secondary, #666);
    border: 1px solid transparent;
}

.btn-cta.ghost:hover {
    background: rgba(0, 245, 212, 0.1);
    color: var(--primary, #00f5d4);
    border-color: rgba(0, 245, 212, 0.2);
}

.btn-cta.small {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    min-width: 140px;
}

.btn-cta.large {
    padding: 1.25rem 2.5rem;
    font-size: 1.2rem;
    min-width: 220px;
}

/* 通用按鈕樣式 - 整合自 fundraising.css */
.btn-primary {
    background: var(--gradient-primary, linear-gradient(135deg, #00f5d4 0%, #00c4a3 100%));
    border: none;
    color: white;
    font-weight: 600;
    padding: 1.2rem 2rem;
    border-radius: var(--radius-md, 8px);
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-primary::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-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 245, 212, 0.3);
    color: white;
    text-decoration: none;
}

.btn-primary i {
    font-size: 1.1rem;
}

.btn-primary-large {
    padding: 1.5rem 3rem;
    font-size: 1.2rem;
}

.btn-secondary {
    background: rgba(0, 245, 212, 0.1);
    border: 2px solid var(--primary, #00f5d4);
    color: var(--primary, #00f5d4);
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: var(--radius-md, 8px);
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--primary, #00f5d4);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-secondary i {
    font-size: 1.1rem;
}

/* 下載按鈕樣式 */
.download-btn {
    background: rgba(0, 245, 212, 0.1);
    border: 2px solid var(--primary, #00f5d4);
    color: var(--primary, #00f5d4);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md, 8px);
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.download-btn:hover {
    background: var(--primary, #00f5d4);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

.download-btn i {
    font-size: 1rem;
}

/* 評估按鈕樣式 */
.btn-evaluation {
    background: var(--gradient-primary, linear-gradient(135deg, #00f5d4 0%, #00c4a3 100%));
    border: none;
    color: white;
    font-weight: 600;
    padding: 1.5rem 3rem;
    border-radius: var(--radius-md, 8px);
    font-size: 1.2rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 245, 212, 0.3);
    cursor: pointer;
}

.btn-evaluation::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-evaluation:hover::before {
    left: 100%;
}

.btn-evaluation:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 245, 212, 0.4);
    color: white;
    text-decoration: none;
}

.btn-evaluation i {
    font-size: 1.1rem;
}

/* 募資按鈕樣式 */
.funding-btn {
    background: var(--gradient-primary, linear-gradient(135deg, #00f5d4 0%, #00c4a3 100%));
    border: none;
    color: white;
    font-weight: 600;
    padding: 1.2rem 2rem;
    border-radius: var(--radius-md, 8px);
    font-size: 1.05rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    text-align: center;
    margin-top: 1rem;
    position: relative;
    z-index: 3;
    overflow: hidden;
    cursor: pointer;
}

.funding-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 ease;
}

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

.funding-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 245, 212, 0.3);
    color: white;
    text-decoration: none;
}

/* 方案按鈕樣式 */
.plan-btn {
    background: var(--gradient-primary, linear-gradient(135deg, #00f5d4 0%, #00c4a3 100%));
    border: none;
    color: white;
    font-weight: 600;
    padding: 1.2rem 2rem;
    border-radius: var(--radius-md, 8px);
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.plan-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;
}

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

.plan-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 245, 212, 0.3);
    color: white;
    text-decoration: none;
}

.plan-btn.secondary {
    background: rgba(0, 245, 212, 0.1);
    border: 2px solid var(--primary, #00f5d4);
    color: var(--primary, #00f5d4);
}

.plan-btn.secondary:hover {
    background: var(--primary, #00f5d4);
    color: white;
}

/* 響應式按鈕樣式 */
@media (max-width: 768px) {
    .btn-primary,
    .btn-secondary,
    .download-btn,
    .btn-evaluation,
    .funding-btn,
    .plan-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .btn-primary-large {
        padding: 1.25rem 2rem;
        font-size: 1.1rem;
    }
}

/* 商務頁面專用CTA樣式 */
.cta-business {
    background: var(--gradient-beacon, linear-gradient(135deg, #667eea 0%, #764ba2 100%)) !important;
}

.cta-business .cta-title {
    text-shadow: 0 0 30px rgba(0, 245, 212, 0.5);
}

.cta-business .btn-cta.primary {
    background: var(--gradient-primary, linear-gradient(135deg, #00f5d4 0%, #00c4a3 100%));
    box-shadow: 0 8px 30px rgba(0, 245, 212, 0.4);
}

.cta-business .btn-cta.primary:hover {
    box-shadow: 0 12px 40px rgba(0, 245, 212, 0.5);
}

.cta-business .btn-cta.outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-business .btn-cta.outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary, #00f5d4);
}

/* 募資頁面專用CTA樣式 */
.cta-fundraising {
    background: var(--gradient-beacon, linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%)) !important;
}

.cta-fundraising .cta-title {
    color: var(--text-primary, #333);
}

.cta-fundraising .btn-cta.primary {
    background: var(--gradient-primary, linear-gradient(135deg, #00f5d4 0%, #00c4a3 100%));
}

.cta-fundraising .btn-cta.secondary {
    background: transparent;
    color: var(--primary, #00f5d4);
    border: 2px solid var(--primary, #00f5d4);
}

.cta-fundraising .btn-cta.secondary:hover {
    background: var(--primary, #00f5d4);
    color: white;
}

.cta-additional-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-md, 8px);
    border: 1px solid rgba(0, 245, 212, 0.2);
    color: var(--text-secondary, #666);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 動畫效果 */
.cta-section.animate-in .cta-title {
    animation: slideInDown 0.8s ease-out;
}

.cta-section.animate-in .cta-description {
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.cta-section.animate-in .cta-buttons {
    animation: slideInUp 0.8s ease-out 0.4s both;
}

.cta-section.animate-in .cta-additional-info {
    animation: slideInUp 0.8s ease-out 0.6s both;
}

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

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

/* 響應式設計 */
@media (max-width: 768px) {
    .cta-section {
        padding: 3rem 0;
    }
    
    .cta-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        background: linear-gradient(135deg, #ffffff 0%, rgba(0, 245, 212, 0.8) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .cta-description {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
    
    .cta-content {
        padding: 0 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn-cta {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cta-section {
        padding: 2rem 0;
    }
    
    .cta-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
        padding: 0 0.5rem;
        background: linear-gradient(135deg, #ffffff 0%, rgba(0, 245, 212, 0.8) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .cta-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .cta-content {
        padding: 0 0.5rem;
    }
    
    .btn-cta {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* 深色主題支援 */
@media (prefers-color-scheme: dark) {
    .cta-section {
        background: linear-gradient(135deg, var(--cta-bg-start-dark, #2d3748), var(--cta-bg-end-dark, #1a202c));
    }
    
    .cta-title {
        color: var(--text-primary-dark, #f7fafc);
        background: linear-gradient(135deg, #f7fafc 0%, rgba(0, 245, 212, 0.8) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .cta-description {
        color: var(--text-secondary-dark, #a0aec0);
    }
    
    .cta-additional-info {
        background: rgba(45, 55, 72, 0.8);
        border-color: rgba(0, 245, 212, 0.3);
        color: var(--text-secondary-dark, #a0aec0);
    }
}

/* 高對比度模式支援 */
@media (prefers-contrast: high) {
    .btn-cta {
        border-width: 3px;
    }
    
    .cta-title {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    }
}

/* 減少動畫模式支援 */
@media (prefers-reduced-motion: reduce) {
    .cta-section.animate-in .cta-title,
    .cta-section.animate-in .cta-description,
    .cta-section.animate-in .cta-buttons,
    .cta-section.animate-in .cta-additional-info {
        animation: none;
    }
    

    
    .btn-cta:hover {
        transform: none;
    }
    
    .btn-cta:hover i {
        transform: none;
    }
}
