/* 温馨杂志式设计 */
:root {
    --cream-white: #fefefe;
    --warm-white: #faf9f7;
    --soft-beige: #f7f5f3;
    --light-brown: #d7cfc7;
    --warm-brown: #a08a7a;
    --deep-brown: #6b5b73;
    --accent-pink: #f4c2c2;
    --soft-shadow: 0 4px 20px rgba(107, 91, 115, 0.1);
    --warm-shadow: 0 8px 30px rgba(107, 91, 115, 0.15);
    --timeline-line: #e8e2db;
    --timeline-dot: #a08a7a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', Georgia, serif;
    background-color: var(--warm-white);
    color: var(--deep-brown);
    line-height: 1.8;
    font-weight: 400;
}

/* 导航栏 */
.navbar {
    background-color: rgba(250, 249, 247, 0.95) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--light-brown);
    padding: 1.25rem 0;
}

.navbar-brand {
    font-family: 'Noto Serif SC', serif;
    font-weight: 500;
    font-size: 1.3rem;
    color: var(--deep-brown) !important;
}

.nav-link {
    color: var(--warm-brown) !important;
    font-weight: 400;
    font-size: 0.95rem;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--deep-brown) !important;
    transform: translateY(-1px);
}

/* 主要布局 */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem 6rem;
}

/* 头部区域 */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
    padding: 3rem 0;
}

.hero-text {
    padding-right: 2rem;
}

.hero-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 3rem;
    font-weight: 300;
    color: var(--deep-brown);
    margin-bottom: 2rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--warm-brown);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-quote {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--warm-brown);
    padding-left: 1.5rem;
    border-left: 3px solid var(--accent-pink);
    margin: 2rem 0;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--soft-shadow);
}

/* 内容区域 */
.content-section {
    margin-bottom: 5rem;
}

.section-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--deep-brown);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--accent-pink);
}

/* 照片杂志式布局 - Instagram风格 */
.photos-magazine {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.wall-photo-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--soft-shadow);
    cursor: pointer;
    transition: all 0.3s ease;
}

.wall-photo-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--warm-shadow);
}

.wall-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.wall-photo-item:hover img {
    transform: scale(1.05);
}

/* Lightbox样式 */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
}

.lightbox-image {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
    user-select: none;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* 视频和时间轴区域 */
.bottom-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
}

.video-section,
.timeline-section {
    background: var(--cream-white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--soft-shadow);
    border: 1px solid var(--light-brown);
}

.section-subtitle {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.5rem;
    color: var(--deep-brown);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.video-featured img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
    cursor: pointer;
}

.video-title {
    font-weight: 500;
    color: var(--deep-brown);
    margin-bottom: 0.5rem;
}

.video-description {
    color: var(--warm-brown);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 时间轴样式 */
.timeline-items {
    position: relative;
}

.timeline-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.timeline-date {
    background: var(--accent-pink);
    color: var(--deep-brown);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    min-width: 80px;
    text-align: center;
}

.timeline-content {
    flex: 1;
    background: var(--soft-beige);
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid var(--accent-pink);
}

.timeline-title {
    font-weight: 500;
    color: var(--deep-brown);
    margin-bottom: 0.5rem;
}

.timeline-desc {
    color: var(--warm-brown);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 按钮样式 */
.explore-btn {
    background: linear-gradient(45deg, var(--accent-pink), var(--light-brown));
    border: none;
    color: var(--deep-brown);
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 1.5rem;
    cursor: pointer;
}

.explore-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--warm-shadow);
    color: var(--deep-brown);
    text-decoration: none;
}

/* 原有的样式（其他页面使用） */
.photo-card {
    cursor: pointer;
    transition: transform 0.3s ease;
    border: none;
    overflow: hidden;
}

.photo-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.photo-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* 视频卡片 */
.video-card {
    cursor: pointer;
    transition: transform 0.3s ease;
    border: none;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.video-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

/* 时间轴（其他页面） */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin: 30px 0;
    width: 48%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 30px;
}

