.post-list {
    max-width: 800px;
    margin: 0 auto;
}

.search-box {
    width: 100%;
    max-width: 400px;
    padding: 10px 15px;
    border: 2px solid #000000;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 20px;
    display: block;
}

.search-box:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.post-item {
    padding: 16px 20px;
    border-bottom: 1px solid #eeeeee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.post-item:first-child {
    border-top: 2px solid #000000;
}

.post-item:hover {
    background-color: #f5f5f5;
}

.post-title {
    font-size: 16px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 6px;
    line-height: 1.4;
}

.post-preview {
    font-size: 14px;
    color: #666666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-meta {
    font-size: 12px;
    color: #999999;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-thumb {
    float: right;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    margin-left: 12px;
    margin-bottom: 4px;
}

.post-detail {
    max-width: 800px;
    margin: 0 auto;
}

.detail-back {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #000000;
    border-radius: 5px;
    background: #ffffff;
    color: #000000;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    font-size: 14px;
}

.detail-back:hover {
    background: #000000;
    color: #ffffff;
}

.detail-time {
    font-size: 13px;
    color: #999999;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eeeeee;
}

.detail-text {
    font-size: 16px;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-bottom: 24px;
}

.detail-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.detail-images img {
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s;
    border: 1px solid #eeeeee;
}

.detail-images img:hover {
    transform: scale(1.02);
}

.no-posts {
    text-align: center;
    color: #666666;
    padding: 60px 20px;
}

.loading {
    text-align: center;
    padding: 60px 20px;
    color: #666666;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    overflow: hidden;
}

.lightbox.show {
    display: block;
}

.lightbox-img-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: grab;
}

.lightbox-img-wrap.dragging {
    cursor: grabbing;
}

.lightbox-img-wrap img {
    max-width: 92%;
    max-height: 92%;
    object-fit: contain;
    border-radius: 4px;
    transform-origin: center center;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    z-index: 10;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 36px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    z-index: 10;
    padding: 20px;
    user-select: none;
}

.lightbox-nav:hover {
    opacity: 1;
}

.lightbox-prev {
    left: 10px;
}

.lightbox-next {
    right: 10px;
}

.lightbox-zoom-info {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 14px;
    opacity: 0.6;
    z-index: 10;
    user-select: none;
}

.lightbox-counter {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #ffffff;
    font-size: 14px;
    opacity: 0.6;
    z-index: 10;
}

@media (max-width: 768px) {
    .search-box {
        font-size: 16px;
    }

    .post-item {
        padding: 14px 16px;
    }

    .detail-images {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}
