
/* 全局動畫設置 */

/* 動畫關鍵幀 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 123, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 123, 255, 0.6);
    }
}

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

/* 動畫類別 */
.animate-text {
    opacity: 0;
    animation-fill-mode: forwards;
}

.fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fadeInLeft {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.fadeInRight {
    animation: fadeInRight 0.8s ease-out forwards;
}

.scaleIn {
    animation: scaleIn 0.6s ease-out forwards;
}

.slideInDown {
    animation: slideInDown 0.8s ease-out forwards;
}

/* Hero Section */
/*
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    color: white;
}
*/
/* 按鈕動畫效果 */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.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: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    animation: glow 2s infinite;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #0056b3, #007bff);
    transform: translateY(-3px) scale(1.05);
}

/* 卡片動畫效果 */
.card {
    transition: all 0.3s ease;
    transform: translateY(0);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card img {
    transition: transform 0.3s ease;
}

.card:hover img {
    transform: scale(1.1);
}

/* 特色列表動畫 */
.feature-list li {
    transition: all 0.3s ease;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.feature-list li:hover {
    background: rgba(0, 123, 255, 0.1);
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
}

.feature-list i {
    transition: all 0.3s ease;
    color: #007bff;
}

.feature-list li:hover i {
    transform: scale(1.2) rotate(360deg);
    color: #0056b3;
}

/* 合作夥伴 Logo 動畫 */
.partner-logo {
    width: 120px;
    height: 80px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: grayscale(100%);
    opacity: 0.7;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
    animation: bounce 0.6s ease;
}

/* 工作流程圖標 */
.workflow-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.workflow-item {
    transition: all 0.3s ease;
    padding: 20px;
    border-radius: 15px;
}

.workflow-item:hover {
    background: rgba(0, 123, 255, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.1);
}

.workflow-item:hover .workflow-icon {
    transform: scale(1.2);
    animation: float 2s ease-in-out infinite;
}

.icon-box {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.workflow-item:hover .icon-box {
    background: linear-gradient(45deg, #007bff, #0056b3);
    transform: rotate(360deg);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
}

/* 公告區域 */
.announcement-section {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    position: relative;
    overflow: hidden;
}

.announcement-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: slideRight 3s infinite;
}

@keyframes slideRight {
    0% { left: -100%; }
    100% { left: 100%; }
}

.announcement-image {
    transition: all 0.3s ease;
    padding: 20px;
    border-radius: 15px;
}

.announcement-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* 輪播文字效果 */
#輪播文字 {
    background: linear-gradient(45deg, #007bff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    animation: pulse 2s infinite;
}

/* 滾動動畫觸發 */
.scroll-trigger {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

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

/* 新聞訂閱區域 */
.newsletter-box {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.newsletter-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.1), rgba(0, 212, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.newsletter-box:hover::before {
    opacity: 1;
}

.newsletter-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.2);
}

/* 響應式動畫 */
@media (max-width: 768px) {
    .workflow-item {
        margin-bottom: 30px;
    }
    
    .partner-logo {
        width: 100px;
        height: 60px;
    }
}

/* 載入動畫 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* 懸停效果增強 */
.enhanced-hover {
    position: relative;
    overflow: hidden;
}

.enhanced-hover::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.enhanced-hover:hover::after {
    width: 300px;
    height: 300px;
}

/* 數字計數動畫 */
.counter {
    font-size: 2.5rem;
    font-weight: bold;
    color: #007bff;
}

/* 進度條動畫 */
.progress-bar {
    animation: progressBar 2s ease-in-out;
}

@keyframes progressBar {
    from { width: 0; }
    to { width: var(--progress-width); }
}

/* 閃爍效果 */
.blink {
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 背景動畫 */
.animated-bg {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
} 