/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #FFF0F5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

h3 {
    text-align: center;
    color: #9D4EDD;
    margin-bottom: 40px;
    font-size: 2rem;
    position: relative;
}

h3::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #FF85A2;
    margin: 10px auto;
    border-radius: 3px;
}

.btn {
    background-color: #FF85A2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn:hover {
    background-color: #C084FC;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(157, 78, 221, 0.3);
}

.btn.cancel {
    background-color: #e0e0e0;
    color: #666;
}

.btn.cancel:hover {
    background-color: #ccc;
    box-shadow: none;
}

/* 导航栏 */
nav {
    background-color: #9D4EDD;
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    font-weight: bold;
}

.menu a {
    color: white;
    text-decoration: none;
    margin-left: 25px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.menu a:hover {
    color: #FFD1DC;
}

/* 横幅 */
.banner {
    background: linear-gradient(rgba(157, 78, 221, 0.7), rgba(255, 133, 162, 0.7)), 
                url('https://picsum.photos/id/1060/1920/500') center/cover no-repeat;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.banner h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.banner p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* 倒计时卡片 */
.countdown-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card i {
    font-size: 2.5rem;
    color: #FF85A2;
    margin-bottom: 15px;
}

.card h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.card .num {
    font-size: 2.8rem;
    font-weight: bold;
    color: #9D4EDD;
    margin: 10px 0;
}

/* 照片墙 */
#add-photo-btn {
    display: block;
    margin: 0 auto 30px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.photo-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.photo-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.photo-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.photo-info {
    padding: 15px;
}

.photo-info h4 {
    color: #333;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.photo-info p {
    color: #666;
    font-size: 0.9rem;
}

/* 悄悄话区域 */
.message-box {
    max-width: 600px;
    margin: 0 auto 40px;
    display: flex;
    gap: 10px;
}

#message-input {
    flex: 1;
    padding: 15px;
    border: 2px solid #f0f0f0;
    border-radius: 30px;
    resize: none;
    font-size: 1rem;
    transition: border-color 0.3s;
}

#message-input:focus {
    outline: none;
    border-color: #C084FC;
}

.messages-list {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message-item {
    background: white;
    padding: 15px;
    border-radius: 18px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    position: relative;
}

.message-item .time {
    display: block;
    text-align: right;
    color: #aaa;
    font-size: 0.8rem;
    margin-top: 8px;
}

/* 弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-content h3 {
    margin-bottom: 20px;
    color: #9D4EDD;
}

#photo-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#photo-form input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

#photo-form input:focus {
    outline: none;
    border-color: #C084FC;
}

.modal-btns {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.empty {
    text-align: center;
    color: #888;
    padding: 50px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .banner h2 {
        font-size: 2.2rem;
    }
    
    .menu a {
        margin-left: 15px;
        font-size: 0.9rem;
    }
    
    .message-box {
        flex-direction: column;
    }
    
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}