.timeline-item:nth-child(even) {
    left: 52%;
    text-align: left;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 16px;
    height: 16px;
    background: #007bff;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 3px #dee2e6;
}

.timeline-item:nth-child(odd)::before {
    right: -8px;
}

.timeline-item:nth-child(even)::before {
    left: -8px;
}

.timeline-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.timeline-featured::before {
    background: #ffc107;
}

.timeline-featured .timeline-card {
    border-color: #ffc107;
    background: #fff9c4;
}

/* 分页 */
.pagination .page-link {
    color: var(--deep-brown);
}

.pagination .page-item.active .page-link {
    background-color: var(--deep-brown);
    border-color: var(--deep-brown);
}

/* 页面切换 */
.page {
    display: none;
}

#home-page {
    display: block;
}

.page.active {
    display: block;
}

/* 页面标题样式 - 统一处理所有页面标题 */
.page h1 {
    font-family: 'Noto Serif SC', serif !important;
    font-size: 2.5rem !important;
    color: var(--deep-brown) !important;
    text-align: center !important;
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
    padding-top: 1rem !important;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-text {
        padding-right: 0;
    }

    .bottom-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 2rem 1rem 4rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .photos-magazine {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(4, 150px);
    }

    .photo-large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .video-section,
    .timeline-section {
        padding: 1.5rem;
    }

    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: calc(100% - 40px);
        left: 40px !important;
        text-align: left !important;
        padding: 0 !important;
        padding-left: 20px !important;
    }
    
    .timeline-item::before {
        left: -28px !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .photos-magazine {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 150px);
    }

    .photo-large {
        grid-column: span 1;
        grid-row: span 2;
    }
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #6c757d;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #dee2e6;
    border-radius: 50%;
    border-top-color: #007bff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 留言板样式 */
.message-board-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.page-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.5rem;
    color: var(--deep-brown);
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-subtitle {
    text-align: center;
    color: var(--warm-brown);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* 留言统计 */
.message-stats {
    background: var(--soft-beige);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* 左右分栏布局 */
.message-board-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
}

/* 左侧留言列表区域 */
.message-list-section {
    background: var(--cream-white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--soft-shadow);
    border: 1px solid var(--light-brown);
    min-height: 600px;
}

/* 右侧留言表单区域 */
.message-form-section {
    background: var(--cream-white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--soft-shadow);
    border: 1px solid var(--light-brown);
    position: sticky;
    top: 2rem;
}

.message-form .form-group {
    margin-bottom: 1.5rem;
}

.message-form label {
    font-weight: 500;
    color: var(--deep-brown);
    margin-bottom: 0.5rem;
    display: block;
}

.required {
    color: var(--accent-pink);
}

.message-form .form-control {
    border: 2px solid var(--light-brown);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1rem;
    color: var(--deep-brown);
    background-color: var(--warm-white);
    transition: all 0.3s ease;
}

.message-form .form-control:focus {
    border-color: var(--accent-pink);
    box-shadow: 0 0 0 0.2rem rgba(244, 194, 194, 0.25);
    outline: none;
}

.char-counter {
    display: block;
    text-align: right;
    color: var(--warm-brown);
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.submit-btn {
    background: linear-gradient(45deg, var(--accent-pink), var(--light-brown));
    border: none;
    color: var(--deep-brown);
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 120px;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--warm-shadow);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-outline-secondary {
    border: 2px solid var(--light-brown);
    color: var(--warm-brown);
    background: transparent;
    padding: 10px 24px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: var(--light-brown);
    color: var(--deep-brown);
}

/* 留言统计 */
.message-stats {
    background: var(--soft-beige);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.stats-item {
    display: inline-block;
    margin: 0 1rem;
    color: var(--deep-brown);
}

.stats-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-pink);
}

.stats-label {
    font-size: 0.9rem;
    color: var(--warm-brown);
}

/* 留言卡片 */
.message-item {
    background: var(--warm-white);
    border: 1px solid var(--light-brown);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.message-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--soft-shadow);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--light-brown);
}

