/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    background: #ff6b6b;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #ff6b6b;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #ff6b6b;
    margin: 15px auto;
    border-radius: 2px;
}

/* 头部样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.logo {
    display: flex;
    align-items: center;
}

.logo i {
    color: #ff6b6b;
    font-size: 2rem;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.8rem;
    color: #333;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav ul li a {
    text-decoration: none;
    color: #333;
    padding: 10px 15px;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.nav ul li a:hover {
    color: #ff6b6b;
}

.nav ul li a.active {
    color: #ff6b6b;
    font-weight: bold;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    margin-bottom: 60px;
}

.hero-content {
    width: 100%;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 表白表单 */
.post-section {
    padding: 60px 0;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 60px;
}

.post-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border 0.3s;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #ff6b6b;
    outline: none;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.form-group input[type="file"] {
    padding: 5px;
}

/* 表白墙 */
.gallery-section {
    padding: 60px 0;
    margin-bottom: 60px;
}

.filter {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 16px;
}

.love-notes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.love-note {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.love-note:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.sender {
    font-weight: bold;
    color: #ff6b6b;
}

.receiver {
    font-weight: bold;
    color: #333;
}

.note-content {
    margin-bottom: 15px;
    line-height: 1.7;
}

.note-image {
    margin-top: 15px;
    border-radius: 5px;
    overflow: hidden;
    max-height: 200px;
}

.note-image img {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s;
}

.note-image img:hover {
    transform: scale(1.03);
}

.note-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    font-size: 14px;
    color: #888;
}

.note-date {
    font-style: italic;
}

.note-actions i {
    margin-left: 10px;
    cursor: pointer;
    transition: color 0.3s;
}

.note-actions i:hover {
    color: #ff6b6b;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.page-btn {
    padding: 8px 15px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
}

.page-btn.active {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
}

/* 关于我们 */
.about-section {
    padding: 60px 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 60px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-top: 50px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 20px;
    min-width: 200px;
}

.stat-item i {
    font-size: 2.5rem;
    color: #ff6b6b;
    margin-bottom: 15px;
}

.stat-item span {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #eee;
    margin-top: 60px;
}

.footer p {
    margin-bottom: 20px;
    color: #777;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: #777;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #ff6b6b;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    display: block;
    margin: auto;
    max-width: 80%;
    max-height: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #ff6b6b;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }
    
    .nav ul {
        margin-top: 20px;
        justify-content: center;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        margin-bottom: 30px;
    }
    
    .love-notes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .filter {
        flex-direction: column;
    }
    
    .filter input[type="text"] {
        width: 100%;
    }
}
/* 音乐播放器样式 */
.music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

.music-btn {
    background: rgba(255, 107, 107, 0.8);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.music-btn:hover {
    background: rgba(255, 107, 107, 1);
    transform: scale(1.05);
}

.music-btn i {
    font-size: 16px;
}
/* 自定义文件上传样式 */
.custom-file-upload {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-file-upload input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.file-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    background: #ff6b6b;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.file-label:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.file-label i {
    font-size: 16px;
}

.file-text {
    font-size: 14px;
}

.file-name {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}