/* Modern Wedding Website Styles */
:root {
    --primary-color: #d4af37;
    --secondary-color: #8b6914;
    --accent-color: #f4e4bc;
    --text-dark: #2c2c2c;
    --text-light: #666;
    --white: #ffffff;
    --background-light: #fafafa;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
    
    /* Artistic Typography Variables */
    --text-shadow-gold: 0 1px 3px rgba(212, 175, 55, 0.3);
    --text-shadow-elegant: 0 2px 4px rgba(0, 0, 0, 0.1);
    --text-glow: 0 0 20px rgba(244, 228, 188, 0.4);
    --gradient-gold: linear-gradient(135deg, #d4af37, #f4e4bc, #d4af37);
    --gradient-text: linear-gradient(135deg, #d4af37 0%, #8b6914 50%, #d4af37 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Container 響應式設計 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
}

/* Typography - Artistic Enhancement */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Noto Serif TC', serif;
    font-weight: 500;
    line-height: 1.2;
    text-shadow: var(--text-shadow-elegant);
    position: relative;
}

/* Artistic text effects */
.main-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
    position: relative;
    color: #ffffff;
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(244, 228, 188, 0.3);
    filter: drop-shadow(0 0 20px rgba(244, 228, 188, 0.2));
}

/* 移除了 auraGlow 動畫 */

.name {
    display: inline-block;
    position: relative;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    background: linear-gradient(135deg, #ffffff 0%, #f4e4bc 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
}

/* 移除了 nameShimmer 動畫 */

/* 移除了 name hover 動畫效果 */

.ampersand {
    font-style: italic;
    margin: 0 2rem;
    opacity: 0.9;
    font-family: 'Playfair Display', serif;
    font-size: 0.7em;
    position: relative;
    font-weight: 300;
    color: rgba(244, 228, 188, 0.9);
    text-shadow: 0 2px 8px rgba(244, 228, 188, 0.4);
}

.ampersand::before,
.ampersand::after {
    content: '✨';
    position: absolute;
    font-size: 0.4em;
    color: rgba(244, 228, 188, 0.6);
    top: 0.1em;
    animation: sparkleModern 3s ease-in-out infinite;
}

.ampersand::before {
    left: -3em;
    animation-delay: 0s;
}

.ampersand::after {
    right: -3em;
    animation-delay: 1.5s;
}

@keyframes sparkleModern {
    0%, 100% { 
        opacity: 0.3; 
        transform: scale(0.6) rotate(0deg); 
    }
    25% { 
        opacity: 0.8; 
        transform: scale(1) rotate(90deg); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2) rotate(180deg); 
    }
    75% { 
        opacity: 0.8; 
        transform: scale(1) rotate(270deg); 
    }
}

/* Navigation - Removed for one-page design */

/* Hero Section - Modern Design */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 5vh;
    overflow: hidden;
    background-color: #000;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(244, 228, 188, 0.02) 0%, transparent 50%);
    z-index: 2;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 10%;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, rgba(212, 175, 55, 0.1), rgba(244, 228, 188, 0.05));
    border-radius: 50%;
    z-index: 2;
    animation: floatGeometry1 8s ease-in-out infinite;
}

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

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    min-width: 100%;
    min-height: 100%;
    filter: 
        brightness(0.9) 
        contrast(1.05) 
        saturate(1.1);
    transition: filter 0.3s ease;
    
    /* 硬體加速和防閃爍優化 */
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-perspective: 1000px;
    perspective: 1000px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero:hover .hero-background img {
    filter: 
        brightness(0.95) 
        contrast(1.1) 
        saturate(1.15);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05); /* 極輕微的覆蓋，保持照片清晰 */
    z-index: 2;
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--white);
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

/* 移除了 heroContentFloat 動畫 */

/* 移除了 hero-content 的邊框發光效果 */

/* 移除了 borderGlowHero 動畫 */

