body {
    font-family: 'Noto Sans TC', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-title {
    color: #2c3e50;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.main-title::before {
    content: '🎄';
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
}

.main-title::after {
    content: '🎄';
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
}

.divider {
    width: 100%;
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background: rgba(0,0,0,0.1);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider i {
    color: #7f8c8d;
    font-size: 1.5rem;
    background: #f5f7fa;
    padding: 0 1rem;
}

.card {
    max-width: 400px;
    margin: 0 auto;
    background: #ffffff;
    border: 2px solid #c41e3a;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(196, 30, 58, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.card-img-top {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background-color: #f8f9fa;
    padding: 0;
}

.card-body {
    padding: 2rem;
    background: white;
}

.card-title {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 1rem;
}

.bible-verse {
    font-style: italic;
    color: #7f8c8d;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0,0,0,0.02);
    border-radius: 8px;
}

.btn-draw {
    background: #c41e3a;
    color: white;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
    transition: all 0.3s ease;
}

.btn-draw:hover {
    background: #a01830;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
}

.btn-draw:active {
    transform: translateY(0);
}

.share-section {
    background: rgba(255,255,255,0.5);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 1s;
}

.share-title {
    color: #34495e;
    font-weight: 500;
    font-size: 1.1rem;
}

.btn-facebook {
    background: #1877f2;
    color: white;
    margin: 5px;
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

.btn-x {
    background: #000000;
    color: white;
    margin: 5px;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-x:hover {
    background: #333333;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.x-icon {
    margin-right: 0.5rem;
}

.btn-line {
    background: #00b900;
    color: white;
    margin: 5px;
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

.btn-link {
    background: #95a5a6;
    color: white;
    margin: 5px;
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

.card-animation {
    animation: none;
}

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

.footer {
    margin-top: auto;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
}

/* 響應式設計 */
@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }
    
    .card {
        margin: 0 1rem;
    }
    
    .share-section {
        margin: 0 1rem;
    }
}

.btn-custom {
    background: #e67e22;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
    transition: all 0.3s ease;
}

.btn-custom:hover {
    background: #d35400;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

/* 抽卡動畫相關樣式 */
.draw-animation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.draw-animation {
    position: relative;
    width: 200px;
    height: 200px;
}

/* 修改光芒效果 */
.draw-light {
    position: absolute;
    width: 300%;
    height: 300%;
    left: -100%;
    top: -100%;
    background: radial-gradient(circle, 
        rgba(255, 223, 186, 1) 0%,
        rgba(255, 236, 179, 0.9) 20%,
        rgba(255, 248, 225, 0.5) 40%,
        rgba(255, 255, 255, 0) 70%
    );
    animation: lightPulse 2s ease-in-out;
}

/* 修改光芒射線 */
.draw-light::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400%;
    height: 400%;
    transform: translate(-50%, -50%);
    background: repeating-conic-gradient(
        from 0deg,
        rgba(255, 223, 186, 0.2) 0deg,
        rgba(255, 236, 179, 0.1) 10deg,
        rgba(255, 248, 225, 0) 20deg
    );
    animation: rotateLight 10s linear infinite;
}

/* 修改鴿子樣式 */
.draw-dove {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FFFFFF;
    font-size: 3rem;
    animation: doveFloat 2s ease-in-out;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
    z-index: 10; /* 確保鴿子在最上層 */
    display: flex; /* 使用 flex 來居中 */
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.draw-dove i {
    position: absolute; /* 確保圖標絕對定位 */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 完美居中 */
}

/* 修改動畫 */
@keyframes doveFloat {
    0% {
        opacity: 0;
        transform: translate(-50%, 100%) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -200%) scale(0.5);
    }
}

@keyframes rotateLight {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes lightPulse {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(2);
    }
    100% {
        opacity: 0;
        transform: scale(3);
    }
}

/* 修改閃光效果 */
.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: rgba(255, 223, 186, 0.9); /* 暖色調的閃光 */
    animation: sparkle 1s linear infinite;
    box-shadow: 
        0 0 10px rgba(255, 223, 186, 0.8),
        0 0 20px rgba(255, 236, 179, 0.6),
        0 0 30px rgba(255, 248, 225, 0.4);
}

/* 添加射線效果的閃光 */
.sparkle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%);
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0) 70%
    );
}

@keyframes sparkle {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: scale(0) rotate(360deg);
    }
}

/* 閃光效 */
.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #FFD700;
    animation: sparkle 1s linear infinite;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

@keyframes sparkle {
    0% {
        opacity: 0;
        transform: scale(0);
        box-shadow: 0 0 0 rgba(255, 215, 0, 0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    }
    100% {
        opacity: 0;
        transform: scale(0);
        box-shadow: 0 0 0 rgba(255, 215, 0, 0);
    }
}

/* Banner 相關樣式 */
.banner-section {
    margin: -3rem -15px 3rem -15px;
    position: relative;
    width: 100vw;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
}

.banner-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 80%;
    max-width: 1200px;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    /* backdrop-filter: blur(5px); */
}

.banner-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 卡片顯示動畫 */
.card-reveal {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.5s; /* 等待光芒效果結束後再顯示 */
}

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

/* 分享按鈕的淡入效果 */
.share-section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 1s; /* 在卡片顯示後再顯示分享按鈕 */
}

/* 修改 displayCard 函數中的動畫時間 */
.card-animation {
    animation: none; /* 移除原有的動畫 */
}

/* 響應式設計 */
@media (max-width: 768px) {
    .banner-title {
        font-size: 2rem;
    }
    
    .banner-subtitle {
        font-size: 1.2rem;
    }
}

/* 聖誕節相關樣式 */
.christmas-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* 雪花效果 */
.snowflake {
    position: fixed;
    color: #fff;
    font-size: 1em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px #fff;
    animation: snowfall linear infinite;
}

@keyframes snowfall {
    0% {
        transform: translateY(-100vh) translateX(0);
    }
    100% {
        transform: translateY(100vh) translateX(100px);
    }
}

/* 添加裝飾背景 */
.container.text-center.py-5 {
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.95) 100%
    );
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

/* 添加裝飾圖案 */
.container.text-center.py-5::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(196, 30, 58, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(196, 30, 58, 0.03) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 10l5-5M10 10l-5 5M10 10l5 5M10 10l-5-5' stroke='rgba(196, 30, 58, 0.05)' stroke-width='1'/%3E%3C/svg%3E");
    background-size: cover, cover, 20px 20px;
    opacity: 0.5;
    z-index: -1;
    border-radius: 30px;
}

/* 調整按鈕區域 */
.draw-button-section {
    position: relative;
    z-index: 2;
    padding: 2rem;
    margin: 1rem 0;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

/* 調整分享按鈕區域 */
.share-section {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
}

/* 調整卡片容器 */
#card-container {
    position: relative;
    z-index: 2;
}

.logo-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    padding: 10px;
    border-radius: 10px;
    width: 200px;
    pointer-events: none;
}

.site-logo {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .logo-container {
        width: 150px;
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
    }
}
  