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


body {
    font-family: 'Noto Serif TC', serif;
    background: linear-gradient(135deg, #faf8f5 0%, #f5f1eb 50%, #f0ebe5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;

}

.container {
    position: relative;
    width: 75vw;
    min-height: 100vh;
    height: auto;
    margin-top: 5vh;
}

/* 請帖卡片樣式 */
.invitation-card {
    cursor: pointer;
    transition: all 0.3s ease;
    perspective: 1000px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;

}

.invitation-card:hover {
    transform: scale(1.02);
}

.card-envelope {
    position: relative;
    width: 100%;
    height: 350px;
    background: linear-gradient(145deg, #faf8f5, #f5f1eb);
    border-radius: 15px;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.1),
        0 0 0 1px rgba(255,255,255,0.5) inset;
    overflow: hidden;
    margin-top: 23vh;
}

.envelope-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(145deg, #d4af8c, #c19a6b);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    z-index: 2;
}

.envelope-bottom {
    position: absolute;
    top: 30px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: #faf8f5;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-content {
    text-align: center;
    padding: 30px;
    color: #6b4e3d;
}

.flourish-top, .flourish-bottom {
    font-size: 1.875rem;
    color: #d4af8c;
    margin: 10px 0;
}

.names {
    font-size: 2.25rem;
    font-weight: 500;
    margin: 20px 0;
    color: #5a4037;
    letter-spacing: 2px;
}

.invitation-text {
    font-size: 1.25rem;
    margin: 15px 0;
    line-height: 1.6;
    color: #8b7355;
}

.click-hint {
    font-size: 1.125rem;
    color: #b8860b;
    margin-top: 20px;
    animation: pulse 2s infinite;
    font-weight: 300;
}

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

/* 詳細資訊頁面 */
.invitation-details {
    background: #faf8f5;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.invitation-details.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.details-content {
    padding: 30px;
    position: relative;
}

.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #8b7355;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: rgba(212, 175, 140, 0.1);
    color: #5a4037;
}

.details-header {
    text-align: center;
    margin: 40px 0 30px;
    padding-top: 20px;
}

.couple-names {
    font-size: 2.5rem;
    color: #5a4037;
    margin-bottom: 10px;
    font-weight: 500;
}

.wedding-subtitle {
    font-size: 1.375rem;
    color: #8b7355;
    font-weight: 300;
}

.event-details {
    margin: 30px 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.detail-section {
    margin: 20px 0;
    padding: 15px;
    background: rgba(250, 248, 245, 0.8);
    border-radius: 10px;
    border-left: 4px solid #d4af8c;
}

.detail-section h3 {
    font-size: 1.5rem;
    color: #5a4037;
    margin-bottom: 8px;
    font-weight: 500;
}

.detail-section p {
    font-size: 1.25rem;
    color: #6b4e3d;
    line-height: 1.6;
}

.rsvp-section {
    margin: 30px 0;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
}

.rsvp-section h3 {
    color: #5a4037;
    margin-bottom: 12px;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.rsvp-section p {
    color: #8b7355;
    margin-bottom: 15px;
    font-size: 1.25rem;
    line-height: 1.6;
}

.rsvp-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.rsvp-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Serif TC', serif;
    font-weight: 500;
}

.rsvp-btn.attend {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
}

.rsvp-btn.decline {
    background: linear-gradient(135deg, #f44336, #da190b);
    color: white;
}

.rsvp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* RSVP 表單樣式 */
.rsvp-form {
    margin-top: 25px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(250, 248, 245, 0.95), rgba(245, 241, 235, 0.9));
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 140, 0.2);
    box-shadow: 
        0 10px 25px rgba(0,0,0,0.08),
        0 0 0 1px rgba(255,255,255,0.3) inset;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 1.125rem;
    font-weight: 500;
    color: #5a4037;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid rgba(212, 175, 140, 0.3);
    border-radius: 12px;
    font-size: 1.125rem;
    font-family: 'Noto Serif TC', serif;
    background: linear-gradient(135deg, rgba(250, 248, 245, 0.9), rgba(255, 255, 255, 0.8));
    transition: all 0.3s ease;
    color: #5a4037;
    box-shadow: 
        0 2px 8px rgba(0,0,0,0.04),
        0 0 0 1px rgba(255,255,255,0.5) inset;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4af8c;
    background: linear-gradient(135deg, #faf8f5, #ffffff);
    box-shadow: 
        0 0 0 4px rgba(212, 175, 140, 0.15),
        0 4px 12px rgba(212, 175, 140, 0.2),
        0 0 0 1px rgba(255,255,255,0.8) inset;
    transform: translateY(-1px);
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23d4af8c' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    appearance: none;
    padding-right: 40px;
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
    font-family: 'Noto Serif TC', serif;
    line-height: 1.6;
}

.form-group textarea::placeholder {
    color: rgba(139, 115, 85, 0.6);
    font-style: italic;
}

.form-submit {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 140, 0.2);
}

