/* ============================================
   Diary Page Styles - 高对比度优化版
   ============================================ */

/* Page Header */
.page-header {
    position: relative;
    padding: 100px 20px 48px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(180deg, #FAFAF8 0%, #F5F3EF 100%);
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(212, 168, 75, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(61, 156, 168, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #B8922F, #3D9CA8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    color: #4A5568;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Diary Container
   ============================================ */
.diary-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: 250px 1fr 300px;
    gap: 40px;
    background: #FAFAF8;
    min-height: 100vh;
}

/* ============================================
   Timeline Navigation
   ============================================ */
.timeline-nav {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.timeline-nav h3 {
    font-size: 1.1rem;
    color: #1a202c;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #D4A84B;
    font-weight: 700;
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.timeline-item {
    padding: 10px 15px;
    border-radius: 8px;
    color: #4A5568;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-item:hover {
    background: rgba(212, 168, 75, 0.15);
    color: #1a202c;
}

.timeline-item.active {
    background: rgba(212, 168, 75, 0.2);
    color: #1a202c;
    font-weight: 600;
}

.timeline-item .month {
    font-weight: 700;
    color: #2D7A85;
}

.timeline-item .count {
    margin-left: auto;
    background: rgba(212, 168, 75, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    color: #B8922F;
    font-weight: 600;
}

/* ============================================
   Posts Section
   ============================================ */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-label {
    color: #2D3748;
    font-size: 0.9rem;
    font-weight: 600;
}

.filter-tag {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    color: #4A5568;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.filter-tag:hover {
    border-color: #3D9CA8;
    color: #3D9CA8;
    background: rgba(61, 156, 168, 0.05);
}

.filter-tag.active {
    background: #D4A84B;
    border-color: #D4A84B;
    color: #FFFFFF;
}

/* Posts Container */
.posts-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.diary-post {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.diary-post:hover {
    border-color: #D4A84B;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 168, 75, 0.15);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    border-bottom: 1px solid #F0F0F0;
}

.post-date-badge {
    background: linear-gradient(135deg, #D4A84B, #B8922F);
    color: #FFFFFF;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.3;
    box-shadow: 0 2px 8px rgba(212, 168, 75, 0.3);
}

.post-date-badge .day {
    font-size: 1.4rem;
    display: block;
}

.post-date-badge .month-year {
    font-size: 0.75rem;
    opacity: 0.95;
}

.post-meta {
    flex: 1;
}

.post-category {
    display: inline-block;
    background: rgba(61, 156, 168, 0.12);
    color: #2D7A85;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.post-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
    line-height: 1.4;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #4A5568;
}

.post-author-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #D4A84B, #3D9CA8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #FFFFFF;
}

.post-body {
    padding: 25px;
}

.post-excerpt {
    color: #2D3748;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.post-tag {
    background: #F7FAFC;
    color: #4A5568;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    border: 1px solid #E2E8F0;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #F0F0F0;
}

.post-stats {
    display: flex;
    gap: 20px;
    color: #718096;
    font-size: 0.9rem;
}

.post-stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more {
    color: #D4A84B;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    color: #B8922F;
}

/* ============================================
   Load More
   ============================================ */
.load-more-container {
    text-align: center;
    padding: 40px 0;
}

.load-more-btn {
    background: #FFFFFF;
    border: 2px solid #D4A84B;
    color: #B8922F;
    padding: 14px 40px;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.load-more-btn:hover {
    background: #D4A84B;
    color: #FFFFFF;
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   Sidebar
   ============================================ */
.diary-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #F0F0F0;
}

.card-icon {
    font-size: 1.5rem;
}

.card-header h3 {
    font-size: 1.1rem;
    color: #1a202c;
    margin: 0;
    font-weight: 700;
}

.sidebar-card p {
    color: #4A5568;
    font-size: 0.95rem;
    line-height: 1.7;
}

.card-link {
    display: inline-block;
    margin-top: 12px;
    color: #3D9CA8;
    font-size: 0.95rem;
    font-weight: 600;
}

.card-link:hover {
    color: #D4A84B;
}

/* Sidebar Stats */
.sidebar-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-stat .stat-label {
    color: #4A5568;
    font-size: 0.95rem;
}

.sidebar-stat .stat-value {
    color: #B8922F;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Categories */
.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    color: #2D3748;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.category-list a:hover {
    background: rgba(212, 168, 75, 0.12);
    color: #B8922F;
}

.category-list span {
    background: #F7FAFC;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    color: #718096;
    border: 1px solid #E2E8F0;
}

/* RSS Link */
.rss-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 168, 75, 0.12);
    color: #B8922F;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 15px;
}

.rss-link:hover {
    background: rgba(212, 168, 75, 0.2);
    color: #B8922F;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1200px) {
    .diary-container {
        grid-template-columns: 220px 1fr 280px;
    }
}

@media (max-width: 992px) {
    .diary-container {
        grid-template-columns: 1fr;
        background: #FAFAF8;
    }
    
    .timeline-nav {
        display: none;
    }
    
    .diary-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        position: static;
    }
    
    .subscribe-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .diary-sidebar {
        grid-template-columns: 1fr;
    }
    
    .filter-bar {
        justify-content: center;
    }
    
    .post-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
