/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 50%, #f48fb1 100%);
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #e91e63;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    color: #e91e63;
    transform: translateY(-2px);
}

.user-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-login, .btn-register, .btn-logout {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-login {
    background: #e91e63;
    color: white;
}

.btn-register {
    background: #fff;
    color: #e91e63;
    border: 2px solid #e91e63;
}

.btn-logout {
    background: #f44336;
    color: white;
}

.btn-login:hover, .btn-register:hover, .btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 主内容区域 */
.main-content {
    min-height: 70vh;
    padding: 2rem 0;
}

.hero-section {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    margin: 2rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-section h1 {
    font-size: 3rem;
    color: #e91e63;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero-section p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #e91e63, #f06292);
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 时间轴样式 */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background: linear-gradient(to bottom, #e91e63, #f8bbd0);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -12px;
    background-color: white;
    border: 4px solid #e91e63;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-item:hover::after {
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(233, 30, 99, 0.5);
}

.timeline-left {
    left: 0;
}

.timeline-right {
    left: 50%;
}

.timeline-left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid white;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}

.timeline-right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}

.timeline-right::after {
    left: -12px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.timeline-date {
    color: #e91e63;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

/* 照片墙样式 */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.photo-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.photo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.photo-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.photo-item:hover .photo-overlay {
    transform: translateY(0);
}

/* 表单样式 */
.form-container {
    max-width: 500px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
    text-align: center;
    color: #e91e63;
    margin-bottom: 0.5rem;
}

.form-container p {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

.error-messages {
    background: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.error-messages p {
    color: #c62828;
    margin: 0.5rem 0;
    text-align: left;
}

.success-message {
    background: #e8f5e8;
    border: 1px solid #c8e6c9;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.success-message p {
    color: #2e7d32;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #e91e63;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.form-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #e91e63, #f06292);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.3);
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
}

.form-footer a {
    color: #e91e63;
    text-decoration: none;
    font-weight: 500;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* 登出页面样式 */
.logout-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn-secondary {
    display: inline-block;
    background: #fff;
    color: #e91e63;
    padding: 1rem 2rem;
    border: 2px solid #e91e63;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.2);
}

/* 时间轴页面样式 */
.timeline-header {
    text-align: center;
    margin-bottom: 2rem;
}

.timeline-header h2 {
    color: #e91e63;
    margin-bottom: 0.5rem;
}

.days-together {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e91e63;
}

.btn-add-node {
    display: inline-block;
    background: linear-gradient(135deg, #e91e63, #f06292);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.btn-add-node:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

/* 时间轴视图切换 */
.timeline-views {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.view-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    color: #666;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn.active {
    background: #e91e63;
    color: white;
}

.view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 空时间轴状态 */
.empty-timeline {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    margin: 2rem 0;
}

.empty-timeline i {
    font-size: 3rem;
    color: #e91e63;
    margin-bottom: 1rem;
}

.empty-timeline p {
    color: #666;
    margin: 0.5rem 0;
}

/* 时间轴内容样式 */
.timeline-content h3 {
    margin: 0.5rem 0;
    color: #333;
}

.timeline-description {
    color: #666;
    margin: 0.5rem 0;
    line-height: 1.6;
}

.timeline-image {
    margin: 1rem 0;
    border-radius: 10px;
    overflow: hidden;
}

.timeline-image img {
    width: 100%;
    height: auto;
    display: block;
}

.timeline-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.timeline-type {
    background: #f06292;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.btn-edit, .btn-delete {
    text-decoration: none;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-edit {
    background: #4caf50;
    color: white;
    margin-right: 0.5rem;
}

.btn-delete {
    background: #f44336;
    color: white;
}

.btn-edit:hover, .btn-delete:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 当前图片预览样式 */
.current-image {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.current-image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
}

.current-image label {
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
}

/* 返回按钮样式 */
.btn-back {
    display: inline-block;
    background: #666;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #555;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 照片墙样式 */
.photos-header {
    text-align: center;
    margin-bottom: 2rem;
}

.photos-header h2 {
    color: #e91e63;
    margin-bottom: 0.5rem;
}

.btn-upload-photo {
    display: inline-block;
    background: linear-gradient(135deg, #e91e63, #f06292);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.btn-upload-photo:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

/* 照片筛选 */
.photos-filter {
    background: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
}

.filter-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-input {
    padding: 0.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-input:focus {
    outline: none;
    border-color: #e91e63;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.btn-clear-filters {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 20px;
    background: #666;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-clear-filters:hover {
    background: #555;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 空照片状态 */
.empty-photos {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    margin: 2rem 0;
    grid-column: 1 / -1;
}

.empty-photos i {
    font-size: 3rem;
    color: #e91e63;
    margin-bottom: 1rem;
}

.empty-photos p {
    color: #666;
    margin: 0.5rem 0;
}

/* 照片覆盖层内容样式 */
.photo-overlay h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: white;
}

.photo-date, .photo-location, .photo-event {
    font-size: 0.85rem;
    margin: 0.3rem 0;
    color: rgba(255, 255, 255, 0.9);
}

.photo-location i, .photo-event i {
    margin-right: 0.3rem;
}

.photo-actions {
    margin-top: 1rem;
}

.btn-delete-photo {
    background: #f44336;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-delete-photo:hover {
    background: #d32f2f;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 表单行样式 */
.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group.half {
    flex: 1;
    margin-bottom: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .photos-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-section {
        justify-content: space-between;
    }
    
    .form-row {
        flex-direction: column;
    }
}

/* 日记样式 */
.diary-header {
    text-align: center;
    margin-bottom: 2rem;
}

.diary-header h2 {
    color: #e91e63;
    margin-bottom: 0.5rem;
}

.btn-add-diary {
    display: inline-block;
    background: linear-gradient(135deg, #e91e63, #f06292);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.btn-add-diary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

/* 空日记状态 */
.empty-diary {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    margin: 2rem 0;
}

.empty-diary i {
    font-size: 3rem;
    color: #e91e63;
    margin-bottom: 1rem;
}

.empty-diary p {
    color: #666;
    margin: 0.5rem 0;
}

/* 日记列表 */
.diary-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 日记条目 */
.diary-entry {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.diary-entry:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 日记元数据 */
.diary-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.diary-date {
    color: #e91e63;
    font-weight: bold;
}

.diary-author {
    color: #666;
    font-size: 0.9rem;
}

.diary-actions {
    display: flex;
    gap: 0.5rem;
}

/* 日记标题 */
.diary-title {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* 日记内容 */
.diary-content {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    color: #e91e63;
    text-decoration: none;
    font-weight: 500;
    margin-left: 0.5rem;
}

.read-more:hover {
    text-decoration: underline;
}

/* 日记时间戳 */
.diary-timestamp {
    color: #999;
    font-size: 0.85rem;
    text-align: right;
}

.updated {
    color: #f44336;
    font-weight: 500;
}

/* 日记编辑和删除按钮 */
.btn-edit-diary, .btn-delete-diary {
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-edit-diary {
    background: #4caf50;
    color: white;
}

.btn-delete-diary {
    background: #f44336;
    color: white;
}

.btn-edit-diary:hover, .btn-delete-diary:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 日记详情页 */
.diary-view-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.diary-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.diary-view-actions {
    display: flex;
    gap: 0.5rem;
}

.diary-view-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.diary-view-date, .diary-view-author, .diary-view-timestamp {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.diary-view-content {
    color: #333;
    line-height: 1.8;
    font-size: 1.1rem;
    white-space: pre-wrap;
}

/* 日记文本域样式 */
.diary-textarea {
    resize: vertical;
    min-height: 300px;
    font-family: inherit;
    font-size: 1rem;
}

/* 纪念日样式 */
.anniversaries-header {
    text-align: center;
    margin-bottom: 2rem;
}

.anniversaries-header h2 {
    color: #e91e63;
    margin-bottom: 0.5rem;
}

.btn-add-anniversary {
    display: inline-block;
    background: linear-gradient(135deg, #e91e63, #f06292);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.btn-add-anniversary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

/* 空纪念日状态 */
.empty-anniversaries {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    margin: 2rem 0;
}

.empty-anniversaries i {
    font-size: 3rem;
    color: #e91e63;
    margin-bottom: 1rem;
}

.empty-anniversaries p {
    color: #666;
    margin: 0.5rem 0;
}

/* 纪念日列表 */
.anniversaries-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 纪念日条目 */
.anniversary-item {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.anniversary-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 纪念日信息 */
.anniversary-info {
    flex: 1;
    min-width: 200px;
}

.anniversary-title {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.anniversary-date {
    color: #e91e63;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.yearly-badge {
    background: linear-gradient(135deg, #e91e63, #f06292);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 纪念日倒计时 */
.anniversary-countdown {
    text-align: center;
    background: rgba(233, 30, 99, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    min-width: 200px;
}

.countdown-title {
    color: #e91e63;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.countdown-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

/* 纪念日操作按钮 */
.anniversary-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-edit-anniversary, .btn-delete-anniversary {
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-edit-anniversary {
    background: #4caf50;
    color: white;
}

.btn-delete-anniversary {
    background: #f44336;
    color: white;
}

.btn-edit-anniversary:hover, .btn-delete-anniversary:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 复选框样式 */
.form-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.form-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #e91e63;
}

.form-checkbox-label span {
    color: #333;
    font-weight: 500;
}

/* 留言板样式 */
.guestbook-container {
    max-width: 800px;
    margin: 0 auto;
}

.guestbook-form-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.guestbook-form-section h3 {
    color: #e91e63;
    margin-bottom: 1.5rem;
    text-align: center;
}

.guestbook-textarea {
    resize: vertical;
    min-height: 200px;
    font-family: inherit;
    font-size: 1rem;
}

.guestbook-messages-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.guestbook-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.guestbook-stats h3 {
    color: #e91e63;
    margin: 0;
}

.message-count {
    background: #e91e63;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: normal;
}

.guestbook-messages {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.message-item {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.message-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.message-name {
    font-weight: bold;
    color: #e91e63;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.message-date {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.message-email {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.message-content {
    color: #333;
    line-height: 1.6;
    white-space: pre-wrap;
}

.empty-guestbook {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(233, 30, 99, 0.05);
    border-radius: 15px;
    border: 2px dashed #e91e63;
}

.empty-guestbook i {
    font-size: 3rem;
    color: #e91e63;
    margin-bottom: 1rem;
}

.empty-guestbook h4 {
    color: #e91e63;
    margin-bottom: 0.5rem;
}

.empty-guestbook p {
    color: #666;
}

/* 页脚样式 */
.footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem 0;
    margin-top: 2rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-container {
    text-align: center;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #e91e63;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }
    
    .timeline-left::after,
    .timeline-right::after {
        left: 19px;
    }
    
    .timeline-right {
        left: 0%;
    }
    
    .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .form-container {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .photos-grid {
        grid-template-columns: 1fr;
    }
}