.submit-btn {
    background: linear-gradient(145deg, #d4af8c, #c19a6b);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 1.375rem;
    font-weight: 500;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Serif TC', serif;
    letter-spacing: 1px;
    box-shadow: 
        0 8px 20px rgba(212, 175, 140, 0.4),
        0 0 0 1px rgba(255,255,255,0.3) inset;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

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

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 25px rgba(212, 175, 140, 0.5),
        0 0 0 1px rgba(255,255,255,0.4) inset;
    background: linear-gradient(145deg, #c19a6b, #a68759);
}

.submit-btn:active {
    transform: translateY(-1px);
    box-shadow: 
        0 6px 15px rgba(212, 175, 140, 0.4),
        0 0 0 1px rgba(255,255,255,0.3) inset;
}

.photo-gallery {
    margin: 30px 0;
}

.photo-gallery h3 {
    text-align: center;
    color: #5a4037;
    margin-bottom: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* 響應式設計 */
@media (max-width: 480px) {
    .container {
        max-width: 100%;
        padding: 10px;
    }
    
    /* 字體大小調整 - 手機版較小 */
    .flourish-top, .flourish-bottom {
        font-size: 1.5rem;
    }
    
    .names {
        font-size: 1.25rem;
    }
    
    .invitation-text {
        font-size: 1rem;
    }
    
    .click-hint {
        font-size: 0.9rem;
    }
    
    .back-btn {
        font-size: 1rem;
    }
    
    .couple-names {
        font-size: 1.8rem;
    }
    
    .wedding-subtitle {
        font-size: 1.125rem;
    }
    
    .detail-section h3 {
        font-size: 1.125rem;
    }
    
    .detail-section p {
        font-size: 1rem;
    }
    
    .rsvp-section h3 {
        font-size: 1.25rem;
    }
    
    .rsvp-section p {
        font-size: 1rem;
    }
    
    .rsvp-btn {
        font-size: 1rem;
        width: 200px;
    }
    
    .form-group label {
        font-size: 0.95rem;
    }
    
    .event-details {
        grid-template-columns: 1fr;
    }
    
    .rsvp-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .details-content {
        padding: 20px;
    }
    
    .rsvp-section {
        padding: 20px;
        margin: 25px 0;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rsvp-form {
        padding: 20px;
        margin-top: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 0.95rem;
    }
    
    .form-submit {
        margin-top: 25px;
        padding-top: 15px;
    }
    
    .submit-btn {
        width: 100%;
        max-width: 320px;
        padding: 14px 30px;
        font-size: 1.125rem;
    }
}

/* 滾動條樣式 */
.invitation-details::-webkit-scrollbar {
    width: 6px;
}

.invitation-details::-webkit-scrollbar-track {
    background: rgba(212, 175, 140, 0.1);
    border-radius: 3px;
}

.invitation-details::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 140, 0.5);
    border-radius: 3px;
}

.invitation-details::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 140, 0.7);
}

/* Lightbox 樣式 */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.lightbox-content {
    position: relative;
    max-width: 800px;
    max-height: 600px;
}

.lightbox img {
    max-width: 800px;
    max-height: 600px;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.lightbox-close:hover {
    background: #f5f5f5;
    transform: scale(1.1);
}

/* 響應式 lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 90vw;
        max-height: 80vh;
    }
    
    .lightbox img {
        max-width: 90vw;
        max-height: 80vh;
    }
} 