:root {
    --primary-color: #6BBFAF;
    --secondary-color: #E8D5B5;
    --text-color: #333333;
    --light-bg: #F8F9FA;
    --transition-speed: 0.3s;
}

/* 引入 Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700&display=swap');

body {
    font-family: 'Noto Sans TC', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    perspective: 1000px;
}

/* 導航欄樣式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: transform var(--transition-speed);
}

.navbar.hide {
    transform: translateY(-100%);
}

.navbar-brand img {
    max-height: 50px;
    transition: transform var(--transition-speed);
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

/* 英雄區塊樣式 */
.hero-section {
    background: linear-gradient(135deg, var(--light-bg) 0%, #ffffff 100%);
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%236BBFAF" stroke-width="0.5"/></svg>') repeat;
    opacity: 0.1;
    animation: rotate 60s linear infinite;
}

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

.min-vh-75 {
    min-height: 75vh;
}

.scripture-message {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transform-style: preserve-3d;
    transition: transform var(--transition-speed);
}

.scripture-message:hover {
    transform: translateZ(20px) rotateX(5deg);
}

/* 服務卡片樣式 */
.service-card {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    transition: all var(--transition-speed);
    transform-style: preserve-3d;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-speed);
    border-radius: 12px;
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-10px) rotateX(5deg);
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

/* 按鈕樣式 */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background-color: #5AA99A;
    border-color: #5AA99A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 191, 175, 0.3);
}

/* 視頻容器樣式 */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transform-style: preserve-3d;
    transition: transform var(--transition-speed);
}

.video-container:hover {
    transform: translateZ(20px);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 頁腳樣式 */
.footer {
    border-top: 1px solid #dee2e6;
    background: linear-gradient(to right, var(--light-bg), white, var(--light-bg));
}

/* 響應式調整 */
@media (max-width: 768px) {
    .hero-section {
        padding: 6rem 0 2rem;
    }
    
    .service-card {
        margin-bottom: 1rem;
    }
    
    .scripture-message {
        margin-bottom: 1rem;
    }
}

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

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

/* 相片攤位頁面特定樣式 */
.service-hero {
    background: linear-gradient(135deg, var(--light-bg) 0%, #ffffff 100%);
    text-align: center;
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    perspective: 1000px;
}

.feature-item {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all var(--transition-speed);
    transform-style: preserve-3d;
}

.feature-item:hover {
    transform: translateY(-10px) rotateX(5deg);
}

.feature-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: transform var(--transition-speed);
}

.feature-item:hover h3 {
    transform: translateZ(20px);
}

.pricing-card {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: sticky;
    top: 2rem;
    transform-style: preserve-3d;
    transition: transform var(--transition-speed);
}

.pricing-card:hover {
    transform: translateZ(20px);
}

.pricing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #dee2e6;
    transition: transform var(--transition-speed);
}

.pricing-item:hover {
    transform: translateX(10px);
}

.pricing-item:last-child {
    border-bottom: none;
}

.duration {
    font-weight: 500;
}

.price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: transform var(--transition-speed);
}

.pricing-item:hover .price {
    transform: scale(1.1);
}

/* 棉花糖攤位特定樣式 */
.flavor-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all var(--transition-speed);
    transform-style: preserve-3d;
}

.flavor-card:hover {
    transform: translateY(-5px) rotateX(5deg);
}

.safety-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all var(--transition-speed);
    transform-style: preserve-3d;
}

.safety-card:hover {
    transform: translateY(-5px) rotateX(5deg);
}

/* 3D 效果增強 */
.three-d-effect {
    transform-style: preserve-3d;
    transition: transform var(--transition-speed);
}

.three-d-effect:hover {
    transform: rotateX(10deg) rotateY(10deg);
}