.main-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.name {
    display: inline-block;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.ampersand {
    font-style: italic;
    margin: 0 1rem;
    opacity: 0.8;
    animation: fadeInUp 1s ease-out 0.7s both;
}

.hero-subtitle {
    font-family: 'Noto Sans TC', 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.9s both;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(244, 228, 188, 0.4);
    letter-spacing: 0.1em;
    line-height: 1.8;
    position: relative;
    backdrop-filter: blur(2px);
}

.hero-subtitle:first-of-type {
    font-size: 1.6rem;
    font-weight: 400;
    font-family: 'Noto Serif TC', serif;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(244, 228, 188, 0.9) 50%, rgba(255, 255, 255, 0.95) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.hero-subtitle:first-of-type::before {
    content: '「';
    position: absolute;
    left: -1.2em;
    top: -0.1em;
    font-size: 1.2em;
    color: rgba(244, 228, 188, 0.8);
    text-shadow: 0 0 10px rgba(244, 228, 188, 0.5);
    animation: float 3s ease-in-out infinite;
}

.hero-subtitle:first-of-type::after {
    content: '」';
    position: absolute;
    right: -1.2em;
    bottom: -0.1em;
    font-size: 1.2em;
    color: rgba(244, 228, 188, 0.8);
    text-shadow: 0 0 10px rgba(244, 228, 188, 0.5);
    animation: float 3s ease-in-out infinite 1.5s;
}

.hero-subtitle:last-of-type {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    position: relative;
}

.hero-subtitle:last-of-type::before {
    content: '◦';
    position: absolute;
    left: -1.5em;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(244, 228, 188, 0.7);
    font-size: 0.8em;
    animation: pulse 2s ease-in-out infinite;
}

.hero-subtitle:last-of-type::after {
    content: '◦';
    position: absolute;
    right: -1.5em;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(244, 228, 188, 0.7);
    font-size: 0.8em;
    animation: pulse 2s ease-in-out infinite 1s;
}

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

@keyframes pulse {
    0%, 100% { 
        opacity: 0.5; 
        transform: translateY(-50%) scale(1); 
    }
    50% { 
        opacity: 1; 
        transform: translateY(-50%) scale(1.3); 
    }
}

.wedding-date {
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 1.1s both;
    position: relative;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(244, 228, 188, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.wedding-date::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(244, 228, 188, 0.4), 
        transparent, 
        rgba(212, 175, 55, 0.3),
        transparent);
    border-radius: 20px;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite alternate;
}

@keyframes borderGlow {
    0% { opacity: 0.3; }
    100% { opacity: 0.8; }
}

.date-info .date {
    display: block;
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    font-family: 'Noto Sans TC', serif;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.15em;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(244, 228, 188, 0.4);
    position: relative;
}

.date-info .date::after {
    content: '❖';
    position: absolute;
    left: 50%;
    bottom: -2em;
    transform: translateX(-50%);
    color: rgba(244, 228, 188, 0.6);
    font-size: 0.8em;
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    0% { transform: translateX(-50%) rotate(0deg); }
    100% { transform: translateX(-50%) rotate(360deg); }
}

.date-info .location {
    font-size: 1.2rem;
    opacity: 0.9;
    font-family: 'Noto Serif TC', serif;
    color: rgba(244, 228, 188, 0.9);
    letter-spacing: 0.3em;
    font-weight: 400;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(244, 228, 188, 0.3);
    position: relative;
}

.cta-btn {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    animation: fadeInUp 1s ease-out 1.3s both;
}

.cta-btn:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* 移除了 scroll-down 相關樣式以節省空間 */

/* Countdown Section */
.countdown-section {
    padding: 80px 0;
    background: var(--background-light);
    text-align: center;
}

.countdown-section h2 {
    font-family: 'Noto Serif TC', 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    position: relative;
    letter-spacing: 0.1em;
    font-weight: 400;
}

.countdown-section h2::before {
    content: '◈';
    position: absolute;
    left: -2em;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 0.7em;
    animation: sparkleLeft 2s ease-in-out infinite;
}

.countdown-section h2::after {
    content: '◈';
    position: absolute;
    right: -2em;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 0.7em;
    animation: sparkleRight 2s ease-in-out infinite 1s;
}

@keyframes sparkleLeft {
    0%, 100% { 
        opacity: 0.4; 
        transform: translateY(-50%) rotate(0deg) scale(0.8); 
    }
    50% { 
        opacity: 1; 
        transform: translateY(-50%) rotate(180deg) scale(1.2); 
    }
}

@keyframes sparkleRight {
    0%, 100% { 
        opacity: 0.4; 
        transform: translateY(-50%) rotate(0deg) scale(0.8); 
    }
    50% { 
        opacity: 1; 
        transform: translateY(-50%) rotate(-180deg) scale(1.2); 
    }
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.time-unit {
    background: var(--white);
    padding: 30px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    min-width: 120px;
    transition: var(--transition);
}

.time-unit:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.time-unit .number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.time-unit .label {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Story Section */
.story-section {
    padding: 100px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-family: 'Noto Serif TC', 'Playfair Display', serif;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    position: relative;
    letter-spacing: 0.05em;
    font-weight: 400;
}

.section-header h2::before {
    content: '◊';
    position: absolute;
    left: -1.5em;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 0.6em;
    opacity: 0.7;
    animation: fadeInOut 2s ease-in-out infinite;
}

.section-header h2::after {
    content: '◊';
    position: absolute;
    right: -1.5em;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 0.6em;
    opacity: 0.7;
    animation: fadeInOut 2s ease-in-out infinite 1s;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.3; transform: translateY(-50%) scale(0.8); }
    50% { opacity: 1; transform: translateY(-50%) scale(1.2); }
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    font-style: italic;
    font-family: 'Noto Sans TC', serif;
    letter-spacing: 0.05em;
    opacity: 0.8;
    position: relative;
}

.story-timeline {
    max-width: 1000px;
    margin: 0 auto;
    transition: opacity 0.3s ease;
}

.story-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.story-item.in-view {
    opacity: 1;
    transform: translateY(0);
}

.story-item.reverse {
    direction: rtl;
}

.story-item.reverse > * {
    direction: ltr;
}

.story-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.story-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.story-item:hover .story-image img {
    transform: scale(1.05);
}

.story-content {
    padding: 20px;
}

.story-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    position: relative;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 1px 2px rgba(212, 175, 55, 0.3);
}

.story-date::before {
    content: '◆';
    position: absolute;
    left: -1.5em;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 0.8em;
    opacity: 0.7;
    animation: pulse 2s ease-in-out infinite;
}

.story-date::after {
    content: '◆';
    position: absolute;
    right: -1.5em;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 0.8em;
    opacity: 0.7;
    animation: pulse 2s ease-in-out infinite 1s;
}

.story-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-family: 'Noto Serif TC', 'Playfair Display', serif;
    font-weight: 500;
    letter-spacing: 0.05em;
    position: relative;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.story-content h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 2px;
}

.story-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    font-family: 'Noto Sans TC', sans-serif;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Story Section 響應式設計 - 平板尺寸優化 */
@media (max-width: 1024px) and (min-width: 769px) {
    .story-item {
        gap: 40px;
        margin-bottom: 80px;
    }
    
    .story-image {
        max-width: 85%; /* 平板也使用更大寬度 */
        margin: 0 auto;
    }
    
    .story-image img {
        height: 340px; /* 平板尺寸圖片高度增加 */
        border-radius: 12px;
    }
}

/* Story Section 響應式設計 */
@media (max-width: 768px) {
    .story-timeline {
        max-width: 100%;
        padding: 0;
    }
    
    .story-item {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 60px;
        text-align: center;
    }
    
    .story-item.reverse {
        direction: ltr;
    }
    
    .story-image {
        order: -1;
        max-width: 90%; /* 使用更大的寬度 */
        margin: 0 auto;
        width: 90%; /* 明確設定寬度 */
    }
    
    .story-image img {
        height: 380px; /* 再次增加高度到 380px */
        width: 100%;
        border-radius: 15px; /* 增加圓角讓圖片更美觀 */
    }
    
    .story-content {
        padding: 10px;
        max-width: 90%; /* 限制文字內容寬度與圖片一致 */
        margin: 0 auto;
    }
    
    .story-content h3 {
        font-size: 1.6rem;
    }
    
    .story-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .story-section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 50px;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .story-item {
        gap: 25px;
        margin-bottom: 50px;
    }
    
    .story-image {
        max-width: 95%; /* 小螢幕使用更大寬度 */
        width: 95%;
    }
    
    .story-image img {
        height: 320px; /* 增加高度到 320px */
        width: 100%;
        border-radius: 12px;
    }
    
    .story-content {
        max-width: 95%;
        padding: 15px;
    }
    
    .story-content h3 {
        font-size: 1.4rem;
    }
    
    .story-content p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* Story Mode Selector */
.story-mode-selector {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.mode-checkbox-wrapper {
    width: 100%;
}

.checkbox-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 12px 20px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--text-color);
    user-select: none;
}

.checkbox-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.checkbox-item.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    border-color: var(--primary-color);
}

