/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    overflow-x: hidden;
}

.invitation-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* 页面样式 */
.page {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 30px 15px;
    position: relative;
}

.page-2,
.page-3,
.page-4 {
    min-height: 50vh;
}

.page-2 .page-content {
    margin-top: 100px;
}

.page-content {
    width: 100%;
    max-width: 500px;
}

/* 第一页样式 */
.page-1 {
    background: url('images/蓝天背景.jpg') no-repeat center center;
    background-size: cover;
    color: #333;
    text-align: center;
    position: relative;
}

.page-1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 1;
}

.page-1 .page-content {
    position: relative;
    z-index: 2;
}

.logo {
    width: 240px;
    height: 240px;
    margin: 0 auto 30px;
}

.logo img {
    width: 100%;
    height: auto;
    display: block;
}

.title,
.subtitle {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #1a73e8;
}

.subtitle {
    margin-bottom: 20px;
}

.invitation-text {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.english-text {
    font-size: 16px;
    margin-bottom: 30px;
    color: #666;
}

.invite-btn {
    display: inline-block;
    padding: 12px 40px;
    background-color: #1a73e8;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border-radius: 25px;
    margin-bottom: 40px;
}

.opening-info {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

.opening-info p {
    margin-bottom: 10px;
}

/* 通用标题样式 */
.section-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: white;
    background-color: #1a73e8;
    padding: 10px 40px;
    border-radius: 25px;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    display: none;
}

/* 第二页邀请语样式 */
.page-2 {
    background-color: #e3f2fd;
}

.invitation-text {
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
    color: #555;
}

.invitation-text p {
    margin-bottom: 10px;
}

.invitation-text p:first-child {
    font-weight: bold;
    font-size: 18px;
    color: #333;
}

/* 第三页活动流程样式 */
.page-3 {
    background-color: #e3f2fd;
}

.schedule {
    margin-top: 15px;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 30px;
}

.schedule-item::before {
    content: '♦';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #1a73e8;
    font-size: 16px;
}

.schedule-item:last-child {
    border-bottom: none;
}

.time {
    font-weight: bold;
    color: #ff6b6b;
    min-width: 120px;
}

.event {
    color: #555;
    text-align: right;
}

/* 第四页邀请晚宴样式 */
.page-4 {
    background-color: #e3f2fd;
    padding-bottom: 30px;
}

.dinner-form {
    margin-top: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: #ff6b6b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.submit-btn:hover {
    background-color: #ee5a6f;
}

.form-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .title,
    .subtitle {
        font-size: 36px;
    }
    
    .invitation-text {
        font-size: 16px;
    }
    
    .english-text {
        font-size: 14px;
    }
    
    .invite-btn {
        padding: 10px 30px;
        font-size: 16px;
    }
    
    .opening-info {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .page {
        padding: 15px;
    }
    
    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .event {
        text-align: left;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
}

/* 滚动效果 */
html {
    scroll-behavior: smooth;
}

/* 隐藏滚动条但保留功能 */
::-webkit-scrollbar {
    width: 0;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: transparent;
}