/* 滾動動畫 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.faq-section {
    background-color: var(--light-bg);
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 8px !important;
    overflow: hidden;
}

.accordion-button {
    background-color: white;
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,0.125);
}

/* 浮動葉子動畫 */
.floating-leaf {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    opacity: 0.7;
    transition: transform 0.5s cubic-bezier(.4,2,.6,1);
}
.leaf-1 {
    top: 5%;
    left: 2%;
    width: 80px;
    animation: floatLeaf1 8s ease-in-out infinite alternate;
}
.leaf-2 {
    bottom: 10%;
    right: 5%;
    width: 100px;
    animation: floatLeaf2 10s ease-in-out infinite alternate;
}
@keyframes floatLeaf1 {
    0% { transform: translateY(0) rotate(-10deg); }
    100% { transform: translateY(30px) rotate(10deg); }
}
@keyframes floatLeaf2 {
    0% { transform: translateY(0) rotate(5deg); }
    100% { transform: translateY(-25px) rotate(-8deg); }
}

/* Gallery Page */
.gallery-hero {
    background: linear-gradient(135deg, var(--light-bg) 0%, #fff 100%);
    text-align: center;
    padding: 6rem 0 2rem;
    position: relative;
    overflow: hidden;
}
.gallery-section .gallery-item {
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(107,191,175,0.08);
    border-radius: 12px;
    background: #fff;
}
.gallery-section .gallery-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 24px rgba(107,191,175,0.18);
}

/* Contact Page */
.contact-hero {
    background: linear-gradient(135deg, var(--light-bg) 0%, #fff 100%);
    text-align: center;
    padding: 6rem 0 2rem;
    position: relative;
    overflow: hidden;
}
.contact-section form .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.contact-section form .btn-primary:hover {
    background-color: #5AA99A;
    border-color: #5AA99A;
}

/* 表單欄位圓角 */
.contact-section .form-control, .contact-section .form-select {
    border-radius: 18px;
}

/* 其他細節調整 */
.btn-outline-secondary {
    color: var(--primary-color);
    border-color: var(--secondary-color);
    background: #fff;
    border-radius: 25px;
    transition: all var(--transition-speed);
}
.btn-outline-secondary:hover {
    background: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
} 

.partners-section .partner-logo {
    filter: grayscale(100%);
    opacity: 0.8;
    transition: filter 0.4s, opacity 0.4s, transform 0.4s;
    max-width: 100%;
}
.partners-section .partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.08);
}
.cta-section {
    background: linear-gradient(90deg, #f8f9fa 60%, #e8d5b5 100%);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(107,191,175,0.07);
}

.service-block {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(107,191,175,0.07);
    margin: 1.5rem 0;
    padding: 2.5rem 1.5rem 2rem 1.5rem;
    transition: box-shadow 0.3s, transform 0.3s;
    position: relative;
}
.service-block:hover {
    box-shadow: 0 8px 32px rgba(107,191,175,0.16);
    transform: translateY(-6px) scale(1.025);
    z-index: 3;
}
@media (max-width: 991px) {
    .service-block {
        margin: 1rem 0;
        padding: 1.5rem 0.5rem 1.2rem 0.5rem;
    }
}

.event-gallery-bar {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.event-gallery-bar::-webkit-scrollbar {
    height: 0;
    background: transparent;
}

.event-gallery-bar .event-bar-img {
    opacity: 0;
    transform: scale(0.85) translateY(30px);
    animation: eventBarFadeIn 0.7s cubic-bezier(.77,0,.18,1) forwards;
    transition: z-index 0.3s;
}
.event-gallery-bar .event-bar-img img {
    transition: transform 0.4s cubic-bezier(.77,0,.18,1), object-position 0.4s cubic-bezier(.77,0,.18,1);
    aspect-ratio: 3/2;
    object-fit: cover;
    object-position: center 60%;
    width: 100%;
    height: 100%;
    display: block;
}
.event-gallery-bar .event-bar-img:hover {
    z-index: 99;
    overflow: visible;
    border-radius: 24px;
}
.event-gallery-bar .event-bar-img:hover img {
    transform: scale(1.13);
    object-position: center center;
}
@media (max-width: 991px) {
    .event-gallery-bar .event-bar-img {
        height: 120px !important;
        width: 80px !important;
    }
}
@keyframes eventBarFadeIn {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
} 