.checkbox-item input[type="radio"] {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.checkbox-item.active .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.checkbox-text {
    font-size: 14px;
    font-weight: inherit;
}

/* Story Slideshow */
.story-slideshow {
    max-width: 1200px; /* 增加最大寬度 */
    margin: 0 auto;
    position: relative;
    transition: opacity 0.3s ease;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: hidden;
    border-radius: 20px;
    background: var(--white);
}

/* 輪播軌道 - 所有投影片的容器 */
.slideshow-track {
    display: flex;
    height: 100%;
    transition: transform 0.8s ease-in-out;
    /* 寬度將由 JavaScript 動態設置 */
}

.slide {
    /* flex 屬性將由 JavaScript 動態設置 */
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 50px;
    box-sizing: border-box;
}

.slide-image {
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.slide.active .slide-image img {
    transform: scale(1.02);
}

.slide-content {
    padding: 20px 40px;
    text-align: left;
}

.slide-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    position: relative;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 1px 2px rgba(212, 175, 55, 0.3);
}

.slide-date::before {
    content: '◆';
    position: absolute;
    left: -1.5em;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 0.8em;
    opacity: 0.7;
    animation: pulse 2s ease-in-out infinite;
}

.slide-date::after {
    content: '◆';
    position: absolute;
    right: -1.5em;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 0.8em;
    opacity: 0.7;
    animation: pulse 2s ease-in-out infinite 1s;
}

.slide-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-family: 'Noto Serif TC', 'Playfair Display', serif;
    font-weight: 500;
    letter-spacing: 0.05em;
    position: relative;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.slide-content h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 2px;
}

.slide-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    font-family: 'Noto Sans TC', sans-serif;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Slideshow Controls */
.slideshow-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 30px;
    /* 移除左右按鈕後，只顯示指示器 */
}

