.works-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.works-header {
    margin-bottom: 2rem;
    text-align: center;
}

.works-header h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.works-header p {
    color: #666;
    font-size: 1rem;
}

.empty-works {
    text-align: center;
    padding: 3rem 0;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.empty-works img {
    max-width: 200px;
    margin-bottom: 1rem;
}

.empty-works p {
    margin-bottom: 1.5rem;
    color: #666;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.work-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.work-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.work-thumbnail {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
}

.work-thumbnail img,
.work-thumbnail video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    pointer-events: none;
}

.work-meta {
    padding: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #666;
}

.work-date {
    flex: 1;
}

.work-expiry {
    margin: 0 0.5rem;
    color: #ff6b6b;
}

.delete-btn {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.delete-btn:hover {
    background: rgba(255, 107, 107, 0.1);
}

/* 模态框样式 */
#fileModal .modal-content {
    max-width: 90%;
    max-height: 90vh;
    width: auto;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

#fileModalContent {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

#fileModalContent img,
#fileModalContent video {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
}

#fileModalContent video {
    background: #000;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .works-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .works-header h1 {
        font-size: 1.5rem;
    }
}