.message-nickname {
    font-weight: 600;
    color: var(--deep-brown);
    font-size: 1.1rem;
}

.message-date {
    color: var(--warm-brown);
    font-size: 0.875rem;
}

.message-content {
    color: var(--deep-brown);
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 1rem;
}

/* 留言操作按钮 */
.message-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(139, 69, 19, 0.1);
}

.like-btn {
    background: none;
    border: none;
    color: var(--warm-brown);
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.like-btn:hover {
    background-color: rgba(255, 192, 203, 0.2);
    transform: translateY(-1px);
}

.like-btn .fas.fa-heart {
    color: #ccc;
    transition: all 0.3s ease;
}

.like-btn .fas.fa-heart.liked {
    color: #ff69b4;
    animation: heartBeat 0.6s ease-in-out;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.like-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Toast 提示样式 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 300px;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-success {
    border-left: 4px solid #22c55e;
    color: #16a34a;
}

.toast-error {
    border-left: 4px solid #ef4444;
    color: #dc2626;
}

.toast-warning {
    border-left: 4px solid #f59e0b;
    color: #d97706;
}

.toast-info {
    border-left: 4px solid #3b82f6;
    color: #2563eb;
}

/* 成功/错误消息 */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: rgba(34, 197, 94, 0.1);
    color: rgb(21, 128, 61);
    border-left: 4px solid rgb(34, 197, 94);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: rgb(153, 27, 27);
    border-left: 4px solid rgb(239, 68, 68);
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: rgb(146, 64, 14);
    border-left: 4px solid rgb(245, 158, 11);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--warm-brown);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* 分页 */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* 响应式设计 - 留言板 */
@media (max-width: 768px) {
    .message-board-container {
        padding: 1rem;
    }
    
    /* 移动端改为上下布局 */
    .message-board-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .message-form-section, .message-list-section {
        padding: 1.5rem;
        position: static;
    }
    
    /* 移动端表单区域在上方 */
    .message-form-section {
        order: -1;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .submit-btn, .btn-outline-secondary {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .message-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .stats-item {
        display: block;
        margin: 0.5rem 0;
    }
}

/* ===== 首页留言墙样式 ===== */

/* 方案一：校园风贴纸墙 */
.message-wall-section {
    margin: 5rem 0;
    position: relative;
    background: linear-gradient(135deg, var(--warm-white) 0%, var(--soft-beige) 100%);
    padding: 3rem 2rem;
    border-radius: 25px;
    box-shadow: var(--warm-shadow);
    border: 1px solid var(--light-brown);
}

.section-description {
    text-align: center;
    color: var(--warm-brown);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    font-style: italic;
}

.message-wall {
    position: relative;
    min-height: 400px;
    background: 
        radial-gradient(circle at 25% 25%, rgba(244, 194, 194, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(215, 207, 199, 0.1) 2px, transparent 2px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    border-radius: 15px;
    padding: 2rem;
    overflow: hidden;
}

/* 贴纸样式 */
.sticky-note {
    position: absolute;
    width: 180px;
    min-height: 120px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.1),
        0 1px 3px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    line-height: 1.5;
    word-wrap: break-word;
    border: 1px solid rgba(255,255,255,0.8);
}

/* 贴纸颜色主题 */
.sticky-note.color-1 {
    background: linear-gradient(135deg, #fff9c4 0%, #fff3a0 100%);
    color: #8b5a00;
    transform: rotate(-2deg);
}

.sticky-note.color-2 {
    background: linear-gradient(135deg, #ffe4e1 0%, #ffb6c1 100%);
    color: #8b1538;
    transform: rotate(1deg);
}

.sticky-note.color-3 {
    background: linear-gradient(135deg, #e1f5fe 0%, #b3e5fc 100%);
    color: #01579b;
    transform: rotate(-1deg);
}

.sticky-note.color-4 {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    color: #4a148c;
    transform: rotate(2deg);
}

.sticky-note.color-5 {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    color: #1b5e20;
    transform: rotate(-1.5deg);
}

.sticky-note:hover {
    transform: rotate(0deg) translateY(-8px) scale(1.05);
    box-shadow: 
        0 8px 25px rgba(0,0,0,0.15),
        0 4px 10px rgba(0,0,0,0.1);
    z-index: 10;
}

/* 贴纸头部 */
.sticky-note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px dashed rgba(0,0,0,0.2);
}

.sticky-note-name {
    font-weight: 600;
    font-size: 0.85rem;
    opacity: 0.8;
}

.sticky-note-date {
    font-size: 0.75rem;
    opacity: 0.6;
}

.sticky-note-content {
    line-height: 1.4;
    font-size: 0.9rem;
    max-height: 80px;
    overflow: hidden;
    position: relative;
}

/* 胶带效果 */
.sticky-note::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 20px;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 2px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

/* 加载状态 */
.message-wall-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: var(--warm-brown);
    font-size: 1.1rem;
}

.message-wall-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--light-brown);
    border-top: 2px solid var(--accent-pink);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

/* 空状态 */
.message-wall-empty {
    text-align: center;
    padding: 3rem;
    color: var(--warm-brown);
}

.message-wall-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* 响应式 - 留言墙 */
@media (max-width: 768px) {
    .message-wall-section {
        margin: 3rem 0;
        padding: 2rem 1rem;
    }
    
    .message-wall {
        min-height: 300px;
        padding: 1rem;
    }
    
    .sticky-note {
        width: 140px;
        min-height: 100px;
        padding: 12px;
        font-size: 0.8rem;
    }
    
    .sticky-note-content {
        max-height: 60px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .sticky-note {
        width: 120px;
        min-height: 90px;
        padding: 10px;
        font-size: 0.75rem;
    }
    
    .sticky-note-content {
        max-height: 50px;
    }
}

/* ===== 方案二：涂鸦墙风格（可选） ===== */
.message-wall.graffiti-style {
    background: 
        linear-gradient(45deg, var(--warm-white) 25%, transparent 25%),
        linear-gradient(-45deg, var(--warm-white) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--soft-beige) 75%),
        linear-gradient(-45deg, transparent 75%, var(--soft-beige) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.graffiti-message {
    position: absolute;
    padding: 12px 16px;
    background: var(--cream-white);
    border: 2px solid var(--deep-brown);
    border-radius: 15px;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    font-weight: 500;
    transform: rotate(var(--rotation));
    box-shadow: 3px 3px 0 var(--accent-pink);
    max-width: 200px;
}

.graffiti-message:nth-child(odd) {
    --rotation: -3deg;
    background: var(--accent-pink);
}

.graffiti-message:nth-child(even) {
    --rotation: 2deg;
    border-color: var(--accent-pink);
}

/* ===== 方案三：简约卡片墙风格（可选） ===== */
.message-wall.minimal-style {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    background: transparent;
    padding: 0;
}

.minimal-message {
    background: var(--cream-white);
    border: 1px solid var(--light-brown);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.minimal-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-pink);
}

.minimal-message:hover {
    transform: translateY(-4px);
    box-shadow: var(--warm-shadow);
    border-color: var(--accent-pink);
}

/* ===== 照片时间轴样式 ===== */

/* 年份选择器 */
.year-selector-container {
    background: var(--cream-white);
    border: 1px solid var(--light-brown);
    border-radius: 20px;
    padding: 1rem;
    margin-bottom: 2rem;
    box-shadow: var(--soft-shadow);
}

.year-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    align-items: center;
}

.year-btn {
    background: var(--soft-beige);
    border: 2px solid var(--light-brown);
    border-radius: 25px;
    padding: 0.8rem 1.5rem;
    font-family: 'Noto Serif SC', serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--warm-brown);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    min-width: 120px;
}

.year-btn:hover {
    background: var(--accent-pink);
    border-color: var(--warm-brown);
    transform: translateY(-2px);
    box-shadow: var(--soft-shadow);
}

.year-btn.active {
    background: var(--warm-brown);
    color: var(--cream-white);
    border-color: var(--deep-brown);
    box-shadow: var(--warm-shadow);
}

.year-count {
    font-size: 0.8rem;
    opacity: 0.8;
    font-weight: 400;
}

/* 时间轴容器 */
.photo-timeline {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.timeline-container {
    background: var(--cream-white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--soft-shadow);
    position: relative;
}

.timeline-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--light-brown);
}

.timeline-header h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 2rem;
    color: var(--deep-brown);
    margin-bottom: 0.5rem;
}

.timeline-subtitle {
    color: var(--warm-brown);
    font-size: 1rem;
    margin: 0;
}

/* 时间轴内容 */
.timeline-content {
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--timeline-line), var(--light-brown));
    border-radius: 2px;
}