/* Slide Indicators */
.slide-indicators {
    display: flex;
    gap: 12px;
    align-items: center;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.indicator.active {
    background: var(--primary-color);
    transform: scale(1.3);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

.indicator:hover:not(.active) {
    background: rgba(212, 175, 55, 0.6);
    transform: scale(1.1);
}

/* 隱藏的按鈕樣式保留但不顯示 */
.slide-btn {
    display: none; /* 隱藏左右導航按鈕 */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* Slideshow Options - 隱藏自動播放選項 */
.slideshow-options {
    display: none; /* 隱藏自動播放選項，因為預設自動播放 */
    justify-content: center;
    margin-top: 20px;
}

.auto-play-btn {
    display: none; /* 隱藏自動播放按鈕 */
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans TC', sans-serif;  
    font-weight: 500;
    align-items: center;
    gap: 8px;
}

.auto-play-btn:hover {
    background: var(--primary-color);
    color: white;
}

.auto-play-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Slideshow Responsive Design */
@media (max-width: 768px) {
    .slideshow-container {
        height: 600px; /* 增加移動端高度 */
    }
    
    .slide {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        padding: 30px; /* 增加移動端內邊距 */
    }
    
    .slide-image {
        grid-row: 1;
    }
    
    .slide-content {
        grid-row: 2;
        padding: 20px 0 0 0;
        text-align: center;
    }
    
    .slide-content h3 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .slide-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .slideshow-controls {
        gap: 20px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .slideshow-container {
        height: 500px; /* 增加小屏幕高度 */
        border-radius: 15px;
    }
    
    .slide {
        padding: 25px; /* 增加小屏幕內邊距 */
    }
    
    .slide-content h3 {
        font-size: 1.8rem;
    }
    
    .story-mode-selector {
        max-width: 350px;
        margin-top: 20px;
    }
    
    .checkbox-group {
        gap: 15px;
    }
    
    .checkbox-item {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .checkbox-custom {
        width: 16px;
        height: 16px;
    }
    
    .checkbox-item.active .checkbox-custom::after {
        width: 6px;
        height: 6px;
    }
    
    .slide-indicators {
        gap: 8px;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
}

/* Photo Wall Gallery Section */
.gallery-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    overflow: hidden;
    position: relative;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(
        180deg,
        rgba(212, 175, 55, 0.02) 0%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
}

.section-header h2 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.section-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
}

.photo-wall-container {
    position: relative;
    height: 80vh;
    max-height: 600px;
    overflow: hidden;
    /* Enhanced 3D perspective */
    perspective: 1200px;
    perspective-origin: center center;
    /* Performance optimizations */
    contain: layout style paint;
    isolation: isolate;
    
    /* Subtle spotlight gradient - blends with gallery-section */
    background: radial-gradient(
        ellipse 100% 60% at center 25%,
        rgba(212, 175, 55, 0.08) 0%,
        rgba(212, 175, 55, 0.03) 40%,
        transparent 70%
    );
}

.photo-wall-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at center top,
        transparent 30%,
        rgba(0, 0, 0, 0.05) 80%
    );
    pointer-events: none;
    z-index: 1;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .photo-wall-container {
        height: 70vh;
        max-height: 500px;
        perspective: 800px;
        contain: layout paint;
        -webkit-overflow-scrolling: touch;
        
        /* Simplified gradient for mobile */
        background: radial-gradient(
            ellipse 80% 40% at center 20%,
            rgba(212, 175, 55, 0.05) 0%,
            transparent 60%
        );
    }
    
    .photo-wall-container::before {
        background: radial-gradient(
            ellipse at center top,
            transparent 40%,
            rgba(0, 0, 0, 0.03) 90%
        );
    }
}

/* Low-end device optimizations */
@media (max-width: 480px) {
    .photo-wall-container {
        height: 60vh;
        max-height: 400px;
        perspective: none;
        contain: layout;
        
        /* Minimal gradient for low-end devices */
        background: linear-gradient(
            180deg,
            rgba(212, 175, 55, 0.03) 0%,
            transparent 50%
        );
    }
    
    .photo-wall-container::before {
        display: none;
    }
}

/* Minimap */
.minimap {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    height: 40px;
    width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.minimap-lines {
    display: flex;
    gap: 4px;
    height: 100%;
    align-items: end;
}

.minimap-line {
    width: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 1px;
    transition: all 0.3s ease;
    min-height: 10px;
}

.minimap-line.active {
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

/* Photo Wall */
.photo-wall {
    display: flex;
    gap: 20px;
    padding: 0 100px;
    height: 100%;
    align-items: center;
    transform: translateX(0);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: grab;
    /* Optimized 3D rendering */
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform;
    /* Enable hardware acceleration */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    /* Ensure photos appear above gradient */
    position: relative;
    z-index: 10;
}

.photo-wall:active {
    cursor: grabbing;
}

.photo-item {
    flex-shrink: 0;
    width: 280px;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    
    /* Enhanced 3D properties for desktop */
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: auto;
    
    /* Base shadow and effects */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    filter: grayscale(0.3) brightness(0.9);
}

/* Mobile optimizations - Simplified effects for better performance */
@media (max-width: 768px) {
    .photo-wall {
        padding: 0 50px;
        gap: 15px;
        /* Faster transitions on mobile */
        transition: transform 0.3s ease-out;
        /* Simplified transform */
        transform-style: flat;
    }
    
    .photo-item {
        width: 240px;
        height: 320px;
        /* Faster transitions on mobile */
        transition: transform 0.2s ease, opacity 0.2s ease;
        /* Simplified 3D properties */
        transform-style: flat;
        will-change: transform, opacity;
        /* Reduced shadow for performance */
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        /* Simplified filters */
        filter: brightness(0.9);
    }
    
    /* Simplified effects for mobile */
    .photo-item:not(.active) {
        filter: brightness(0.8);
    }
    
    .photo-item.active {
        filter: brightness(1);
    }
}

.photo-item:hover {
    /* Desktop hover effects */
    filter: grayscale(0) brightness(1);
    z-index: 10;
}

.photo-item.active {
    /* Active state managed by JavaScript for 3D effects */
    z-index: 20;
    filter: grayscale(0) brightness(1.1);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    /* Optimization for better rendering */
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Mobile-specific optimizations */
@media (max-width: 768px) {
    .photo-item:hover {
        /* Disable hover effects on mobile for performance */
        transform: none;
        filter: inherit;
        box-shadow: inherit;
    }
    
    .photo-item img {
        /* Remove transitions on mobile for better performance */
        transition: none;
    }
    
    .photo-item.active img {
        /* Minimal active state enhancement */
        transform: none;
    }
}

/* Low-end device optimizations */
@media (max-width: 480px) {
    .photo-item {
        /* Further simplified styles for very small screens */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        border-radius: 10px;
    }
    
    .photo-item img {
        /* Disable all transitions for low-end devices */
        transition: none;
        transform: none;
    }
}

.photo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(212, 175, 55, 0.1) 0%, 
        transparent 50%, 
        rgba(212, 175, 55, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.photo-item:hover::before,
.photo-item.active::before {
    opacity: 1;
}

/* Mobile optimizations - Disable pseudo-element effects */
@media (max-width: 768px) {
    .photo-item::before {
        display: none;
    }
}

/* Navigation Arrows */
.photo-wall-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 50;
}

.nav-arrow {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(212, 175, 55, 0.3);
    color: var(--white);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    backdrop-filter: blur(10px);
}

.nav-arrow:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.nav-arrow:active {
    transform: scale(0.95);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .photo-wall {
        padding: 0 50px;
        gap: 15px;
    }
    
    .photo-item {
        width: 240px;
        height: 340px;
    }
    
    .minimap {
        width: 300px;
    }
}

@media (max-width: 768px) {
    .gallery-section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .photo-wall-container {
        height: 60vh;
        max-height: 400px;
    }
    
    .photo-wall {
        padding: 0 30px;
        gap: 10px;
    }
    
    .photo-item {
        width: 200px;
        height: 280px;
    }
    
    .photo-item.active {
        transform: scale(1.1) translateY(-10px);
    }
    
    .nav-arrow {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .minimap {
        width: 250px;
        bottom: 40px;
    }
}

@media (max-width: 480px) {
    .photo-wall {
        padding: 0 20px;
        gap: 8px;
    }
    
    .photo-item {
        width: 160px;
        height: 220px;
        /* Minimal transitions for low-end devices */
        transition: none;
        /* Remove all 3D effects */
        transform: none !important;
        will-change: auto;
        /* Simplified styling */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
    }
    
    .photo-item:hover {
        /* No hover effects on small screens */
        transform: none !important;
    }
    
    .photo-item.active {
        /* Minimal active state */
        box-shadow: 0 4px 8px rgba(212, 175, 55, 0.3);
        border: 1px solid rgba(212, 175, 55, 0.5);
    }
    
    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .minimap {
        width: 200px;
        height: 30px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
}

/* Details Section */
.details-section {
    position: relative;
    padding: 120px 0;
    color: var(--white);
    overflow: hidden;
}

.details-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.details-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.details-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 44, 44, 0.8), rgba(212, 175, 55, 0.6));
    z-index: -1;
}

.details-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.details-content h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
}

.details-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.detail-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.detail-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.detail-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.detail-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.timeline {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.timeline h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.timeline-items {
    display: grid;
    gap: 20px;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.timeline-time {
    font-weight: 600;
    font-size: 1.2rem;
    min-width: 80px;
    color: var(--accent-color);
}

.timeline-event {
    font-size: 1.1rem;
}

/* Location Section */
.location-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.location-info {
    padding: 40px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.venue-details h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.address, .phone {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-color);
}

.address .icon, .phone .icon {
    font-size: 1.2rem;
    color: var(--accent-color);
}

.transport-info {
    margin-top: 30px;
}

.transport-info h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.transport-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    padding: 10px 0;
    line-height: 1.5;
}

.transport-icon {
    font-size: 1.2rem;
    margin-top: 2px;
}

.map-container {
    position: relative;
    height: 500px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.google-map {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
}

.google-map iframe {
    border-radius: var(--border-radius);
}

.map-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.map-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.map-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.map-btn .icon {
    font-size: 16px;
}

/* RSVP Section - Removed for one-page design */

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    text-align: center;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo {
    text-align: center;
}

.footer-logo h3 {
    font-family: 'Playfair Display', 'Noto Serif TC', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 400;
    letter-spacing: 2px;
    text-shadow: 
        0 0 10px rgba(212, 175, 55, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    background: linear-gradient(135deg, #d4af37 0%, #f4e4bc 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShiftFooter 3s ease-in-out infinite;
}

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

.footer-logo h3::before {
    content: '❁';
    position: absolute;
    left: -1.5em;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(212, 175, 55, 0.6);
    font-size: 0.6em;
    animation: floatFooter 2s ease-in-out infinite;
}

.footer-logo h3::after {
    content: '❁';
    position: absolute;
    right: -1.5em;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(212, 175, 55, 0.6);
    font-size: 0.6em;
    animation: floatFooter 2s ease-in-out infinite 1s;
}

@keyframes floatFooter {
    0%, 100% { 
        opacity: 0.4; 
        transform: translateY(-50%) rotate(0deg); 
    }
    50% { 
        opacity: 0.8; 
        transform: translateY(-50%) rotate(180deg); 
    }
}

.footer-logo p {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
}

.footer-logo p:first-of-type {
    font-family: 'Noto Serif TC', serif;
    font-size: 1.3rem;
    color: rgba(244, 228, 188, 0.9);
    font-weight: 400;
    letter-spacing: 0.1em;
    position: relative;
}

.footer-logo p:first-of-type::before {
    content: '「';
    position: absolute;
    left: -1em;
    color: rgba(212, 175, 55, 0.7);
}

.footer-logo p:first-of-type::after {
    content: '」';
    position: absolute;
    right: -1em;
    color: rgba(212, 175, 55, 0.7);
}

.footer-logo .venue-name {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 500;
    opacity: 0.9;
    font-family: 'Noto Serif TC', serif;
    letter-spacing: 0.2em;
    text-shadow: 
        0 0 8px rgba(212, 175, 55, 0.4),
        0 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-family: 'Noto Sans TC', sans-serif;
    opacity: 0.7;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
}

.footer-bottom p::before {
    content: '❤️';
    margin: 0 0.5em;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Footer 響應式設計 */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 15px;
    }
    
    .footer-logo h3 {
        font-size: 2rem;
    }
    
    .footer-logo p {
        font-size: 1.1rem;
    }
    
    .footer-logo .venue-name {
        font-size: 1rem;
    }
    
    .footer-bottom p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 0 10px;
    }
    
    .footer-logo h3 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-logo p {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    
    .footer-logo .venue-name {
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        padding-top: 20px;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
    }
}

/* Seating Chart Section */
.seating-section {
    padding: 100px 0;
    background: var(--background-light);
}

.seating-content {
    max-width: 1000px;
    margin: 0 auto;
}

.guest-search {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.search-dropdowns {
    display: flex;
    gap: 15px;
    justify-content: stretch;
    align-items: center;
    width: 100%;
}



.seating-chart-container {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 30px;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ddd;
}

.legend-color.available {
    background: #e8f5e8;
    border-color: #4caf50;
}

.legend-color.occupied {
    background: #ffebee;
    border-color: #f44336;
}

.legend-color.highlighted {
    background: var(--primary-color);
    border-color: var(--secondary-color);
    animation: pulse 2s infinite;
}

.seating-chart-title {
    color: #d4af37;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin: 30px 0 40px 0;
    font-family: 'Playfair Display', serif;
    position: relative;
}

.seating-chart-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, #d4af37, #8b6914);
    margin: 15px auto 0;
    border-radius: 2px;
}

.seating-chart {
    display: flex;
    justify-content: center;
    overflow-x: auto;
}

.seating-chart svg {
    max-width: 100%;
    height: auto;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    background: #fafafa;
}

.table-group {
    cursor: pointer;
    transition: var(--transition);
}

.seat {
    cursor: pointer;
    transition: var(--transition);
    stroke-width: 2;
}

.seat.available {
    fill: #e8f5e8;
    stroke: #4caf50;
}

.seat.occupied {
    fill: #d4af37;
}

.seat.highlighted {
    fill: var(--primary-color);
    stroke: var(--secondary-color);
    stroke-width: 3;
    animation: seatPulse 1.5s infinite;
}

.seat-label {
    font-size: 10px;
    font-weight: 500;
    text-anchor: middle;
    pointer-events: none;
    fill: var(--text-dark);
}

.table-number {
    font-size: 14px;
    font-weight: 600;
    text-anchor: middle;
    fill: var(--primary-color);
}

.seat-info {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: var(--transition);
}

.seat-info.hidden {
    opacity: 0;
    visibility: hidden;
}

.info-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: slideUp 0.3s ease;
}

.info-card h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.info-card p {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.close-btn {
    background: var(--text-light);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    margin-top: 20px;
    transition: var(--transition);
}

.close-btn:hover {
    background: var(--text-dark);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

@keyframes seatPulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

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

/* Enhanced Seating Chart Styles */
.seating-chart {
    margin: 40px 0;
    text-align: center;
}

.seating-chart h3 {
    color: #d4af37;
    margin-bottom: 30px;
    font-size: 2rem;
    font-weight: 600;
}

#seating-chart {
    margin: 20px auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    background: linear-gradient(135deg, #fafafa, #ffffff);
    border: 3px solid #d4af37;
    overflow: hidden;
    height: 800px;
    cursor: grab;
    user-select: none;
    touch-action: none; /* Allow manual handling of touch events */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
}

#seating-chart:active {
    cursor: grabbing;
}

#seating-chart svg {
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: all;
}

/* Enhanced Guest Search */
.guest-search {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    align-items: stretch;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* Enhanced SVG Seat Styles */
.seat {
    cursor: pointer;
    transition: all 0.3s ease;
}

.seat.occupied {
    fill: #d4af37;
}



.seat.available {
    fill: #e0e0e0;
    stroke: #999;
    stroke-width: 1;
}

.seat.highlighted {
    fill: #ff6b6b;
    stroke: #ff4757;
    stroke-width: 3;
    animation: pulse 1.5s infinite;
}

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

/* Enhanced Table Styles */
.table-group {
    cursor: pointer;
}

.clickable-table {
    cursor: pointer;
}

/* Remove hover effects to prevent jumping */

/* Enhanced Seat Info Modal */
.seat-info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.seat-info-modal.hidden {
    display: none;
}

.seat-info-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 400px;
    width: 90%;
    position: relative;
    animation: slideIn 0.3s ease;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.close-btn:hover {
    color: #333;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Removed zoom controls - using drag-only functionality */

/* Zoom Indicator */
.zoom-indicator {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    min-width: 60px;
    text-align: center;
}

/* Pan Instructions */
.pan-instructions {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 11px;
    z-index: 10;
    opacity: 0.8;
    max-width: 200px;
    line-height: 1.3;
}

/* Enhanced Responsive Design for Seating Chart */
@media (max-width: 768px) {
    .seating-chart h3 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    #seating-chart {
        height: 500px;
        margin: 15px 0;
        border-width: 2px;
    }
    
    .seat-info-content {
        padding: 25px;
        max-width: 350px;
    }
    
    /* Zoom controls removed - mobile uses touch gestures only */
    
    .zoom-indicator {
        top: 10px;
        left: 10px;
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .pan-instructions {
        display: none; /* Hide on mobile to save space */
    }
    
    /* Location Section Responsive */
    .location-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .location-info {
        padding: 30px 20px;
    }
    
    .venue-details h3 {
        font-size: 1.5rem;
    }
    
    .transport-option {
        flex-direction: column;
        gap: 8px;
        text-align: left;
    }
    
    .transport-icon {
        align-self: flex-start;
    }
    
    .map-container {
        height: 400px;
        margin-top: 20px;
    }
    
    .map-overlay {
        top: 15px;
        right: 15px;
    }
    
    .map-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .seating-chart h3 {
        font-size: 1.3rem;
    }
    
    #seating-chart {
        height: 400px;
        border-width: 2px;
    }
    

    
    .seat-info-content {
        padding: 20px;
        margin: 20px;
    }
    
    .zoom-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .zoom-indicator {
        padding: 5px 8px;
        font-size: 10px;
        min-width: 50px;
    }
    
    /* Location Section Mobile */
    .location-info {
        padding: 20px 15px;
    }
    
    .venue-details h3 {
        font-size: 1.3rem;
    }
    
    .address, .phone {
        font-size: 1rem;
        flex-wrap: wrap;
    }
    
    .transport-info h4 {
        font-size: 1.1rem;
    }
    
    .map-container {
        height: 300px;
    }
    
    .map-btn {
        padding: 8px 12px;
        font-size: 12px;
        width: auto;
    }
    
    .map-btn .icon {
        font-size: 14px;
    }
}

/* Table Zoom Modal Styles */
.table-zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.table-zoom-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
}

.table-zoom-header {
    color: #d4af37;
    margin-bottom: 20px;
    text-align: center;
    font-size: 24px;
}

.table-zoom-svg {
    width: 100%;
    height: 300px;
    border: 2px solid #d4af37;
    border-radius: 10px;
    background: #f9f9f9;
}

.guest-list {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.guest-item {
    padding: 10px;
    background: #f0f8ff;
    border-radius: 8px;
    border-left: 4px solid #d4af37;
    font-size: 14px;
}

/* Hero 響應式媒體查詢 */
/* 大螢幕優化 - 確保頭部不被切掉 */
@media (min-width: 1200px) {
    .hero-background img {
        object-position: center 20%; /* 稍微往上，保留頭部 */
    }
}

@media (min-width: 1400px) {
    .hero {
        height: 100vh;
    }
    
    .hero-background img {
        object-fit: cover;
        object-position: center 15%; /* 大螢幕更偏向頭部 */
        transform: scale(1.01); /* 減少放大倍數 */
    }
}

/* 中等螢幕優化 */
@media (min-width: 769px) and (max-width: 1199px) {
    .hero-background img {
        object-position: center 25%; /* 中等螢幕平衡頭部和整體構圖 */
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 500px;
        padding-bottom: 6vh;
    }
    
    .hero-background img {
        object-position: center 30%; /* 手機版調整焦點位置 */
    }
    
    .main-title {
        font-size: clamp(2.5rem, 8vw, 4.5rem);
        letter-spacing: 2px;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .wedding-date {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 400px;
        padding-bottom: 4vh;
    }
    
    .hero-background img {
        object-position: center 25%;
    }
    
    .main-title {
        font-size: clamp(2rem, 7vw, 3.5rem);
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    
    .ampersand {
        margin: 0 1rem;
        font-size: 0.8em;
    }
}

/* 高解析度螢幕優化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-background img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* 圖片載入動畫 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-background img {
    animation: fadeIn 1s ease-in-out forwards;
}

/* Modern Geometric Decorations */
.hero::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 10%;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, rgba(212, 175, 55, 0.1), rgba(244, 228, 188, 0.05));
    border-radius: 50%;
    z-index: 2;
    animation: floatGeometry1 8s ease-in-out infinite;
}

.hero-content::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(244, 228, 188, 0.1), rgba(212, 175, 55, 0.05));
    border-radius: 20px;
    z-index: -2;
    animation: floatGeometry2 10s ease-in-out infinite reverse;
}

@keyframes floatGeometry1 {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    25% { 
        transform: translateY(-20px) rotate(90deg);
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-10px) rotate(180deg);
        opacity: 0.4;
    }
    75% { 
        transform: translateY(-30px) rotate(270deg);
        opacity: 0.7;
    }
}

@keyframes floatGeometry2 {
    0%, 100% { 
        transform: translateX(0px) rotate(0deg);
        opacity: 0.2;
    }
    33% { 
        transform: translateX(20px) rotate(120deg);
        opacity: 0.5;
    }
    66% { 
        transform: translateX(-10px) rotate(240deg);
        opacity: 0.3;
    }
}

/* Modern Responsive Design for Hero */
@media (max-width: 768px) {
    .hero-content {
        max-width: 95%;
        padding: 30px 15px;
        margin: 0 10px;
    }
    
    .hero-content::after {
        width: 60px;
        height: 60px;
        bottom: -30px;
        left: -30px;
    }
    
    .hero::after {
        width: 70px;
        height: 70px;
        top: 15%;
        right: 5%;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 25px 10px;
        border-radius: 20px;
    }
    
    .hero-content::before {
        border-radius: 22px;
    }
}

:root {
  /* 主要字體 - 中英文混合 */
  --font-serif: 'Playfair Display', 'Noto Serif TC', serif;
  --font-sans: 'Inter', 'Noto Sans TC', sans-serif;
  
  /* 中文特殊字體 */
  --font-chinese-elegant: 'Noto Serif TC', '思源宋體', '微軟正黑體', serif;
  --font-chinese-modern: 'Noto Sans TC', '思源黑體', '微軟雅黑', sans-serif;
}

/* 英文標題使用 Playfair Display */
.hero h1, .footer-logo h3 {
  font-family: var(--font-serif);
}

/* 中文內容使用 Noto Sans TC */
.hero-subtitle, .detail-text, .footer-links {
  font-family: var(--font-chinese-modern);
}

/* 特殊中文標題可以使用襯線字體 */
.section-header h2 {
  font-family: var(--font-chinese-elegant);
}

/* Custom Select Styling - Mobile Friendly */
.search-dropdowns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    max-width: 800px;
}

.custom-select-wrapper {
    flex: 1;
    min-width: 200px;
    position: relative;
    width: 100%;
}

.custom-select {
    position: relative;
    width: 100%;
    user-select: none;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.custom-select.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background-color: white;
    border: 2px solid #d4af37;
    border-radius: 10px;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
    min-height: 52px;
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(212, 175, 55, 0.1);
    position: relative;
    overflow: hidden;
}

.custom-select-trigger::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 95%;
    height: 90%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(184, 148, 31, 0.04));
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.custom-select-trigger:hover:not(.disabled)::before {
    opacity: 1;
}

.custom-select-trigger:hover:not(.disabled) {
    border-color: #b8941f;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
    transform: translateY(-1px);
}

.custom-select.open .custom-select-trigger {
    border-color: #b8941f;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.custom-select-text {
    flex: 1;
    font-family: inherit;
    font-weight: 500;
    color: #444;
    position: relative;
    z-index: 1;
}

.custom-select.disabled .custom-select-text {
    color: #999;
}

.custom-select-arrow {
    font-size: 14px;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    position: relative;
    z-index: 1;
    font-weight: bold;
}

.custom-select:hover .custom-select-arrow {
    color: #b8941f;
}

.custom-select.open .custom-select-arrow {
    transform: rotate(180deg);
    color: #b8941f;
}

.custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 2px solid #b8941f;
    border-top: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 240px;
    overflow-y: auto;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    /* Initial state - hidden but not display:none to allow transitions */
    pointer-events: none;
    display: none;
}

.custom-select.open .custom-select-options {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0);
    pointer-events: auto;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 240px;
    }
}

