body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 20px;
}

.container h1 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.2em;
    margin-bottom: 10px;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

.container p {
    text-align: center;
    color: #7f8c8d;
    font-size: 1.1em;
    margin-bottom: 30px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.post {
    margin-bottom: 40px;
    padding: 25px;
    border-left: 5px solid #3498db;
    background-color: #fafafa;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    position: relative;
}

.post:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.post h2 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.8em;
    border-bottom: 2px dashed #bdc3c7;
    padding-bottom: 8px;
}

.post-content {
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
    max-height: 4.8em; /* 3行文本的高度 */
    overflow: hidden;
    position: relative;
}

.post-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 1.2em;
    background: linear-gradient(to bottom, rgba(250, 250, 250, 0), rgba(250, 250, 250, 1) 90%);
}

.post-content h1,
.post-content h2,
.post-content h3 {
    color: #2c3e50;
    margin-top: 0.5em;
    margin-bottom: 0.3em;
    font-size: 1.1em;
}

.post-content h1 {
    font-size: 1.2em;
}

.post-content h2 {
    font-size: 1.15em;
}

.post-content h3 {
    font-size: 1.05em;
}

.post-content ul {
    padding-left: 18px;
    margin: 0.3em 0;
}

.post-content li {
    margin-bottom: 0.2em;
    font-size: 0.95em;
}

.post-timestamp {
    font-size: 0.9em;
    color: #7f8c8d;
    margin-top: 10px;
    text-align: right;
    font-style: italic;
}

.post-image {
    display: block;
    max-width: 100%;
    max-height: 200px;
    margin: 10px 0;
    border-radius: 4px;
    object-fit: cover;
    cursor: pointer;
}

.more-images-hint {
    font-size: 0.85em;
    color: #7f8c8d;
    text-align: center;
    margin-top: 5px;
    font-style: italic;
    padding: 3px 8px;
    background-color: #f0f0f0;
    border-radius: 3px;
    display: inline-block;
}

.content-image-placeholder {
    display: block;
    background-color: #ecf0f1;
    color: #7f8c8d;
    text-align: center;
    padding: 8px;
    border-radius: 4px;
    margin: 8px 0;
    font-size: 0.9em;
    font-style: italic;
}

.custom-link {
    color: #e74c3c;
    text-decoration: underline;
    font-weight: bold;
    pointer-events: auto;
}

.fallback-link {
    color: #3498db;
    text-decoration: underline;
    pointer-events: auto;
}

/* 全屏预览样式 */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.fullscreen-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px 20px;
    background-color: #fff;
    border-radius: 8px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 36px;
    font-weight: bold;
    color: #2c3e50;
    cursor: pointer;
    z-index: 1001;
    background: transparent;
    border: none;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background-color 0.2s;
}

.close-btn:hover {
    color: #e74c3c;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
}

.preview-content {
    margin-top: 20px;
    line-height: 1.8;
    font-size: 18px;
}

.preview-content h1,
.preview-content h2,
.preview-content h3 {
    color: #2c3e50;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

.preview-content ul {
    padding-left: 25px;
    margin: 1em 0;
}

.preview-content li {
    margin-bottom: 0.5em;
}

.content-image-container {
    margin: 15px 0;
    text-align: center;
}

.content-image {
    display: block;
    max-width: 100%;
    max-height: 400px;
    margin: 10px auto;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    cursor: zoom-in;
    transition: transform 0.2s;
}

.content-image:hover {
    transform: scale(1.01);
}

.preview-image {
    display: block;
    max-width: 100%;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    cursor: zoom-in;
    transition: transform 0.2s;
}

.preview-image:hover {
    transform: scale(1.01);
}

/* 图片灯箱样式 */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    text-align: center;
}

.image-counter {
    color: white;
    font-size: 16px;
    margin-top: 10px;
    text-align: center;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .fullscreen-content {
        margin: 20px auto;
        padding: 20px 15px;
    }
    
    .close-btn {
        top: 5px;
        right: 10px;
        font-size: 28px;
        width: 40px;
        height: 40px;
    }
    
    .preview-content {
        font-size: 16px;
        margin-top: 15px;
    }
    
    .container {
        padding: 15px;
    }
    
    .post {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .post-image {
        max-height: 150px;
    }
    
    .content-image {
        max-height: 250px;
    }
    
    .post-content {
        max-height: 4.2em; /* 移动端稍微小一点 */
        font-size: 0.95em;
    }
    
    .fullscreen-overlay {
        padding: 10px;
    }
    
    .preview-image:hover,
    .content-image:hover {
        transform: none; /* 移动端移除悬停效果 */
    }
    
    /* 移动端灯箱按钮样式调整 */
    .lightbox-overlay button {
        padding: 8px 15px;
        font-size: 14px;
    }
}