/* 月份区块 */
.month-section {
    position: relative;
    margin-bottom: 3rem;
}

.month-section::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--timeline-dot);
    border: 4px solid var(--cream-white);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 3px var(--light-brown);
}

.month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem 1.5rem 4.5rem;
    background: var(--soft-beige);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.month-header:hover {
    background: var(--accent-pink);
    transform: translateX(10px);
}

.month-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.month-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.4rem;
    color: var(--deep-brown);
    margin: 0;
}

.month-count {
    color: var(--warm-brown);
    font-size: 0.9rem;
    font-weight: 400;
}

.month-toggle {
    display: flex;
    align-items: center;
    color: var(--warm-brown);
    font-size: 1.2rem;
}

.month-toggle i {
    transition: transform 0.3s ease;
}

/* 月份内容 */
.month-content {
    margin-left: 4.5rem;
    overflow: hidden;
    transition: all 0.4s ease;
}

.month-content.expanded {
    max-height: none;
    opacity: 1;
    padding: 0;
}

.month-content.collapsed {
    max-height: 0;
    opacity: 0;
    padding: 0;
}

/* 照片网格 */
.timeline-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    background: var(--warm-white);
    border-radius: 15px;
    border: 2px solid var(--light-brown);
}

.timeline-photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--soft-beige);
}

