/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #ffeef8 0%, #fff5f5 100%);
}

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

/* 标题栏红色囍字 */
.header {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
}

.xi-character {
    font-size: 4rem;
    color: #ffd700;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 10px #ffd700; }
    to { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 20px #ffd700, 0 0 30px #ffd700; }
}

/* 请柬邀请开场 */
.invitation-intro {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #fff 0%, #fef7f7 100%);
}

.couple-names {
    font-size: 3rem;
    color: #dc2626;
    margin-bottom: 30px;
    font-weight: bold;
}

.invitation-text {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
    line-height: 2;
}

.main-photo {
    margin-top: 40px;
}

.main-photo img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.main-photo img:hover {
    transform: scale(1.02);
}

/* 爱情故事主题 */
.love-story {
    padding: 80px 0;
    background: #fff;
}

.love-story h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #dc2626;
    margin-bottom: 60px;
}

.story-item {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    gap: 40px;
}

.story-item.reverse {
    flex-direction: row-reverse;
}

.story-content {
    flex: 1;
}

.story-content h3 {
    font-size: 1.8rem;
    color: #dc2626;
    margin-bottom: 20px;
}

.story-content p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
}

.story-image {
    flex: 1;
}

.story-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* 新郎新娘头像 */
.couple-portraits {
    padding: 80px 0;
    background: linear-gradient(135deg, #fef7f7 0%, #fff 100%);
    text-align: center;
}

.couple-portraits h2 {
    font-size: 2.5rem;
    color: #dc2626;
    margin-bottom: 60px;
}

.portraits {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
}

.portrait {
    text-align: center;
}

.portrait img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid #dc2626;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.2);
    transition: transform 0.3s ease;
}

.portrait img:hover {
    transform: scale(1.05);
}

.portrait h3 {
    font-size: 1.5rem;
    color: #dc2626;
    margin: 20px 0 10px;
}

.portrait p {
    color: #666;
    font-size: 1rem;
}

.heart {
    font-size: 3rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

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

/* 婚礼时间日历 */
.wedding-date {
    padding: 80px 0;
    background: #fff;
    text-align: center;
}

.wedding-date h2 {
    font-size: 2.5rem;
    color: #dc2626;
    margin-bottom: 60px;
}

.calendar {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.calendar-header {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 20px;
}

.calendar-header h3 {
    font-size: 1.5rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #f0f0f0;
}

.day-header {
    background: #f8f9fa;
    padding: 15px 5px;
    font-weight: bold;
    color: #666;
    text-align: center;
}

.day {
    background: white;
    padding: 15px 5px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.day:hover {
    background: #f8f9fa;
}

.wedding-day {
    background: #dc2626 !important;
    color: white !important;
    font-weight: bold;
    position: relative;
}

.wedding-day::after {
    content: '♥';
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 0.8rem;
}

.wedding-time {
    padding: 30px;
    background: #fef7f7;
}

.wedding-time p {
    font-size: 1.2rem;
    color: #dc2626;
    font-weight: bold;
    margin: 5px 0;
}

/* 婚礼地址 */
.wedding-venue {
    padding: 80px 0;
    background: linear-gradient(135deg, #fef7f7 0%, #fff 100%);
}

.wedding-venue h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #dc2626;
    margin-bottom: 60px;
}

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

.venue-info h3 {
    font-size: 2rem;
    color: #dc2626;
    margin-bottom: 20px;
}

.venue-info p {
    font-size: 1.2rem;
    color: #666;
    margin: 10px 0;
}

.map-container {
    margin: 40px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.map-btn {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.map-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
}

/* 宾客登记 */
.guest-registration {
    padding: 80px 0;
    background: #fff;
}

.guest-registration h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #dc2626;
    margin-bottom: 60px;
}

.registration-form {
    max-width: 600px;
    margin: 0 auto;
    background: #fef7f7;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #dc2626;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border: none;
    padding: 15px;
    font-size: 1.2rem;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
}

/* 感谢语结尾 */
.thank-you {
    padding: 80px 0;
    background: linear-gradient(135deg, #fef7f7 0%, #fff 100%);
    text-align: center;
}

.thank-you h2 {
    font-size: 2.5rem;
    color: #dc2626;
    margin-bottom: 40px;
}

.thank-text {
    font-size: 1.2rem;
    color: #666;
    line-height: 2;
    margin-bottom: 50px;
}

.thank-photo {
    margin: 40px 0;
}

.thank-photo img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.signature {
    font-size: 1.3rem;
    color: #dc2626;
    font-weight: bold;
    margin-top: 30px;
}

/* 页脚 */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 30px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .xi-character {
        font-size: 3rem;
    }
    
    .couple-names {
        font-size: 2rem;
    }
    
    .story-item,
    .story-item.reverse {
        flex-direction: column;
        text-align: center;
    }
    
    .portraits {
        flex-direction: column;
        gap: 30px;
    }
    
    .heart {
        font-size: 2rem;
    }
    
    .calendar {
        margin: 0 20px;
    }
    
    .registration-form {
        margin: 0 20px;
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .xi-character {
        font-size: 2.5rem;
    }
    
    .couple-names {
        font-size: 1.5rem;
    }
    
    .invitation-text {
        font-size: 1rem;
    }
    
    section {
        padding: 50px 0 !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
}