.custom-option {
    padding: 14px 18px;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    font-weight: 400;
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover {
    background-color: #f8f8f8;
    color: #d4af37;
    padding-left: 22px;
}

.custom-option.selected {
    background-color: #d4af37;
    color: white;
    font-weight: 500;
}

.custom-option.selected:hover {
    background-color: #b8941f;
    padding-left: 18px;
}

/* Disabled state */
.custom-select.disabled .custom-select-trigger {
    background-color: #f5f5f5;
    color: #999;
    border-color: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.custom-select.disabled .custom-select-trigger::before {
    display: none;
}

.custom-select.disabled .custom-select-arrow {
    color: #ccc;
}

/* Enhanced Search button styling */
.search-btn {
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 52px;
    min-width: 140px;
    max-width: 200px;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-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.6s;
}

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

.search-btn:hover {
    background: linear-gradient(135deg, #b8941f, #9a7a1a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.search-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.search-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Desktop responsive adjustments - One row layout */
@media (min-width: 769px) {
    .guest-search {
        flex-direction: row;
        align-items: stretch;
        gap: 20px;
        max-width: 1000px;
        padding: 0 20px;
    }
    
    .search-dropdowns {
        flex: 1;
        flex-wrap: nowrap;
        gap: 20px;
        min-width: 0;
        align-items: center;
    }
    
    .custom-select-wrapper {
        flex: 1;
        min-width: 200px;
        max-width: none;
        display: flex;
        align-items: center;
    }
    
    .custom-select {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .custom-select-trigger {
        height: 100%;
        min-height: 52px;
        display: flex;
        align-items: center;
    }
    
    .search-btn {
        flex-shrink: 0;
        min-width: 140px;
        max-width: 200px;
        padding: 14px 28px;
        margin-left: 0;
        min-height: 52px;
        align-self: center;
    }
}

/* Mobile responsive adjustments - Three row layout */
@media (max-width: 768px) {
    .guest-search {
        padding: 0 15px;
    }
    
    .search-dropdowns {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .custom-select-wrapper {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }
    
    .custom-select-trigger {
        padding: 16px 20px;
        min-height: 56px;
        font-size: 16px;
        width: 100%;
    }
    
    .custom-option {
        padding: 16px 20px;
        font-size: 16px;
        min-height: 56px;
        display: flex;
        align-items: center;
    }
    
    .search-btn {
        width: 100%;
        padding: 16px;
        min-height: 56px;
        font-size: 16px;
        max-width: none;
        margin-left: 0;
    }
    
    .custom-select-options {
        max-height: 280px;
    }
}

/* Prevent scrolling when dropdown is open on mobile */
.body-no-scroll {
    overflow: hidden;
}

/* Enhanced touch targets for mobile */
@media (max-width: 480px) {
    .custom-select-trigger {
        min-height: 56px;
        touch-action: manipulation;
    }
    
    .custom-option {
        min-height: 56px;
        touch-action: manipulation;
    }
    
    .search-btn {
        min-height: 56px;
        touch-action: manipulation;
    }
}

/* ====================================
   SIMPLIFIED PERFORMANCE-OPTIMIZED ANIMATIONS
   ==================================== */

/* Override complex animations with simple ones */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease !important;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure gallery items are visible and perform well */
.gallery-item {
    opacity: 1 !important;
    transform: none !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Ensure all images are visible */
.gallery-item img {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Simple time-unit animation */
.time-unit {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.time-unit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Override any problematic animations */
.story-item,
.gallery-section,
.countdown-section {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* Ensure sections are visible */
section {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Fix any hidden content */
.section-header,
.gallery-grid,
.story-timeline {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* Disable problematic transforms */
.hover-lift,
.hover-glow,
.slide-in-left,
.slide-in-right {
    transform: none !important;
    animation: none !important;
}

/* Emergency visibility fix */
* {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Re-enable only safe animations */
.gallery-item,
.time-unit {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover,
.time-unit:hover {
    transform: translateY(-2px);
}

/* ====================================
   花瓣動畫效果
   ==================================== */

.flower-petals {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.petal {
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(ellipse at center, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(255, 255, 255, 0.7) 50%, 
        rgba(255, 255, 255, 0.3) 100%);
    border-radius: 50% 0 50% 50%;
    animation: petalFall linear infinite;
    opacity: 0;
}

.petal:nth-child(1) {
    left: 5%;
    animation-duration: 8s;
    animation-delay: 0s;
    width: 8px;
    height: 8px;
    --drift: 20px;
}

.petal:nth-child(2) {
    left: 15%;
    animation-duration: 10s;
    animation-delay: 1s;
    width: 12px;
    height: 12px;
    --drift: -30px;
}

.petal:nth-child(3) {
    left: 25%;
    animation-duration: 7s;
    animation-delay: 3s;
    width: 6px;
    height: 6px;
    --drift: 15px;
}

.petal:nth-child(4) {
    left: 35%;
    animation-duration: 12s;
    animation-delay: 2s;
    width: 10px;
    height: 10px;
    --drift: -25px;
}

.petal:nth-child(5) {
    left: 45%;
    animation-duration: 9s;
    animation-delay: 4s;
    width: 14px;
    height: 14px;
    --drift: 35px;
}

.petal:nth-child(6) {
    left: 55%;
    animation-duration: 11s;
    animation-delay: 0.5s;
    width: 8px;
    height: 8px;
    --drift: -20px;
}

.petal:nth-child(7) {
    left: 65%;
    animation-duration: 8.5s;
    animation-delay: 2.5s;
    width: 12px;
    height: 12px;
    --drift: 40px;
}

.petal:nth-child(8) {
    left: 75%;
    animation-duration: 10.5s;
    animation-delay: 1.5s;
    width: 7px;
    height: 7px;
    --drift: -15px;
}

.petal:nth-child(9) {
    left: 85%;
    animation-duration: 9.5s;
    animation-delay: 3.5s;
    width: 11px;
    height: 11px;
    --drift: 25px;
}

.petal:nth-child(10) {
    left: 95%;
    animation-duration: 13s;
    animation-delay: 5s;
    width: 9px;
    height: 9px;
    --drift: -35px;
}

@keyframes petalFall {
    0% {
        transform: translateY(-100px) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    50% {
        transform: translateY(50vh) translateX(var(--drift, 0px)) rotate(180deg);
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(100vh) translateX(calc(var(--drift, 0px) * 1.5)) rotate(360deg);
        opacity: 0;
    }
}

/* ====================================
   故事投影片切換動畫 (替代原有的愛情故事動畫)
   ==================================== */

.story-slideshow {
    position: relative;
    overflow: hidden;
}

.story-slides-container {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.story-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    transform: translateY(50px);
}

.story-slide.active {
    opacity: 1;
    transform: translateY(0);
}

.story-slide.prev {
    transform: translateY(-100%);
}

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

.story-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    will-change: transform;
    backface-visibility: hidden;
}

.story-slide.active .story-background img {
    transform: scale(1.05);
}

.story-slide .story-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.story-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4rem 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    z-index: 3;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s ease;
}

.story-slide.active .story-content-overlay {
    transform: translateY(0);
    opacity: 1;
}

.story-content-overlay .story-date {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.story-content-overlay h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.story-content-overlay p {
    font-size: 1.3rem;
    line-height: 1.6;
    max-width: 600px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

/* 進度指示器 */
.story-progress {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    gap: 1rem;
    z-index: 4;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.progress-dot:hover {
    background: var(--secondary-color);
}

/* RWD 響應式設計 */
@media (max-width: 1024px) {
    .story-slides-container {
        height: 80vh;
        min-height: 500px;
    }
    
    .story-content-overlay {
        padding: 3rem 1.5rem;
    }
    
    .story-content-overlay h3 {
        font-size: 2rem;
    }
    
    .story-content-overlay p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .story-slides-container {
        height: 70vh;
        min-height: 400px;
    }
    
    .story-content-overlay {
        padding: 2rem 1rem;
        text-align: center;
    }
    
    .story-content-overlay h3 {
        font-size: 1.8rem;
    }
    
    .story-content-overlay p {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .story-progress {
        bottom: 1rem;
        right: 50%;
        transform: translateX(50%);
    }
}

@media (max-width: 480px) {
    .story-slides-container {
        height: 60vh;
        min-height: 350px;
    }
    
    .story-content-overlay {
        padding: 1.5rem 1rem;
    }
    
    .story-content-overlay .story-date {
        font-size: 1rem;
    }
    
    .story-content-overlay h3 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .story-content-overlay p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .progress-dot {
        width: 10px;
        height: 10px;
    }
}

/* 新增的故事模式選擇器樣式 */
.story-mode-selector {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.mode-checkbox-wrapper {
    width: 100%;
}

.checkbox-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 12px 20px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--text-color);
    user-select: none;
}

.checkbox-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.checkbox-item.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    border-color: var(--primary-color);
}

.checkbox-item input[type="radio"] {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.checkbox-item.active .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.checkbox-text {
    font-size: 14px;
    font-weight: inherit;
}

/* 新增的響應式樣式 */
@media (max-width: 480px) {
    .story-mode-selector {
        margin-top: 15px;
    }
    
    .checkbox-group {
        gap: 8px;
        /* 保持一行顯示，不改為 column */
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }
    
    .checkbox-item {
        padding: 6px 10px;
        font-size: 12px;
        /* 移除 min-width，讓項目更緊湊 */
        justify-content: center;
        flex: 1;
        max-width: 120px;
    }
    
    .checkbox-text {
        font-size: 12px;
    }
    
    .checkbox-custom {
        width: 12px;
        height: 12px;
    }
    
    .checkbox-item.active .checkbox-custom::after {
        width: 4px;
        height: 4px;
    }
}

.table-zoom-header {
    color: #d4af37;
    margin-bottom: 20px;
    text-align: center;
    font-size: 24px;
}

.table-zoom-svg {
    width: 100%;
    height: 300px;
    border: 2px solid #d4af37;
    border-radius: 10px;
    background: #f9f9f9;
}

.guest-list {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.guest-item {
    padding: 10px;
    background: #f0f8ff;
    border-radius: 8px;