.timeline-photo-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--warm-shadow);
}

.timeline-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.timeline-photo-item:hover img {
    transform: scale(1.1);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(107, 91, 115, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: var(--cream-white);
    font-size: 1.5rem;
}

.timeline-photo-item:hover .photo-overlay {
    opacity: 1;
}

/* 加载和错误状态 */
.year-selector-loading,
.year-selector-error,
.no-years,
.timeline-loading,
.timeline-error,
.timeline-empty {
    text-align: center;
    padding: 2rem;
    color: var(--warm-brown);
    font-style: italic;
}

.year-selector-error,
.timeline-error {
    color: #e74c3c;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .timeline-content::before {
        left: 1rem;
    }
    
    .month-section::before {
        left: 0.25rem;
    }
    
    .month-header {
        padding: 1rem 1rem 1rem 2.5rem;
    }
    
    .month-content {
        margin-left: 2.5rem;
    }
    
    .timeline-photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.8rem;
        padding: 1rem;
    }
    
    .year-btn {
        min-width: 100px;
        padding: 0.6rem 1.2rem;
    }
    
    .timeline-container {
        padding: 1.5rem;
    }
    
    .timeline-header h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .timeline-photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .year-selector {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .year-btn {
        width: 100%;
        max-width: 200px;
    }
}