/* 模态框样式 */
.html-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 5px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: black;
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="url"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.upload-option {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 5px;
}

.upload-btn, .submit-btn, .html-submit-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.upload-btn:hover, .submit-btn:hover, .html-submit-btn:hover {
    background: #005a87;
}

.description {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.status-message {
    font-size: 12px;
    margin-left: 10px;
}

/* 作品列表样式 */
.html-works-list, .works-grid {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.work-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    background: white;
}

.work-image img {
    max-width: 100%;
    height: auto;
    border-radius: 3px;
}

.work-info h3, .work-info h4 {
    margin: 10px 0 5px 0;
    color: #333;
}

.work-meta {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

.work-author, .work-type {
    display: inline-block;
    margin-right: 15px;
}

.work-rating {
    color: #ffb900;
    margin: 5px 0;
}

.work-actions {
    margin-top: 10px;
}

.view-btn, .button {
    background: #007cba;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
}

.view-btn:hover, .button:hover {
    background: #005a87;
    color: white;
}

/* 分页样式 */
.works-pagination {
    margin-top: 20px;
    text-align: center;
}

.page-btn {
    background: #f1f1f1;
    border: 1px solid #ddd;
    padding: 5px 10px;
    margin: 0 2px;
    cursor: pointer;
    border-radius: 3px;
}

.page-btn.active {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.page-btn:hover {
    background: #ddd;
}

/* 搜索框样式 */
.works-search {
    margin-bottom: 20px;
}

.works-search input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    width: 200px;
}

.works-search button {
    background: #007cba;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 3px;
    cursor: pointer;
    margin-left: 5px;
}

.works-search button:hover {
    background: #005a87;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .upload-option {
        flex-direction: column;
        align-items: stretch;
    }
    
    .upload-option input {
        width: 100% !important;
        margin-bottom: 10px;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) {
    .works-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}